Craft your impactful resume and navigate your career in Physical AI.
Your Resume Details
Fill in your information below. Use the "AI Suggestions" and "Keywords" to enhance your content for Physical AI roles.
Generated Resume Preview
ATS Compatibility Score: Calculating...
Your resume will appear here after you click "Generate Resume".
Career Co-Pilot: Navigate Your Path
Leverage AI-simulated insights to prepare for interviews and explore potential career trajectories in Physical AI.
Interview Preparation
Generate common interview questions based on your resume content. Focus on your experience and skills to get relevant prompts.
Portfolio Integration Guidance
A strong portfolio is essential for Physical AI roles. Here are tips to integrate it with your resume:
Include a direct link to your online portfolio (GitHub, personal website, etc.) in your contact information.
Reference specific projects from your portfolio in your work experience bullet points.
Use action verbs to describe your contributions and the impact of your projects.
Ensure your portfolio projects clearly demonstrate your skills in Physical AI, robotics, or autonomous systems.
For proprietary projects, describe them conceptually without revealing confidential details.
Networking & Community Engagement
Building a strong network is crucial in specialized fields like Physical AI. Select a time period to generate your plan:
Networking Quick Tips (Click to insert):
Continuous Learning & Skill Adaptation
The Physical AI landscape evolves rapidly. Staying current is key to long-term career success. Select a time period to generate your plan:
Learning Quick Tips (Click to insert):
Personalized Career Pathing Suggestions
Based on common Physical AI skill sets, here are some potential career paths. A more advanced AI could tailor these to your specific skills and aspirations:
**Robotics Engineer:** Focus on control systems, robot kinematics, ROS, C++.
**Embedded AI Engineer:** Combines hardware knowledge with AI model deployment on edge devices.
**Machine Learning Engineer (Robotics/AV focus):** Deep dive into AI algorithms for perception, decision-making, reinforcement learning.
**Simulation & Testing Engineer:** Expertise in creating virtual environments, HIL/SIL testing for physical systems.
*(Future enhancement: AI analyzes your skills to suggest the most relevant paths and learning resources.)*
${cardData.text}
`;
card.addEventListener('click', function() {
const textToInsert = this.dataset.text;
const currentTargetValue = targetElement.value.trim();
if (currentTargetValue === '') {
targetElement.value = textToInsert;
} else {
// Append with a comma and space for skills, new line for others
if (targetElement.id === 'skills') {
const skillsArray = currentTargetValue.split(',').map(s => s.trim());
if (!skillsArray.map(s => s.toLowerCase()).includes(textToInsert.toLowerCase().trim())) {
targetElement.value += ', ' + textToInsert;
}
} else {
targetElement.value += '\n\n' + textToInsert;
}
}
targetElement.dispatchEvent(new Event('input')); // Trigger input event
});
container.appendChild(card);
});
}
// Function to render action cards (for Career Co-Pilot)
function renderCareerActionCards(container, tipsData, targetElementId) {
if (!container) return; // Defensive check
container.innerHTML = ''; // Clear existing cards
tipsData.forEach(tip => {
const card = document.createElement('div');
card.className = 'action-card';
card.setAttribute('data-target', targetElementId); // Set target ID for insertion
card.setAttribute('data-text', tip.text); // Set text to insert
card.innerHTML = `
${tip.title}
${tip.text}
`;
card.addEventListener('click', function() {
const targetElement = getElementByIdOrLogError(this.dataset.target);
const textToInsert = this.dataset.text;
if (targetElement) {
if (targetElement.value.trim() === '') {
targetElement.value = textToInsert;
} else {
targetElement.value += '\n' + textToInsert; // Append with a new line
}
}
});
container.appendChild(card);
});
}
// Tab switching logic
if (tabResumeButton && tabCareerButton && contentResume && contentCareer) {
tabResumeButton.addEventListener('click', () => {
tabResumeButton.classList.add('active');
tabCareerButton.classList.remove('active');
contentResume.classList.remove('hidden');
contentCareer.classList.add('hidden');
});
tabCareerButton.addEventListener('click', () => {
tabCareerButton.classList.add('active');
tabResumeButton.classList.remove('active');
contentCareer.classList.remove('hidden');
contentResume.classList.add('hidden');
// Render action cards when Career Co-Pilot tab is opened
renderCareerActionCards(networkingActionCardsContainer, networkingTips, 'networkingPlanOutput');
renderCareerActionCards(learningActionCardsContainer, learningTips, 'learningPlanOutput');
});
}
// Function to calculate and update ATS score
function updateAtsScore() {
if (!skillsInput || !experienceInput || !summaryInput || !atsScoreDisplay) return; // Defensive check
let score = 0;
let feedback = [];
const currentSkills = skillsInput.value.toLowerCase().split(',').map(s => s.trim()).filter(s => s !== '');
const experienceContent = experienceInput.value.toLowerCase();
const summaryContent = summaryInput.value.toLowerCase();
// Rule 1: Keyword density in skills (30 points max)
let matchedKeywords = 0;
keywords.forEach(keyword => {
if (currentSkills.includes(keyword.toLowerCase())) {
matchedKeywords++;
}
});
score += Math.min(matchedKeywords * 2, 30); // Max 30 points for 15 keywords
if (matchedKeywords < 5) {
feedback.push("Add more key Physical AI keywords to your skills section.");
}
// Rule 2: Quantifiable achievements in experience (30 points max)
const quantifiableRegex = /(\d+%|\d+\s*(million|k|thousand|%|x)\s*(reduced|increased|improved|saved|boosted|optimized|gains)|by\s*\d+%)/gi;
const matches = experienceContent.match(quantifiableRegex);
if (matches && matches.length > 0) {
score += Math.min(matches.length * 5, 30); // Max 30 points for 6 matches
} else {
feedback.push("Include quantifiable achievements (e.g., 'increased X by Y%') in your work experience.");
}
// Rule 3: Summary length (10 points max)
if (summaryInput.value.length >= 100 && summaryInput.value.length <= 500) {
score += 10;
} else if (summaryInput.value.length > 0) {
feedback.push("Keep your summary concise (100-500 characters).");
}
// Rule 4: Basic formatting (10 points max - very basic check)
// Check for presence of experience and skills sections
if (experienceInput.value.trim().length > 0 && skillsInput.value.trim().length > 0) {
score += 10;
} else {
feedback.push("Ensure you have content in both Experience and Skills sections.");
}
// Rule 5: NDA guidance (10 points max)
const ndaGuidanceInput = getElementByIdOrLogError('ndaGuidance');
if (ndaGuidanceInput && ndaGuidanceInput.value.trim().length > 0) {
score += 10;
} else {
feedback.push("Consider adding a note for proprietary projects under NDA.");
}
// Determine score class and message
let scoreClass = '';
let scoreMessage = '';
if (score >= 70) {
scoreClass = 'ats-score-good';
scoreMessage = `Excellent! Your resume is highly optimized for ATS.`;
} else if (score >= 40) {
scoreClass = 'ats-score-medium';
scoreMessage = `Good. Your resume is moderately optimized for ATS. Consider the suggestions below.`;
} else {
scoreClass = 'ats-score-bad';
scoreMessage = `Needs attention. Your resume could be better optimized for ATS.`;
}
atsScoreDisplay.className = `p-4 rounded-lg mb-6 text-center text-sm font-semibold ${scoreClass}`;
atsScoreDisplay.innerHTML = `ATS Compatibility Score: ${score}/100 ${scoreMessage}`;
if (feedback.length > 0 && score < 70) {
atsScoreDisplay.innerHTML += ` Suggestions: ${feedback.join(' ')}`;
}
}
// Function to provide feedback on experience section
function updateExperienceFeedback() {
if (!experienceInput || !experienceFeedback) return; // Defensive check
const experienceContent = experienceInput.value;
const quantifiableRegex = /(\d+%|\d+\s*(million|k|thousand|%|x)\s*(reduced|increased|improved|saved|boosted|optimized|gains)|by\s*\d+%)/gi;
const matches = experienceContent.match(quantifiableRegex);
if (!experienceContent.trim()) {
experienceFeedback.classList.add('hidden');
} else if (!matches || matches.length < 2) { // Aim for at least 2 quantifiable achievements
experienceFeedback.classList.remove('hidden');
experienceFeedback.classList.add('bg-orange-100', 'text-orange-800');
experienceFeedback.classList.remove('feedback-good');
experienceFeedback.textContent = "Pro Tip: Quantify your achievements! Use numbers, percentages, or metrics to show impact (e.g., 'increased efficiency by 20%').";
} else {
experienceFeedback.classList.remove('hidden', 'bg-orange-100', 'text-orange-800');
experienceFeedback.classList.add('feedback-good');
experienceFeedback.textContent = "Great! You're using quantifiable achievements. Keep it up!";
}
}
// Function to provide feedback on skills section for interdisciplinary skills
function updateSkillsFeedback() {
if (!skillsInput || !skillsFeedback) return; // Defensive check
const skillsContent = skillsInput.value.toLowerCase();
let hasInterdisciplinary = false;
// Simple check for common interdisciplinary pairings
if (skillsContent.includes('ros') && skillsContent.includes('computer vision')) hasInterdisciplinary = true;
if (skillsContent.includes('embedded c') && skillsContent.includes('sensor fusion')) hasInterdisciplinary = true;
if (skillsContent.includes('pytorch') && skillsContent.includes('robot control')) hasInterdisciplinary = true;
if (skillsContent.includes('hardware') && skillsContent.includes('software')) hasInterdisciplinary = true;
if (!skillsContent.trim()) {
skillsFeedback.classList.add('hidden');
} else if (!hasInterdisciplinary) {
skillsFeedback.classList.remove('hidden');
skillsFeedback.classList.add('bg-orange-100', 'text-orange-800');
skillsFeedback.classList.remove('feedback-good');
skillsFeedback.textContent = "Enhance: Highlight your interdisciplinary skills! Show how your hardware, software, and AI knowledge connect (e.g., 'ROS & Computer Vision for Navigation').";
} else {
skillsFeedback.classList.remove('hidden', 'bg-orange-100', 'text-orange-800');
skillsFeedback.classList.add('feedback-good');
skillsFeedback.textContent = "Excellent! You're showcasing valuable interdisciplinary skills.";
}
}
// Populate keyword chips and add click listeners
function renderKeywordChips() {
if (!keywordChipsContainer || !skillsInput) return; // Defensive check
keywordChipsContainer.innerHTML = ''; // Clear existing chips
const currentSkills = skillsInput.value.toLowerCase().split(',').map(s => s.trim()).filter(s => s !== '');
keywords.forEach(keyword => {
const span = document.createElement('span');
span.className = 'keyword-chip';
span.textContent = keyword;
if (currentSkills.includes(keyword.toLowerCase())) {
span.classList.add('keyword-chip-active');
}
span.addEventListener('click', function() {
if (!span.classList.contains('keyword-chip-active')) {
const currentSkillsValue = skillsInput.value.trim();
if (currentSkillsValue === '') {
skillsInput.value = keyword;
} else {
const skillsArray = currentSkillsValue.split(',').map(s => s.trim());
if (!skillsArray.map(s => s.toLowerCase()).includes(keyword.toLowerCase())) {
skillsInput.value += ', ' + keyword;
}
}
skillsInput.dispatchEvent(new Event('input')); // Trigger input event to update char count and re-highlight
updateAtsScore(); // Update ATS score immediately
updateSkillsFeedback(); // Update skills feedback
}
});
keywordChipsContainer.appendChild(span);
});
}
// Function to generate simulated interview questions
if (generateInterviewQuestionsBtn && interviewQuestionsOutput && summaryInput && experienceInput && skillsInput) {
generateInterviewQuestionsBtn.addEventListener('click', () => {
const summary = summaryInput.value;
const experience = experienceInput.value;
const skills = skillsInput.value;
let questions = [];
// General questions
questions.push("Tell me about a challenging project you worked on and how you overcame obstacles.");
questions.push("Describe a time you failed or made a mistake. What did you learn?");
questions.push("How do you stay updated with the latest advancements in Physical AI and robotics?");
questions.push("What are your career aspirations in the Physical AI domain?");
questions.push("Can you give an example of how you used data to drive a technical decision?");
// Questions based on resume content
if (summary.toLowerCase().includes('robotics') || experience.toLowerCase().includes('robotics') || skills.toLowerCase().includes('ros')) {
questions.push("Explain your experience with ROS and how you've used it in robotic applications.");
questions.push("Describe a control system you designed for a robotic system.");
}
if (summary.toLowerCase().includes('autonomous vehicles') || experience.toLowerCase().includes('autonomous vehicles') || skills.toLowerCase().includes('slam') || skills.toLowerCase().includes('path planning')) {
questions.push("How do you approach sensor fusion in autonomous systems?");
questions.push("Discuss your experience with path planning algorithms for autonomous vehicles.");
}
if (summary.toLowerCase().includes('humanoids') || experience.toLowerCase().includes('humanoids') || skills.toLowerCase().includes('human-robot interaction')) {
questions.push("What are the key considerations when designing for human-robot interaction?");
questions.push("Discuss the ethical implications of developing humanoid robots.");
}
if (experience.match(/(\d+%|\d+\s*(reduced|increased|improved|saved|boosted|optimized|gains))/gi)) {
questions.push("Can you elaborate on a specific achievement where you quantified your impact?");
}
if (skills.toLowerCase().includes('tensorflow') || skills.toLowerCase().includes('pytorch') || skills.toLowerCase().includes('machine learning')) {
questions.push("Describe a machine learning model you deployed in a physical system. What were the challenges?");
}
// Shuffle questions to make it feel more dynamic
for (let i = questions.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[questions[i], questions[j]] = [questions[j], questions[i]];
}
interviewQuestionsOutput.value = questions.slice(0, 7).map((q, index) => `${index + 1}. ${q}`).join('\n\n');
});
}
// --- Networking Plan Generation ---
const networkingPlans = {
'3': `
## 3-Month Networking Plan for Physical AI
**Month 1: Foundation & Digital Presence**
* Identify 3-5 key LinkedIn influencers/groups in Physical AI, robotics, or AVs. Follow them and engage with their posts (1-2 comments/week).
* Join 1-2 relevant online forums or Slack communities (e.g., ROS Discourse, specific AV tech forums, IEEE groups). Introduce yourself.
* Update your LinkedIn profile to highlight Physical AI skills and projects.
* Connect with 5-10 professionals on LinkedIn per week, sending personalized messages referencing shared interests or connections.
**Month 2: Active Engagement & Local Reach**
* Actively participate in discussions in online communities (post 2-3 times/week, answer questions).
* Attend 1-2 virtual meetups, webinars, or online workshops related to Physical AI. Ask questions.
* Research local robotics/AI meetups or university events. Attend 1 if available.
* Schedule 1-2 informational interviews with professionals in your target roles.
**Month 3: Deeper Connections & Contribution**
* Identify potential mentors and reach out for guidance (1-2 per month).
* Start contributing to an open-source Physical AI project on GitHub (even small contributions).
* Share relevant articles or your own insights on LinkedIn (1-2 posts/month).
* Follow up with new connections, offering value or sharing relevant content.
`,
'6': `
## 6-Month Networking Plan for Physical AI
**Months 1-3: (Same as 3-Month Plan above)**
**Month 4: Expanding Horizons & Value Exchange**
* Attend 1 major virtual or in-person industry conference (e.g., ICRA, IROS, CVPR, NeurIPS, CES Robotics). Network actively.
* Seek opportunities to collaborate on small open-source projects or contribute to a community initiative.
* Offer to help connections with their projects or share your expertise where relevant.
* Join a professional organization (e.g., IEEE Robotics and Automation Society).
**Month 5: Thought Leadership & Sustained Engagement**
* Consider writing a short blog post or LinkedIn article on a Physical AI topic you're passionate about.
* Consistently engage with your network, celebrating their successes and offering support.
* Attend industry-specific career fairs or recruitment events.
* Expand your network beyond immediate connections to include recruiters and hiring managers.
**Month 6: Review & Refine**
* Review your networking goals and progress. Adjust strategy as needed.
* Identify 2-3 key relationships to nurture long-term.
* Practice your "elevator pitch" for networking events.
* Continue active participation in 2-3 core online communities.
`,
'12': `
## 1-Year Networking Plan for Physical AI
**Months 1-6: (Same as 6-Month Plan above)**
**Month 7-9: Advanced Contribution & Visibility**
* Present a small project or finding at a local meetup, online forum, or even a smaller conference.
* Actively seek out opportunities for speaking engagements or panel discussions.
* Mentor junior professionals or students entering the Physical AI field.
* Deepen relationships with key industry contacts, aiming for collaborative opportunities.
**Month 10-12: Strategic Growth & Long-Term Impact**
* Explore leadership roles within professional organizations or open-source communities.
* Publish a more in-depth technical article or participate in a white paper.
* Attend a specialized workshop or training program to expand your network in a niche area.
* Continuously cultivate a diverse network that spans different companies, roles, and expertise areas within Physical AI.
* Regularly review your network for potential synergies and opportunities.
`
};
if (generateNetworkingPlanBtn && networkingPlanOutput && networkingTimePeriodSelect && copyNetworkingPlanBtn && downloadNetworkingPlanBtn) {
generateNetworkingPlanBtn.addEventListener('click', () => {
const timePeriod = networkingTimePeriodSelect.value;
networkingPlanOutput.value = networkingPlans[timePeriod].trim();
copyNetworkingPlanBtn.classList.remove('hidden');
downloadNetworkingPlanBtn.classList.remove('hidden');
});
copyNetworkingPlanBtn.addEventListener('click', () => {
networkingPlanOutput.select();
document.execCommand('copy');
copyNetworkingPlanBtn.textContent = 'Copied!';
setTimeout(() => {
copyNetworkingPlanBtn.textContent = 'Copy Plan';
}, 2000);
});
downloadNetworkingPlanBtn.addEventListener('click', () => {
const planContent = networkingPlanOutput.value;
const blob = new Blob([planContent], { type: 'text/plain' });
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = `PhysicalAI_Networking_Plan_${networkingTimePeriodSelect.value}Months.txt`;
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
showMessageModal('Simulated PDF download. In a real application, this would generate a formatted PDF.');
});
}
// --- Learning Plan Generation ---
const learningPlans = {
'3': `
## 3-Month Continuous Learning Plan for Physical AI
**Month 1: Foundational Deep Dive**
* Complete an online specialization or course in a core Physical AI skill (e.g., 'ROS Basics' on Coursera, 'Deep Learning for Computer Vision' on edX).
* Read 2-3 foundational research papers or comprehensive industry reports on your chosen sub-field (e.g., SLAM, Humanoid Locomotion).
* Experiment with a new small hardware module (e.g., Raspberry Pi with a new sensor, Arduino for basic robotics control).
**Month 2: Practical Application & Tool Mastery**
* Start a personal project applying a newly acquired skill (e.g., implement a simple object detection model on a robot, build a basic autonomous navigation script).
* Deep dive into a specific tool or framework (e.g., master advanced features of PyTorch, explore Gazebo for simulations).
* Follow 2-3 leading research labs or companies in the Physical AI space to stay updated on their latest work.
**Month 3: Expansion & Review**
* Explore an adjacent skill set that complements your core expertise (e.g., if you're software-focused, learn basic electrical engineering concepts).
* Review your learning progress and identify areas for further development.
* Participate in a relevant online coding challenge or mini-hackathon to test your skills.
* Read 1-2 books on advanced topics in Physical AI or robotics.
`,
'6': `
## 6-Month Continuous Learning Plan for Physical AI
**Months 1-3: (Same as 3-Month Plan above)**
**Month 4: Project-Based Learning & Niche Exploration**
* Undertake a more complex personal project that integrates multiple Physical AI components (e.g., a drone with autonomous navigation and object avoidance).
* Explore a niche area within Physical AI that aligns with your interests (e.g., bio-inspired robotics, soft robotics, swarm intelligence).
* Attend a virtual workshop or training program focused on a specific advanced technique (e.g., advanced sensor fusion, reinforcement learning for real-world systems).
**Month 5: Advanced Concepts & Community Contribution**
* Read and critically analyze 3-5 cutting-edge research papers from top conferences (e.g., ICRA, IROS, CVPR, NeurIPS).
* Contribute to an open-source Physical AI library or framework.
* Start a technical blog or create video tutorials on a Physical AI topic you've mastered.
* Seek out opportunities for informal mentorship or peer learning groups.
**Month 6: Synthesis & Strategic Planning**
* Consolidate your learning by building a comprehensive portfolio piece showcasing your new skills and projects.
* Evaluate emerging technologies and their potential impact on your career path.
* Consider pursuing a specialized certification (e.g., ROS certification, NVIDIA Deep Learning Institute certificate).
* Plan your next 3-6 months of learning based on industry trends and personal goals.
`,
'12': `
## 1-Year Continuous Learning Plan for Physical AI
**Months 1-6: (Same as 6-Month Plan above)**
**Month 7-9: Deep Specialization & Research**
* Enroll in an advanced online course or a university-level specialization in a highly specialized Physical AI sub-field (e.g., advanced humanoid locomotion, quantum machine learning for robotics).
* Actively follow the work of 3-5 leading research labs and their publications.
* Attend a major international conference (in-person or virtual) and engage with researchers.
* Begin outlining a potential research paper or a significant open-source contribution.
**Month 10-12: Leadership & Future-Proofing**
* Seek opportunities to mentor junior engineers or lead a small internal project.
* Explore the business and ethical implications of Physical AI, broadening your understanding beyond pure technical skills.
* Consider an advanced degree (Master's or Ph.D.) if research or academic roles are of interest.
* Develop a long-term learning strategy that incorporates emerging technologies and anticipates future industry needs.
* Continuously refine your problem-solving and critical thinking skills through complex challenges.
`
};
if (generateLearningPlanBtn && learningPlanOutput && learningTimePeriodSelect && copyLearningPlanBtn && downloadLearningPlanBtn) {
generateLearningPlanBtn.addEventListener('click', () => {
const timePeriod = learningTimePeriodSelect.value;
learningPlanOutput.value = learningPlans[timePeriod].trim();
copyLearningPlanBtn.classList.remove('hidden');
downloadLearningPlanBtn.classList.remove('hidden');
});
copyLearningPlanBtn.addEventListener('click', () => {
learningPlanOutput.select();
document.execCommand('copy');
copyLearningPlanBtn.textContent = 'Copied!';
setTimeout(() => {
copyLearningPlanBtn.textContent = 'Copy Plan';
}, 2000);
});
downloadLearningPlanBtn.addEventListener('click', () => {
const planContent = learningPlanOutput.value;
const blob = new Blob([planContent], { type: 'text/plain' });
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = `PhysicalAI_Learning_Plan_${learningTimePeriodSelect.value}Months.txt`;
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
showMessageModal('Simulated PDF download. In a real application, this would generate a formatted PDF.');
});
}
// Initial render of content cards, keyword chips and ATS score
if (summaryContentCardsContainer && summaryInput) renderContentCards(summaryContentCardsContainer, summaryContentCards, summaryInput);
if (experienceContentCardsContainer && experienceInput) renderContentCards(experienceContentCardsContainer, experienceContentCards, experienceInput);
if (skillsContentCardsContainer && skillsInput) renderContentCards(skillsContentCardsContainer, skillsContentCards, skillsInput);
// Initial render of Career Co-Pilot action cards (will only be visible when tab is active)
if (networkingActionCardsContainer && networkingPlanOutput) renderCareerActionCards(networkingActionCardsContainer, networkingTips, 'networkingPlanOutput');
if (learningActionCardsContainer && learningPlanOutput) renderCareerActionCards(learningActionCardsContainer, learningTips, 'learningPlanOutput');
if (keywordChipsContainer && skillsInput) renderKeywordChips();
if (atsScoreDisplay) updateAtsScore();
if (experienceFeedback) updateExperienceFeedback(); // Initial experience feedback
if (skillsFeedback) updateSkillsFeedback(); // Initial skills feedback
// Character counter for summary
if (summaryInput && summaryCharCount) {
summaryInput.addEventListener('input', () => {
const currentLength = summaryInput.value.length;
summaryCharCount.textContent = `(${currentLength}/500 chars)`;
if (currentLength > 500) {
summaryCharCount.classList.add('text-red-500');
} else {
summaryCharCount.classList.remove('text-red-500');
}
updateAtsScore(); // Update ATS score on summary change
});
}
// Character counter for skills and re-render keyword chips on skills input change
if (skillsInput && skillsCharCount) {
skillsInput.addEventListener('input', () => {
const currentLength = skillsInput.value.length;
skillsCharCount.textContent = `(${currentLength}/1000 chars)`;
if (currentLength > 1000) {
skillsCharCount.classList.add('text-red-500');
} else {
skillsCharCount.classList.remove('text-red-500');
}
renderKeywordChips(); // Re-render chips to update active state
updateAtsScore(); // Update ATS score on skills change
updateSkillsFeedback(); // Update skills feedback
});
}
// Update ATS score and feedback on experience and NDA guidance changes
if (experienceInput) {
experienceInput.addEventListener('input', () => {
updateAtsScore();
updateExperienceFeedback();
});
}
const ndaGuidanceInput = getElementByIdOrLogError('ndaGuidance');
if (ndaGuidanceInput) {
ndaGuidanceInput.addEventListener('input', updateAtsScore);
}
// Handle AI suggestion chips (for NDA phrasing)
document.querySelectorAll('.ai-suggestion-chip').forEach(chip => {
chip.addEventListener('click', function() {
const targetId = this.dataset.target;
const textToInsert = this.dataset.text;
const targetElement = getElementByIdOrLogError(targetId);
if (targetElement) {
if (targetElement.value.trim() === '') {
targetElement.value = textToInsert;
} else {
targetElement.value += '\n\n' + textToInsert;
}
targetElement.dispatchEvent(new Event('input'));
updateAtsScore(); // Update ATS score after a suggestion is inserted
}
});
});
// Generate Resume
if (form && resumeOutput && copyResumeBtn) {
form.addEventListener('submit', function(e) {
e.preventDefault();
const fullName = getElementByIdOrLogError('fullName')?.value || '';
const email = getElementByIdOrLogError('email')?.value || '';
const phone = getElementByIdOrLogError('phone')?.value || '';
const linkedin = getElementByIdOrLogError('linkedin')?.value || '';
const github = getElementByIdOrLogError('github')?.value || '';
const summary = getElementByIdOrLogError('summary')?.value || '';
const experience = getElementByIdOrLogError('experience')?.value || '';
const education = getElementByIdOrLogError('education')?.value || '';
const skills = getElementByIdOrLogError('skills')?.value || '';
const certifications = getElementByIdOrLogError('certifications')?.value || '';
const ndaGuidance = getElementByIdOrLogError('ndaGuidance')?.value || '';
let resumeContent = '';
if (fullName || email || phone || linkedin || github) {
resumeContent += `
${fullName || 'Your Name'}
\n`;
let contactDetails = [];
if (email) contactDetails.push(email);
if (phone) contactDetails.push(phone);
if (linkedin) contactDetails.push(linkedin);
if (github) contactDetails.push(github);
if (contactDetails.length > 0) {
resumeContent += `