%%{init: {'theme':'base','themeVariables':{'primaryColor':'#FFF1E6','primaryTextColor':'#1a1a1a','primaryBorderColor':'#F77020','lineColor':'#F77020','secondaryColor':'#FFE4D1','tertiaryColor':'#ffffff','clusterBkg':'#FFF8F2','clusterBorder':'#F77020','fontFamily':'Inter','fontSize':'14px'},'flowchart':{'curve':'basis','htmlLabels':true}}}%%
flowchart TD
classDef trust fill:#F77020,stroke:#c4541a,stroke-width:2px,color:#ffffff
classDef action fill:#FFF1E6,stroke:#F77020,stroke-width:2px,color:#1a1a1a
classDef ai fill:#FFE4D1,stroke:#F77020,stroke-width:2px,color:#7a3a10
classDef user fill:#ffffff,stroke:#F77020,stroke-width:2px,color:#1a1a1a
classDef success fill:#F77020,stroke:#9c4214,stroke-width:3px,color:#ffffff
classDef decision fill:#ffffff,stroke:#F77020,stroke-width:2px,stroke-dasharray:4 2,color:#1a1a1a
Start([Candidate Visits Career Portal]) --> Detect[Detect Device & Locale]
Detect --> Render[Render Mobile-Responsive Layout]
Render --> Lang{Language Preference?}
Lang -- English --> EN[Render English UI]
Lang -- Hindi --> HI[Render Hindi UI]
Lang -- Other --> Other[Render Localised UI]
EN --> Landing[Career Landing Page]
HI --> Landing
Other --> Landing
Landing --> Hero[Hero, Brand Story, Open Roles CTA]
Hero --> Browse[Browse Job Listings]
Browse --> Filters{Apply Filters?}
Filters -- Location --> LocFilter[Filter by City / Branch]
Filters -- Department --> DeptFilter[Filter by Department]
Filters -- Role Type --> TypeFilter[Filter by Full-time / Contract / Intern]
Filters -- None --> JobList[Show All Jobs]
LocFilter --> JobList
DeptFilter --> JobList
TypeFilter --> JobList
JobList --> JobCard[Job Card — Title, Location, Posted Date]
JobCard --> JobDetail[Job Detail Page]
JobDetail --> JDView[View JD & Requirements]
JDView --> Chat{Need Help?}
Chat -- Yes --> Chatbot[Open AI Chatbot]
Chatbot --> Query[Ask Question on Role / Process]
Query --> KB[Query Knowledge Base]
KB --> Answer[Return Conversational Answer]
Answer --> Chat
Chat -- No --> Apply[Click Apply Now]
Apply --> SessionCheck{Existing Session?}
SessionCheck -- Yes --> Resume[Auto-Fill from Previous Application]
SessionCheck -- No --> Fresh[Start Fresh Application]
Resume --> AppFlow
Fresh --> AppFlow
AppFlow[Multi-Step Application Begins] --> AI_Assist[AI Field Assistance & Auto-Save]
AI_Assist --> StepFlow[Basic Details → OTP → Resume → Questions → Self-ID → Review]
StepFlow --> Submit([Submit Application])
Submit --> Confirm[Confirmation Screen + Email]
Confirm --> StatusLink[Status Tracking Link]
Landing --> About[About Igus India]
Landing --> Benefits[Benefits & Culture]
Landing --> FAQ[FAQ & Help]
About --> Browse
Benefits --> Browse
FAQ --> Browse
class Start,Render,Hero,Browse,JobList,JobCard,JobDetail,JDView,Apply,Resume,Fresh,About,Benefits,FAQ,Confirm,StatusLink user
class Detect,EN,HI,Other,Landing,LocFilter,DeptFilter,TypeFilter,AppFlow,StepFlow action
class Chatbot,Query,KB,Answer,AI_Assist ai
class Lang,Filters,Chat,SessionCheck decision
class Submit success