
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Home</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="assets/css/custom.css" rel="stylesheet">
</head>
<body>

    <!-- Hero Section -->
    <header class="hero-section text-center text-white bg-dark py-5">
        <div class="container">
            <h1 class="display-4">Welcome to our Website</h1>
            <p class="lead">A brief and catchy tagline about your service or product.</p>
            <a href="#" class="btn btn-primary btn-lg">Get Started</a>
        </div>
    </header>

    <!-- Features Section -->
    <section class="features-section py-5">
        <div class="container">
            <div class="row text-center">
                <div class="col-md-4">
                    <div class="feature p-4">
                        <h3>Feature One</h3>
                        <p>Description of feature one.</p>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="feature p-4">
                        <h3>Feature Two</h3>
                        <p>Description of feature two.</p>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="feature p-4">
                        <h3>Feature Three</h3>
                        <p>Description of feature three.</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Gallery Section -->
    <section class="gallery-section bg-light py-5">
        <div class="container">
            <h2 class="text-center mb-4">Winter Gallery</h2>
            <div class="row">
                <?php
                ob_start();
                include 'api/pexels.php';
                $images_json = ob_get_clean();
                $images = json_decode($images_json, true);
                if ($images) {
                    foreach ($images as $image) {
                        echo '<div class="col-md-4 mb-4">';
                        echo '<img src="' . htmlspecialchars($image['src']) . '" class="img-fluid" alt="Winter Image">';
                        echo '<div class="text-center mt-2">Photo by <a href="' . htmlspecialchars($image['photographer_url']) . '" target="_blank">' . htmlspecialchars($image['photographer']) . '</a> on Pexels</div>';
                        echo '</div>';
                    }
                }
                ?>
            </div>
        </div>
    </section>

    <!-- Contact Section -->
    <section class="contact-section py-5">
        <div class="container">
            <h2 class="text-center mb-4">Contact Us</h2>
            <div class="row">
                <div class="col-md-6 mx-auto">
                    <form>
                        <div class="mb-3">
                            <label for="name" class="form-label">Name</label>
                            <input type="text" class="form-control" id="name">
                        </div>
                        <div class="mb-3">
                            <label for="email" class="form-label">Email</label>
                            <input type="email" class="form-control" id="email">
                        </div>
                        <div class="mb-3">
                            <label for="message" class="form-label">Message</label>
                            <textarea class="form-control" id="message" rows="3"></textarea>
                        </div>
                        <button type="submit" class="btn btn-primary">Submit</button>
                    </form>
                </div>
            </div>
        </div>
    </section>

    <footer class="text-center py-4 bg-dark text-white">
        <div class="container">
            <p>&copy; 2025 Your Company. All Rights Reserved.</p>
        </div>
    </footer>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
