const lines = [
            "Get valuable insights of data",
            "Get selected among Top 3% Data Scientist",
            "Get Placed at Top MNC Companies"
        ];

        const lineElement = document.getElementById("typewriter_line");
        let currentLineIndex = 0;
        let currentCharIndex = 0;
        let isTyping = true;

        function typeAndErase() {
            const currentText = lines[currentLineIndex];

            if (isTyping) {
                lineElement.textContent = currentText.slice(0, currentCharIndex);
                currentCharIndex++;

                if (currentCharIndex > currentText.length) {
                    isTyping = false;
                    setTimeout(typeAndErase, 1000); // Wait for 1 second before erasing
                } else {
                    setTimeout(typeAndErase, 100);
                }
            } else {
                lineElement.textContent = currentText.slice(0, currentCharIndex);
                currentCharIndex--;

                if (currentCharIndex === 1) {
                    isTyping = true;
                    currentLineIndex = (currentLineIndex + 1) % lines.length; // Cycle through lines
                    setTimeout(typeAndErase, 100); // Wait for 1 second before typing the next line
                } else {
                    setTimeout(typeAndErase, 100);
                }
            }
        }

        // Start the animation
        typeAndErase();