<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Training to Improve</title>
  <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Open+Sans:wght@400;600&display=swap" rel="stylesheet">
  <script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>
  <style>
    /* General Styles */
    body {
      margin: 0;
      font-family: 'Poppins', sans-serif;
      background-color: #000;
      color: #fff;
      scroll-behavior: smooth;
    }
    header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background-color: #000;
      color: #fff;
      z-index: 1000;
      padding: 10px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    header a {
      color: #fff;
      margin: 0 15px;
      text-decoration: none;
      font-weight: 600;
    }
    header a:hover {
      color: royalblue;
    }
    .hero {
      height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      background: linear-gradient(to top, #000, royalblue);
    }
    .hero h1 {
      font-size: 3rem;
      margin-bottom: 20px;
    }
    .hero p {
      font-size: 1.2rem;
      margin-bottom: 30px;
    }
    .hero button {
      padding: 15px 30px;
      font-size: 1rem;
      background-color: royalblue;
      color: #fff;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }
    .hero button:hover {
      background-color: #004aad;
    }
    section {
      padding: 60px 20px;
    }
    .mission {
      text-align: center;
    }
    .features {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
    }
    .feature {
      flex: 1 1 30%;
      text-align: center;
      margin: 20px;
    }
    .feature i {
      font-size: 2rem;
      margin-bottom: 15px;
      color: royalblue;
    }
    .instagram {
      text-align: center;
      margin: 40px 0;
    }
    .reviews {
      text-align: center;
    }
    .contact {
      background-color: royalblue;
      color: #000;
      padding: 40px 20px;
      text-align: center;
    }
    .contact form {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .contact input, .contact textarea {
      width: 90%;
      max-width: 500px;
      margin: 10px 0;
      padding: 10px;
      border: none;
      border-radius: 5px;
    }
    .contact button {
      padding: 10px 20px;
      background-color: #000;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }
    .back-to-top {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 40px;
      height: 40px;
      background-color: royalblue;
      color: white;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    .back-to-top:hover {
      background-color: #004aad;
    }
    .dark-mode {
      position: fixed;
      top: 20px;
      right: 20px;
      cursor: pointer;
    }
    @media (max-width: 768px) {
      .features {
        flex-direction: column;
      }
      .feature {
        margin: 20px 0;
      }
    }
  </style>
</head>
<body>
  <header>
    <div>Training to Improve</div>
    <nav>
      <a href="#home">Home</a>
      <a href="#services">Services</a>
      <a href="#clients">Clients</a>
    </nav>
  </header>

  <section id="home" class="hero">
    <h1>Unlock Your Potential</h1>
    <p>Training designed uniquely for the individual</p>
    <button onclick="window.open('https://calendly.com', '_blank')">Book a Call</button>
  </section>

  <section class="mission">
    <h2>My Mission</h2>
    <p>Is to use my knowledge and experience to help others reach their fitness goals!</p>
  </section>

  <section class="features">
    <div class="feature">
      <i class="fas fa-dumbbell"></i>
      <h3>Personal Training</h3>
      <p>Customized workouts tailored to your fitness level and goals.</p>
    </div>
    <div class="feature">
      <i class="fas fa-heart"></i>
      <h3>Holistic Health</h3>
      <p>Focus on overall wellness, including nutrition and mental health.</p>
    </div>
    <div class="feature">
      <i class="fas fa-chart-line"></i>
      <h3>Progress Tracking</h3>
      <p>Track your progress with detailed analytics and feedback.</p>
    </div>
  </section>

  <section class="instagram">
    <h2>Follow Us on Instagram</h2>
    <a href="https://instagram.com" target="_blank">
      <i class="fab fa-instagram fa-2x"></i>
    </a>
  </section>

  <section class="reviews">
    <h2>What Our Clients Say</h2>
    <p>"Training to Improve has completely transformed my fitness journey!" - Client A</p>
    <p>"The personalized approach is unmatched." - Client B</p>
  </section>

  <section class="contact">
    <h2>Contact Us</h2>
    <p>Telephone: (336) 870-9345</p>
    <p>Email: <a href="mailto:jhilltraintoimprove@gmail.com">jhilltraintoimprove@gmail.com</a></p>
    <form>
      <input type="text" placeholder="Your Name" required>
      <input type="email" placeholder="Your Email" required>
      <textarea placeholder="Your Message" rows="4" required></textarea>
      <button type="submit">Send Message</button>
    </form>
    <div id="calendly">
      <!-- Calendly inline widget embed script -->
      <iframe src="https://calendly.com/your-calendly-link" width="100%" height="600" frameborder="0"></iframe>
    </div>
  </section>

  <div class="back-to-top" onclick="window.scrollTo({top: 0, behavior: 'smooth'})">
    <i class="fas fa-chevron-up"></i>
  </div>

  <div class="dark-mode">
    <i class="fas fa-moon"></i>
  </div>

  <script>
    // Dark Mode Toggle
    const darkModeToggle = document.querySelector('.dark-mode');
    darkModeToggle.addEventListener('click', () => {
      document.body.classList.toggle('light-mode');
    });

    // Scroll Animations
    const scrollElements = document.querySelectorAll('.feature, .mission, .reviews');
    const elementInView = (el, dividend = 1) => {
      const elementTop = el.getBoundingClientRect().top;
      return (
        elementTop <=
        (window.innerHeight || document.documentElement.clientHeight) / dividend
      );
    };
    const displayScrollElement = (element) => {
      element.classList.add('scrolled');
    };
    const handleScrollAnimation = () => {
      scrollElements.forEach((el) => {
        if (elementInView(el, 1.25)) {
          displayScrollElement(el);
        }
      });
    };
    window.addEventListener('scroll', () => {
      handleScrollAnimation();
    });
  </script>
</body>
</html>