# AGENTS.md

## Project overview

This project is the bilingual personal and professional website
of doc. dr Petar Prvulović, available at prvulovic.com.

The website represents an academic, researcher, university
teacher and software engineer. It is also a curated archive
of professional and creative work.

Read SPECIFICATION.md for the complete website specification.
Read MASTER-CV.md for the authoritative source of biographical
and professional information.

## General principles

- Keep the implementation simple, transparent and maintainable.
- Prefer straightforward solutions over abstractions.
- The website owner is an experienced PHP developer.
- The source code must be easy to understand and edit manually.
- Do not introduce unnecessary architectural complexity.
- Do not expand the website structure beyond the specification
  without explicit approval.
- Do not create separate pages for individual courses, projects,
  publications or activities.
- Do not introduce Git or require a Git repository.

## Technology

Use:

- Plain PHP, compatible with PHP 8.2 and newer.
- Semantic HTML5.
- Plain CSS.
- Vanilla JavaScript.
- SVG for the career timeline where appropriate.
- Leaflet for the interactive geographical map.
- UTF-8 encoding throughout.

Do not use:

- Databases.
- CMS platforms.
- PHP frameworks.
- JavaScript frameworks.
- CSS frameworks.
- Composer.
- npm.
- Build tools or transpilers.
- Docker.
- Administrative interfaces.
- Authentication systems.
- Unnecessary external dependencies.

The website must work on conventional PHP shared hosting.

It must also work locally using the PHP development server:

    php -S localhost:8000

## Application architecture

Use two language directories:

- /en/
- /sr/

English is the default language.

The root index.php redirects to /en/.

Each language directory contains lightweight PHP entry points
for all public pages.

Use common PHP templates for the two languages.

Keep all language-specific content in:

- data/en-data.php
- data/sr-data.php

Each data file returns a single associative PHP array.

Example:

    return [
        'profile' => [...],
        'education' => [...],
        'publications' => [...],
    ];

Both data files should use equivalent keys and structures.

Use simple identifiers for related content when necessary.
Limited redundancy is acceptable.

Do not introduce repositories, ORM models, dependency
injection, service containers or complex routing systems.

Use reusable PHP functions only when they simplify the code.

## Code conventions

- Use descriptive variable names.
- Use four-space indentation.
- Keep PHP templates readable.
- Prefer normal HTML with small embedded PHP expressions.
- Avoid generating extensive HTML through PHP string concatenation.
- Use foreach loops to render structured collections.
- Escape output with htmlspecialchars where appropriate.
- Validate URLs before rendering them.
- Do not execute arbitrary content from the data files.
- Do not use eval.
- Use explicit, predictable include paths based on __DIR__.
- Avoid unnecessary object-oriented abstractions.
- Add useful comments to explain non-obvious decisions.
- Use CSS custom properties for design tokens.
- Avoid inline styles except for genuinely data-driven graphics.

## Content integrity

MASTER-CV.md is the initial source of factual information.

Do not invent:

- Dates.
- Employment periods.
- Academic titles.
- Publications.
- Publication categories.
- DOI identifiers.
- Student names.
- Mentorship records.
- Awards.
- Professional engagements.
- Project completion dates.
- Photographs.
- Video URLs.
- External news links.

Do not resolve conflicting source information by guessing.

Where a record contains uncertainty, retain the uncertainty
in a private TODO list and use a conservative public
representation.

Do not expose private TODO notes on the public website.

Do not publish internal bibliometric snapshots as current data.

The academic title in Serbian is:

    doc. dr Petar Prvulović

The English representation is:

    Petar Prvulović, PhD

Academic position:

    Assistant Professor

Institution:

    School of Computing, Union University, Belgrade, Serbia

## Language

- Serbian content uses Serbian Latin script.
- English content uses natural professional English.
- Preserve Serbian diacritics.
- Preserve original publication titles.
- Translate descriptions, not bibliographic titles.
- Clearly identify resources available only in Serbian.
- Language switching must retain the current page.
- Avoid marketing language and exaggerated claims.

## Visual identity

The design direction is Monochrome Modernism.

The visual identity is primarily typographic.

Use:

- Cambria as the preferred serif font.
- Georgia and Times New Roman as fallback fonts.
- Arial or Helvetica for secondary metadata.
- A light, neutral background.
- Dark grayscale typography.
- Generous whitespace.
- Strong alignment.
- A restrained modernist grid.
- A small monochrome VHS-inspired stripe motif.

Do not use:

- Cards with visible containers.
- Decorative borders.
- Rounded containers.
- Drop shadows.
- Gradients.
- Large colored backgrounds.
- Generic technology illustrations.
- Stock photography.
- Animated decorative elements.
- Excessive icons.
- Skill percentage bars.
- Marketing-oriented portfolio components.

Photography, book covers, artwork and video thumbnails
provide visual variety.

## Layout

Desktop:

- Persistent left-hand navigation.
- Main content to the right.
- No visible divider between navigation and content.
- Approximately 230px navigation width.
- Approximately 64px column gap.
- Approximately 780px maximum text content width.
- Center the overall layout on wide screens.
- Prefer sticky navigation and normal document scrolling.

Mobile:

- Single-column layout.
- Compact header.
- Accessible collapsible navigation.
- No horizontal overflow.
- Content remains readable without zooming.

## Media

Use authentic photographs and supplied media only.

Do not substitute missing personal photographs, artwork
or book covers with fabricated or stock material.

Missing media should degrade gracefully.

Do not display broken image icons.

Portrait and documentary event photographs may use a
grayscale filter on desktop devices.

Restore original colors on hover and keyboard focus.

On touch devices, display photographs in original colors.

Do not apply grayscale to:

- Book covers.
- Original artwork.
- Video thumbnails.
- Scientific diagrams.
- Technical screenshots.

Use appropriate alternative text.

Preserve original artwork proportions.

Load non-critical images lazily.

Use YouTube links or click-to-load video embeds.
Do not automatically load multiple YouTube players.

## Print styles

Every content page must be print-friendly.

Use a dedicated print.css stylesheet with @media print.

When printing:

- Hide navigation, language switching and interactive controls.
- Hide decorative branding and non-content elements.
- Display only the main page content.
- Use white background and black text.
- Remove screen-specific width restrictions.
- Preserve publication references and meaningful metadata.
- Prevent headings from being separated from their content.
- Avoid page breaks inside short entries.
- Use suitable A4 page margins.
- Remove grayscale filters from images.
- Replace the interactive map with a printable location list.
- Replace video players with titles and useful URLs.
- Keep the career timeline printable.
- Provide a textual fallback for the career timeline.

Do not rely on JavaScript to make basic printed content available.

## Accessibility

- Use semantic landmarks.
- Maintain logical heading levels.
- Support keyboard navigation.
- Indicate the current navigation item.
- Provide visible keyboard focus.
- Respect prefers-reduced-motion.
- Ensure adequate contrast.
- Do not communicate information exclusively through color.
- Provide textual alternatives to graphical presentations.

## Privacy and security

- Do not publish the owner's private residential address.
- Do not publish private telephone numbers.
- Do not expose internal biographical notes.
- Do not publish student names unless publication is authorized
  or the information is already appropriately public.
- Do not publish private student documents.
- Do not introduce tracking or analytics without approval.
- Do not use third-party cookies unnecessarily.
- Do not add forms requiring server-side mail handling.
- Do not deploy or modify the existing production website.
- Do not copy executable code from the old website.

## Testing

Before declaring a task complete:

- Run PHP syntax checks on all modified PHP files.
- Verify that all seven pages work in both languages.
- Verify internal links and language switching.
- Verify mobile layout.
- Verify print layout.
- Verify that missing media does not break the presentation.
- Check for PHP warnings and notices.
- Verify that private content is not publicly rendered.

If a test cannot be performed, explicitly state this.

Maintain a short README.md with local startup and
content-editing instructions.

Maintain TODO.md for missing content and factual questions.

Do not claim that the website was tested or deployed
unless that actually happened.


The file design-reference.svg is the approved visual
reference for the website.

Treat it as the authoritative reference for typography,
spacing, sidebar composition and layout proportions.

Do not reinterpret or redesign the visual identity
unless explicitly requested by the website owner.