<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Goblin Forge</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap" rel="stylesheet">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.theme.default.min.css">
  <link rel="stylesheet" href="styles.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-transparent fixed-top d-none d-lg-flex">
  <div class="container">
  <a class="navbar-brand d-flex align-items-center" href="#"><span style="font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: bold; color: #b2d46a; letter-spacing: 1.2px; text-transform: uppercase; text-shadow: 0 4px 10px rgba(178, 212, 106, 0.8);">
        Goblin Forge
      </span></a>
    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
      <!-- Menu Links -->
      <div class="collapse navbar-collapse" id="navbarNav">
      <ul class="navbar-nav ms-auto">
        <li class="nav-item">
          <a class="nav-link" href="#about" style="font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: bold; color: #b2d46a; margin: 0 15px; transition: color 0.3s;">
            About
          </a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#collection" style="font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: bold; color: #b2d46a; margin: 0 15px; transition: color 0.3s;">
            Collection
          </a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#earn" style="font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: bold; color: #b2d46a; margin: 0 15px; transition: color 0.3s;">
            $Earn
          </a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#tokenomics" style="font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: bold; color: #b2d46a; margin: 0 15px; transition: color 0.3s;">
            Tokenomics
          </a>
        </li>
      </ul>
    </div>
  </div>
</nav>
<div class="container-fluid hero1">
    <!-- Title -->
    <div class="title">GOBLIN FORGE</div>
    <div class="sub-title">CA : TBA on 15th February</div>
    
    <!-- Icon Container -->
    <div class="icon-container">
      <!-- Icon 1 with Link -->
      <a href="https://rodeo.club/@goblin-forge/posts" target="_blank" class="icon">
        <img src="assets/img/rodeo.png" alt="Icon 1" loading="lazy">
      </a>
      
      <!-- Icon 2 with Link -->
      <a href="https://x.com/goblinforge_" target="_blank" class="icon">
        <img src="assets/img/x.png" alt="Icon 2" loading="lazy">
      </a>

 <!-- Icon 3 with Tooltip -->
<div class="icon" role="button">
  <img src="assets/img/dex.png" alt="Icon 3" loading="lazy">
  <span class="tooltip">Soon</span>
</div>
    </div>

    <!-- Character -->
    <div class="character">
      <img src="assets/img/goblinheroku).png" alt="Character" loading="lazy">
    </div>
  </div>
  
  <div id="about" class="container-fluid py-5" style="background-color: #144339;">
  <div class="container">
    <div class="row align-items-center">
      <div class="col-md-6 mb-4">
        <h2 id="nftTitle2" class="mb-4">ABOUT GOBLIN FORGE</h2>
        <p id="nftDescription2">
    Eons ago, deep within the fabric of the multiverse, there existed a realm known as Varnethia, a place where chaos and creativity thrived in perfect harmony. From this whimsical world emerged the Genesis Goblin, a curious and eccentric being driven by an unrelenting desire to explore and create. When a rift in space-time unexpectedly cast it onto Earth, the goblin found itself enchanted by humanity’s vibrant cultures and traditions, from the valor of warriors to the haunting charm of festivals. 
    Captivated by Earth’s boundless imagination, the Genesis Goblin began crafting personas that celebrated the rich diversity it encountered, blending the mischief of its origin with the artistry of its new home. These creations became the foundation of Goblin Forge, a collection born from a collision of worlds, designed to honor the quirks and creativity of both its cosmic heritage and Earthly inspiration.
</p>
      </div>
      <div class="col-md-6 text-center">
        <div id="gif-container">
          <img src="assets/img/goblin-ezgif.com-cut.gif" alt="Goblin Animation" loading="lazy">
        </div>
      </div>
    </div>
  </div>
</div>

<div id="collection" class="container-fluid py-5" style="background-color: #144339;">
  <div class="container">
    <!-- Title -->
    <h2 class="text-center text-light mb-4" style="font-family: 'Poppins', sans-serif; text-transform: uppercase; font-weight: bold; letter-spacing: 1.5px;">
      COLLECTION
    </h2>
    <div class="row align-items-stretch">
     <!-- Owl Carousel -->
     <div class="col-md-8 d-flex justify-content-center align-items-center mx-auto mb-4">
        <div class="owl-carousel owl-theme">
          <div class="item">
            <img src="assets/img/goblin1.png" alt="NFT 1" loading="lazy">
          </div>
          <div class="item">
            <img src="assets/img/goblin2.png" alt="NFT 2" loading="lazy">
          </div>
          <div class="item">
            <img src="assets/img/goblin3.png" alt="NFT 3" loading="lazy">
          </div>
          <div class="item">
            <img src="assets/img/goblin4.png" alt="NFT 4" loading="lazy">
          </div>
          <div class="item">
            <img src="assets/img/goblin5.png" alt="NFT 5" loading="lazy">
          </div>
        </div>
      </div>
      <!-- Description Container -->
      <div class="col-md-4 d-flex flex-column justify-content-center">
        <h2 id="nftTitle">Goblin Viking Saga</h2>
        <p id="nftDescription" class="text-light">
        In the frosty lands of the north, the Goblin Viking leads a fearless crew of warriors across the icy seas. Once a humble goblin farmer, he discovered an ancient horned helmet buried beneath his village. The moment he wore it, he felt the power of his ancestors coursing through him. Now, he sails through blizzards and fights mythical creatures in his quest for eternal glory. His legend grows with every victory—will you be part of his saga?
        </p>
      </div>
    </div>
  </div>
</div>

<div id="earn" class="container-fluid py-5" style="background-color: #144339;">
  <div class="container">
    <div class="row align-items-center">
      <div class="col-md-6 mb-4">
        <h2 id="nftTitle2" class="mb-4">$EARN</h2>
        <p id="nftDescription2">
        Owning Goblin NFTs is more than just collecting art, it’s your gateway to earning $GOBLIN. By acquiring Goblin NFTs on Rodeo, you become eligible for proportional rewards in $GOBLIN tokens.<br><br>
        The allocation is simple: the more Goblin NFTs in your collection, the greater your share of $GOBLIN. This mechanism ensures that committed collectors are rewarded, fostering an engaged and thriving community around Goblin Forge.<br><br>
        Grow your collection, embrace the mischief, and unlock the full potential of $GOBLIN. The journey starts with your first Goblin!<br><br>
        Starting February 15th, $GOBLIN tokens will be available for swap. This marks the beginning of a new chapter for the Goblin Forge ecosystem, where your NFT collection transforms into a pathway for unlocking the potential of $GOBLIN.
</p>
      </div>
      <div class="col-md-6 text-center">
      <div class="row">
    <!-- Kolom 1 -->
    <div class="col-4 mb-4">
      <img src="assets/img/goblin1.png" alt="Image 1" loading="lazy" class="img-fluid rounded shadow">
    </div>
    <!-- Kolom 2 -->
    <div class="col-4 mb-4">
      <img src="assets/img/goblin2.png" alt="Image 2" loading="lazy" class="img-fluid rounded shadow">
    </div>
    <!-- Kolom 3 -->
    <div class="col-4 mb-4">
      <img src="assets/img/goblin3.png" alt="Image 3" loading="lazy" class="img-fluid rounded shadow">
    </div>
    <!-- Kolom 4 -->
    <div class="col-4 mb-4">
      <img src="assets/img/goblin4.png" alt="Image 4" loading="lazy" class="img-fluid rounded shadow">
    </div>
    <!-- Kolom 5 -->
    <div class="col-4 mb-4">
      <img src="assets/img/goblin5.png" alt="Image 5" loading="lazy" class="img-fluid rounded shadow">
    </div>
    <!-- Kolom 6 -->
    <div class="col-4 mb-4">
      <img src="assets/img/goblinhero.png" alt="Image 6" loading="lazy" class="img-fluid rounded shadow">
    </div>
  </div>
      </div>
    </div>
  </div>
</div>

   <!--Tokenomic -->
<div id="tokenomics" class="container-fluid py-5" style="background-color: #144339;">
  <div class="container">
    <div class="row align-items-center">
    <div class="col-md-4 text-center mb-4">
    <div class="card text-center shadow-lg p-4 mb-4" style="border-radius: 20px; background: linear-gradient(145deg, #1e5b33, #18472a);">
          <h5 class="card-title text-light mb-4">Total Supply</h5>
          <h1 class="card-text text-warning display-4" id="totalSupplyCounter">0</h1>
          <p class="text-light mt-3">Total Supply of $GOBLIN tokens</p>
        </div>
    <canvas id="tokenomicsChart" width="100" height="100"></canvas>
      </div>
      <div class="col-md-8 text-center">
        <h2 id="nftTitle2" class="mb-4">TOKENOMICS</h2>
        <ul id="nftDescription2">
        <li class="list-group-item bg-transparent border-0">
        <h5 class="mb-2 text-white fw-bold fs-5">80% Community Allocation</h5>
    <p id="nftDescription2">A significant portion of $GOBLIN (800 million tokens) is reserved for the community. This allocation reflects our "community-first" philosophy, ensuring that $GOBLIN remains in the hands of its supporters and enthusiasts. The tokens will primarily be distributed through fun and engaging initiatives, such as airdrops and community activities, staying true to the spirit of a memecoin.</p>
  </li>
  <li class="list-group-item bg-transparent border-0">
  <h5 class="mb-2 text-white fw-bold fs-5">20% Liquidity Burn</h5>
    <p id="nftDescription2">To provide stability and trust in the token’s value, 20% of the total supply is allocated to liquidity. Once added, this liquidity will be burned to lock its availability permanently, ensuring a decentralized and community-first approach.</p>
  </li>
  <li class="list-group-item bg-transparent border-0">
  <h5 class="mb-2 text-white fw-bold fs-5">No Team or Developer Allocation</h5>
    <p id="nftDescription2">In line with our commitment to transparency and fairness, there is no allocation for the team or developers. To acquire $GOBLIN tokens, the team and developers must purchase them on the open market, just like everyone else. This ensures a truly level playing field where all participants share the same opportunities.</p>
  </li>
</ul>
      </div>
    </div>
  </div>
</div>
<footer class="py-3 text-center" style="background-color: #0e2d20; color: #e0e0e0;">
  <div class="container">
    <span class="mb-0" style="font-size: 0.9rem;">
      &copy; 2025 Goblin Forge. All Rights Reserved. | Designed with ❤️ by Goblin Team
    </span>
  </div>
</footer>
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
 $(document).ready(function () {
  $(".owl-carousel").owlCarousel({
    loop: true,
    margin: 10,
    nav: false,
    dots: true,
    autoplay: true,
    autoplayTimeout: 3000,
    autoplayHoverPause: true,
    items: 1, // Hanya satu slide per saat
    center: true, // Mengatur slide agar berada di tengah
    stagePadding: 50, // Jarak di kiri-kanan untuk efek tampilan
    responsive: {
      0: { items: 1, stagePadding: 30, center: true },
      600: { items: 1, stagePadding: 40, center: true },
      1000: { items: 2, stagePadding: 50, center: true },
    },
  });

  const nftData = [
    { title: "Goblin Viking Saga", description: "In the frosty lands of the north, the Goblin Viking leads a fearless crew of warriors across the icy seas. Once a humble goblin farmer, he discovered an ancient horned helmet buried beneath his village. The moment he wore it, he felt the power of his ancestors coursing through him. Now, he sails through blizzards and fights mythical creatures in his quest for eternal glory. His legend grows with every victory—will you be part of his saga?" },
    { title: "Tribal Goblin Spirit", description: "Deep in the heart of a tropical jungle, the Tribal Goblin Spirit is the keeper of sacred rituals and the guardian of his people. Chosen by the spirits at birth, he wields a spear said to channel the energy of the Earth itself. His painted markings tell the story of his tribe’s struggles and triumphs. Every full moon, he performs a ceremonial dance to ward off dark forces. Join him to uncover the secrets of an ancient civilization." },
    { title: "Goblin Pirate’s Voyage", description: "Long ago, the Goblin Pirate was a shipbuilder who dreamed of freedom beyond the shore. One stormy night, he found a cursed treasure chest containing a magical eyepatch. With his new powers, he commandeered a ship and became the most infamous goblin on the high seas. With a hearty laugh and his loyal parrot companion, he searches for treasures and mysteries that even the oceans fear to hide. Will you sail with him on this thrilling voyage?" },
    { title: "Halloween Goblin Madness", description: "On one fateful Halloween night, a shy and reclusive goblin stumbled upon an abandoned carnival. As he wandered through its eerie remnants, he discovered an old, tattered clown costume. Upon wearing it, he transformed into the embodiment of Halloween chaos—Goblin Halloween Madness. With his sinister laugh and uncanny charm, he became a legend, spreading playful frights and haunting laughter wherever he went. Every year, he emerges on Halloween night to create a balance between fun and fear. Will you dare to join his haunting escapades?" },
    { title: "Goblin Commando Ops", description: "Trained in the most elite goblin military academy, the Goblin Commando is a one-goblin army. He operates in the shadows, planning daring missions and outsmarting his foes with tactical brilliance. Legends say he once single-handedly stopped an invasion of rogue ogres with nothing but his wits and a rubber chicken. Whether he’s rescuing goblins in distress or sneaking into enemy camps, he always gets the job done. Ready to join his covert operations?" },
  ];

  const nftTitle = document.getElementById("nftTitle");
  const nftDescription = document.getElementById("nftDescription");

  $(".owl-carousel").on("changed.owl.carousel", function (event) {
    const currentIndex = event.item.index - event.relatedTarget._clones.length / 2;
    const normalizedIndex = (currentIndex + nftData.length) % nftData.length;
    nftTitle.textContent = nftData[normalizedIndex].title;
    nftDescription.textContent = nftData[normalizedIndex].description;
  });
});
</script>
<script>
  const ctx = document.getElementById('tokenomicsChart').getContext('2d');
  const tokenomicsChart = new Chart(ctx, {
    type: 'doughnut',
    data: {
      labels: ['Community Allocation (80%)', 'Liquidity Burn (20%)'],
      datasets: [{
        data: [80, 20],
        backgroundColor: ['#87af47', '#5a7d38'],
        borderWidth: 1,
        borderColor: '#fff',
        hoverOffset: 10,
      }],
    },
    options: {
      responsive: true,
      plugins: {
        legend: {
          position: 'bottom',
          labels: {
            color: '#fff',
            font: {
              size: 14,
            },
          },
        },
        tooltip: {
          callbacks: {
            label: function(context) {
              const label = context.label || '';
              const value = context.raw || 0;
              return `${label}: ${value}%`;
            },
          },
        },
      },
    },
  });
</script>

<script>
  // Animasi Counter untuk Total Supply
  const totalSupplyElement = document.getElementById('totalSupplyCounter');
  const totalSupplyTarget = 1000000000; // Target total supply
  let currentCount = 0;
  const duration = 100000; // Durasi animasi dalam milidetik
  const increment = Math.ceil(totalSupplyTarget / (duration / 16)); // Langkah berdasarkan frame rate 60 fps

  function animateCounter() {
    const interval = setInterval(() => {
      currentCount += increment;
      if (currentCount >= totalSupplyTarget) {
        currentCount = totalSupplyTarget;
        clearInterval(interval);
      }
      totalSupplyElement.textContent = currentCount.toLocaleString(); // Format angka dengan koma
    }, 16); // 60 fps
  }

  // Mulai animasi saat halaman dimuat
  window.onload = animateCounter;
</script>
</body>
</html>