<?php
require_once 'header.php';
?>

    <style>
        .about-hero {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 80px 0;
        }
        
        .mission-vision {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            padding: 60px 0;
        }
        
        .mission-card, .vision-card {
            background: white;
            padding: 40px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: transform 0.3s;
            height: 100%;
        }
        
        .mission-card:hover, .vision-card:hover {
            transform: translateY(-10px);
        }
        
        .stats-section {
            background: #2c3e50;
            color: white;
            padding: 60px 0;
        }
        
        .stat-box {
            text-align: center;
            padding: 20px;
        }
        
        .stat-number {
            font-size: 3rem;
            font-weight: bold;
            display: block;
        }
        
        .team-section {
            padding: 60px 0;
        }
        
        .team-card {
            text-align: center;
            margin-bottom: 30px;
            transition: transform 0.3s;
        }
        
        .team-card:hover {
            transform: translateY(-5px);
        }
        
        .team-image {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 20px;
            border: 5px solid #007bff;
        }
        
        .timeline {
            position: relative;
            padding: 40px 0;
        }
        
        .timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            width: 2px;
            height: 100%;
            background: #007bff;
        }
        
        .timeline-item {
            margin-bottom: 50px;
            position: relative;
        }
        
        .timeline-content {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            position: relative;
            width: 45%;
        }
        
        .timeline-item:nth-child(odd) .timeline-content {
            float: left;
        }
        
        .timeline-item:nth-child(even) .timeline-content {
            float: right;
        }
        
        .timeline-year {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: #007bff;
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-weight: bold;
            z-index: 1;
        }
        
        @media (max-width: 768px) {
            .timeline::before {
                left: 20px;
            }
            
            .timeline-content {
                width: 85%;
                float: right !important;
                margin-left: 50px;
            }
            
            .timeline-year {
                left: 20px;
                transform: translateX(0);
            }
        }
        
        .values-section {
            padding: 60px 0;
            background: #f8f9fa;
        }
        
        .value-box {
            text-align: center;
            padding: 30px;
            background: white;
            border-radius: 10px;
            margin-bottom: 30px;
            transition: all 0.3s;
        }
        
        .value-box:hover {
            background: #007bff;
            color: white;
        }
        
        .value-box i {
            font-size: 3rem;
            margin-bottom: 20px;
            color: #007bff;
        }
        
        .value-box:hover i {
            color: white;
        }
        
        .partners-section {
            padding: 60px 0;
            background: white;
        }
        
        .partner-logo {
            text-align: center;
            padding: 20px;
            filter: grayscale(100%);
            transition: filter 0.3s;
        }
        
        .partner-logo:hover {
            filter: grayscale(0%);
        }
        
        .partner-logo img {
            max-height: 80px;
        }
        
        .testimonial-section {
            background: #f8f9fa;
            padding: 60px 0;
        }
        
        .testimonial-card {
            background: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            margin: 20px;
            text-align: center;
        }
        
        .testimonial-text {
            font-style: italic;
            margin-bottom: 20px;
        }
        
        .testimonial-author {
            font-weight: bold;
            color: #007bff;
        }
        
        .cta-section {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 60px 0;
            text-align: center;
        }
        
        .cta-section .btn {
            margin: 10px;
        }
    </style>
</head>
<body>


<!-- About Hero Section -->
<section class="about-hero">
    <div class="container text-center">
        <h1 class="display-4 mb-4">About ConnectMaster ISP</h1>
        <p class="lead">Connecting Nigeria to a Brighter Digital Future Since 2020</p>
        <div class="mt-4">
            <a href="#story" class="btn btn-light btn-lg">Our Story</a>
            <a href="contact.php" class="btn btn-outline-light btn-lg">Get in Touch</a>
        </div>
    </div>
</section>

<!-- Company Story Section -->
<section id="story" class="company-story py-5">
    <div class="container">
        <div class="row align-items-center">
            <div class="col-md-6 mb-4">
                <h2 class="mb-4">Our Story</h2>
                <p class="lead">Founded in 2020, ConnectMaster ISP began with a simple mission: to provide reliable, high-speed internet access to every Nigerian home and business.</p>
                <p>What started as a small operation in Lagos has grown into one of Nigeria's most trusted internet service providers, serving thousands of satisfied customers across the country.</p>
                <p>We believe that internet access is not a luxury but a necessity. That's why we've made it our mission to deliver affordable, reliable, and fast internet connectivity to empower individuals, businesses, and communities.</p>
                <div class="mt-4">
                    <div class="row">
                        <div class="col-6">
                            <div class="d-flex align-items-center mb-3">
                                <i class="fas fa-check-circle text-success fa-2x me-3"></i>
                                <div>
                                    <strong>5000+</strong><br>
                                    Active Customers
                                </div>
                            </div>
                        </div>
                        <div class="col-6">
                            <div class="d-flex align-items-center mb-3">
                                <i class="fas fa-check-circle text-success fa-2x me-3"></i>
                                <div>
                                    <strong>98%</strong><br>
                                    Customer Satisfaction
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-6">
                <img src="assets/images/about-story.jpg" alt="Our Story" class="img-fluid rounded shadow" onerror="this.src='https://via.placeholder.com/600x400?text=Our+Story'">
            </div>
        </div>
    </div>
</section>

<!-- Mission & Vision Section -->
<section class="mission-vision">
    <div class="container">
        <div class="row">
            <div class="col-md-6 mb-4">
                <div class="mission-card text-center">
                    <i class="fas fa-bullseye fa-4x text-primary mb-4"></i>
                    <h3>Our Mission</h3>
                    <p>To deliver exceptional internet services and technology solutions that empower individuals and businesses to thrive in the digital age, while maintaining the highest standards of reliability and customer satisfaction.</p>
                </div>
            </div>
            <div class="col-md-6 mb-4">
                <div class="vision-card text-center">
                    <i class="fas fa-eye fa-4x text-primary mb-4"></i>
                    <h3>Our Vision</h3>
                    <p>To become Nigeria's leading internet service provider, connecting every home and business with high-speed, affordable internet, and driving digital transformation across the nation.</p>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- Statistics Section -->
<section class="stats-section">
    <div class="container">
        <div class="row">
            <div class="col-md-3 col-sm-6">
                <div class="stat-box">
                    <span class="stat-number" data-count="5000">0</span>
                    <span class="stat-label">Happy Customers</span>
                </div>
            </div>
            <div class="col-md-3 col-sm-6">
                <div class="stat-box">
                    <span class="stat-number" data-count="50">0</span>
                    <span class="stat-label">Cities Covered</span>
                </div>
            </div>
            <div class="col-md-3 col-sm-6">
                <div class="stat-box">
                    <span class="stat-number" data-count="100">0</span>
                    <span class="stat-label">Team Members</span>
                </div>
            </div>
            <div class="col-md-3 col-sm-6">
                <div class="stat-box">
                    <span class="stat-number" data-count="24">0</span>
                    <span class="stat-label">7/7 Support</span>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- Core Values Section -->
<section class="values-section">
    <div class="container">
        <h2 class="text-center mb-5">Our Core Values</h2>
        <div class="row">
            <div class="col-md-4">
                <div class="value-box">
                    <i class="fas fa-star"></i>
                    <h4>Excellence</h4>
                    <p>We strive for excellence in everything we do, from our infrastructure to our customer service.</p>
                </div>
            </div>
            <div class="col-md-4">
                <div class="value-box">
                    <i class="fas fa-handshake"></i>
                    <h4>Integrity</h4>
                    <p>We conduct our business with honesty, transparency, and ethical practices.</p>
                </div>
            </div>
            <div class="col-md-4">
                <div class="value-box">
                    <i class="fas fa-lightbulb"></i>
                    <h4>Innovation</h4>
                    <p>We continuously innovate to provide cutting-edge technology solutions.</p>
                </div>
            </div>
            <div class="col-md-4">
                <div class="value-box">
                    <i class="fas fa-users"></i>
                    <h4>Customer Focus</h4>
                    <p>Our customers are at the heart of everything we do.</p>
                </div>
            </div>
            <div class="col-md-4">
                <div class="value-box">
                    <i class="fas fa-chart-line"></i>
                    <h4>Growth</h4>
                    <p>We are committed to continuous growth and improvement.</p>
                </div>
            </div>
            <div class="col-md-4">
                <div class="value-box">
                    <i class="fas fa-globe"></i>
                    <h4>Community</h4>
                    <p>We believe in giving back to the communities we serve.</p>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- Company Timeline -->
<section class="timeline-section py-5">
    <div class="container">
        <h2 class="text-center mb-5">Our Journey</h2>
        <div class="timeline">
            <div class="timeline-item">
                <div class="timeline-year">2020</div>
                <div class="timeline-content">
                    <h4>Company Founded</h4>
                    <p>ConnectMaster ISP was founded in Lagos with just 50 customers and a vision to transform internet connectivity in Nigeria.</p>
                </div>
            </div>
            <div class="timeline-item">
                <div class="timeline-year">2021</div>
                <div class="timeline-content">
                    <h4>Expansion</h4>
                    <p>Expanded to Abuja and Port Harcourt, reaching 1000+ customers across three major cities.</p>
                </div>
            </div>
            <div class="timeline-item">
                <div class="timeline-year">2022</div>
                <div class="timeline-content">
                    <h4>Fiber Optic Network</h4>
                    <p>Launched fiber optic network, offering speeds up to 1Gbps to residential and business customers.</p>
                </div>
            </div>
            <div class="timeline-item">
                <div class="timeline-year">2023</div>
                <div class="timeline-content">
                    <h4>New Services</h4>
                    <p>Introduced laptop sales, office space rentals, and CBT solutions to serve our customers better.</p>
                </div>
            </div>
            <div class="timeline-item">
                <div class="timeline-year">2024</div>
                <div class="timeline-content">
                    <h4>5,000+ Customers</h4>
                    <p>Reached over 5,000 active customers across 50+ cities in Nigeria.</p>
                </div>
            </div>
            <div style="clear: both;"></div>
        </div>
    </div>
</section>

<!-- Leadership Team Section -->
<section class="team-section">
    <div class="container">
        <h2 class="text-center mb-5">Our Leadership Team</h2>
        <div class="row justify-content-center">
            <div class="col-md-4">
                <div class="team-card">
                    <img src="assets/images/ceo.jpg" alt="CEO" class="team-image" onerror="this.src='https://via.placeholder.com/200x200?text=CEO'">
                    <h4>John Adebayo</h4>
                    <p class="text-primary">Chief Executive Officer</p>
                    <p>20+ years of experience in telecommunications and technology.</p>
                    <div class="social-links">
                        <a href="#" class="text-primary me-2"><i class="fab fa-linkedin"></i></a>
                        <a href="#" class="text-primary"><i class="fab fa-twitter"></i></a>
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="team-card">
                    <img src="assets/images/cto.jpg" alt="CTO" class="team-image" onerror="this.src='https://via.placeholder.com/200x200?text=CTO'">
                    <h4>Sarah Okafor</h4>
                    <p class="text-primary">Chief Technology Officer</p>
                    <p>Expert in network infrastructure and cybersecurity.</p>
                    <div class="social-links">
                        <a href="#" class="text-primary me-2"><i class="fab fa-linkedin"></i></a>
                        <a href="#" class="text-primary"><i class="fab fa-twitter"></i></a>
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="team-card">
                    <img src="assets/images/cmo.jpg" alt="CMO" class="team-image" onerror="this.src='https://via.placeholder.com/200x200?text=CMO'">
                    <h4>Michael Eze</h4>
                    <p class="text-primary">Chief Marketing Officer</p>
                    <p>Driving growth and customer engagement strategies.</p>
                    <div class="social-links">
                        <a href="#" class="text-primary me-2"><i class="fab fa-linkedin"></i></a>
                        <a href="#" class="text-primary"><i class="fab fa-twitter"></i></a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- Testimonials Section -->
<section class="testimonial-section">
    <div class="container">
        <h2 class="text-center mb-5">What Our Customers Say</h2>
        <div class="row">
            <div class="col-md-4">
                <div class="testimonial-card">
                    <i class="fas fa-quote-left fa-2x text-primary mb-3"></i>
                    <p class="testimonial-text">"ConnectMaster ISP has transformed our business. Their reliable internet and excellent support have helped us grow exponentially."</p>
                    <div class="testimonial-author">- Adeola Williams</div>
                    <div class="testimonial-company">Tech Solutions Ltd</div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="testimonial-card">
                    <i class="fas fa-quote-left fa-2x text-primary mb-3"></i>
                    <p class="testimonial-text">"The office space and internet package is perfect for our startup. Professional environment with blazing fast internet!"</p>
                    <div class="testimonial-author">- Chioma Nwosu</div>
                    <div class="testimonial-company">Digital Creative Hub</div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="testimonial-card">
                    <i class="fas fa-quote-left fa-2x text-primary mb-3"></i>
                    <p class="testimonial-text">"Their CBT platform helped us conduct exams seamlessly. Highly recommended for schools and training centers."</p>
                    <div class="testimonial-author">- Dr. Olumide Adeleke</div>
                    <div class="testimonial-company">Excel Academy</div>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- Partners Section -->
<section class="partners-section">
    <div class="container">
        <h2 class="text-center mb-5">Our Trusted Partners</h2>
        <div class="row align-items-center">
            <div class="col-md-2 col-4">
                <div class="partner-logo">
                    <img src="assets/images/partner1.png" alt="Partner 1" onerror="this.src='https://via.placeholder.com/150x80?text=Partner'">
                </div>
            </div>
            <div class="col-md-2 col-4">
                <div class="partner-logo">
                    <img src="assets/images/partner2.png" alt="Partner 2" onerror="this.src='https://via.placeholder.com/150x80?text=Partner'">
                </div>
            </div>
            <div class="col-md-2 col-4">
                <div class="partner-logo">
                    <img src="assets/images/partner3.png" alt="Partner 3" onerror="this.src='https://via.placeholder.com/150x80?text=Partner'">
                </div>
            </div>
            <div class="col-md-2 col-4">
                <div class="partner-logo">
                    <img src="assets/images/partner4.png" alt="Partner 4" onerror="this.src='https://via.placeholder.com/150x80?text=Partner'">
                </div>
            </div>
            <div class="col-md-2 col-4">
                <div class="partner-logo">
                    <img src="assets/images/partner5.png" alt="Partner 5" onerror="this.src='https://via.placeholder.com/150x80?text=Partner'">
                </div>
            </div>
            <div class="col-md-2 col-4">
                <div class="partner-logo">
                    <img src="assets/images/partner6.png" alt="Partner 6" onerror="this.src='https://via.placeholder.com/150x80?text=Partner'">
                </div>
            </div>
        </div>
    </div>
</section>

<!-- Why Choose Us Section -->
<section class="why-choose-us py-5 bg-light">
    <div class="container">
        <h2 class="text-center mb-5">Why Choose ConnectMaster ISP?</h2>
        <div class="row">
            <div class="col-md-6">
                <div class="d-flex mb-4">
                    <i class="fas fa-tachometer-alt fa-3x text-primary me-3"></i>
                    <div>
                        <h5>Lightning Fast Speeds</h5>
                        <p>Enjoy speeds up to 1Gbps for seamless streaming, gaming, and working from home.</p>
                    </div>
                </div>
                <div class="d-flex mb-4">
                    <i class="fas fa-shield-alt fa-3x text-primary me-3"></i>
                    <div>
                        <h5>Enterprise Security</h5>
                        <p>Advanced security features to protect your data and privacy.</p>
                    </div>
                </div>
                <div class="d-flex mb-4">
                    <i class="fas fa-headset fa-3x text-primary me-3"></i>
                    <div>
                        <h5>24/7 Customer Support</h5>
                        <p>Our expert team is always ready to assist you, day or night.</p>
                    </div>
                </div>
            </div>
            <div class="col-md-6">
                <div class="d-flex mb-4">
                    <i class="fas fa-chart-line fa-3x text-primary me-3"></i>
                    <div>
                        <h5>99.9% Uptime Guarantee</h5>
                        <p>Reliable connection you can count on for your critical operations.</p>
                    </div>
                </div>
                <div class="d-flex mb-4">
                    <i class="fas fa-tags fa-3x text-primary me-3"></i>
                    <div>
                        <h5>Affordable Plans</h5>
                        <p>Flexible pricing options to suit every budget.</p>
                    </div>
                </div>
                <div class="d-flex mb-4">
                    <i class="fas fa-laptop-code fa-3x text-primary me-3"></i>
                    <div>
                        <h5>Value-Added Services</h5>
                        <p>From laptop sales to CBT solutions, we've got you covered.</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- Call to Action Section -->
<section class="cta-section">
    <div class="container">
        <h2 class="mb-4">Ready to Get Connected?</h2>
        <p class="lead mb-4">Join thousands of satisfied customers enjoying premium internet services.</p>
        <a href="register.php" class="btn btn-light btn-lg">Sign Up Now</a>
        <a href="contact.php" class="btn btn-outline-light btn-lg">Contact Sales</a>
    </div>
</section>
<?php
require_once 'footer.php';
?>

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
<script>
// Animate statistics counter
function animateCounter(element, start, end, duration) {
    let startTimestamp = null;
    const step = (timestamp) => {
        if (!startTimestamp) startTimestamp = timestamp;
        const progress = Math.min((timestamp - startTimestamp) / duration, 1);
        const currentValue = Math.floor(progress * (end - start) + start);
        element.innerText = currentValue;
        if (progress < 1) {
            window.requestAnimationFrame(step);
        }
    };
    window.requestAnimationFrame(step);
}

// Trigger counter animation when stats section is in view
const statsSection = document.querySelector('.stats-section');
const statNumbers = document.querySelectorAll('.stat-number');

const observer = new IntersectionObserver((entries) => {
    entries.forEach(entry => {
        if (entry.isIntersecting) {
            statNumbers.forEach(stat => {
                const target = parseInt(stat.getAttribute('data-count'));
                animateCounter(stat, 0, target, 2000);
            });
            observer.unobserve(entry.target);
        }
    });
}, { threshold: 0.5 });

if (statsSection) {
    observer.observe(statsSection);
}

// Add animation on scroll
const animateOnScroll = () => {
    const elements = document.querySelectorAll('.mission-card, .vision-card, .value-box, .team-card, .testimonial-card');
    
    elements.forEach(element => {
        const elementPosition = element.getBoundingClientRect().top;
        const screenPosition = window.innerHeight;
        
        if (elementPosition < screenPosition - 100) {
            element.style.opacity = '1';
            element.style.transform = 'translateY(0)';
        }
    });
};

// Set initial styles for animation
document.querySelectorAll('.mission-card, .vision-card, .value-box, .team-card, .testimonial-card').forEach(el => {
    el.style.opacity = '0';
    el.style.transform = 'translateY(30px)';
    el.style.transition = 'all 0.6s ease-out';
});

window.addEventListener('scroll', animateOnScroll);
animateOnScroll(); // Run once on load
</script>
</body>
</html>