# dhilberm2/webpage_portfolio architecture

> Architecture diagram of the GitHub repository dhilberm2/webpage_portfolio, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dhilberm2/webpage_portfolio
- Repository: https://github.com/dhilberm2/webpage_portfolio

## Overview

#### Purpose and Delivery
This is a static personal portfolio for Dhilbar Muhammed, presenting research, engineering, and creative work. It has no build system or application backend: a browser loads the root document and static assets directly. It is intended for GitHub Pages, with custom-domain support via `CNAME`.

Paths: `index.html`, `CNAME`, `README.md`

#### Browser Entry and Composition
`index.html` is the primary entry point and contains the page’s semantic sections, project content, navigation targets, and the mount point/canvas context for the 3D showcase. It links the stylesheet and client-side scripts. Asset directories are reserved for real project imagery and optional 3D models.

Paths: `index.html`, `assets/images/`, `assets/models/`

#### Presentation and Theme System
`style.css` owns responsive layout, dark/light visual tokens, component styling, motion effects, and breakpoint behavior. Theme selection is applied in the browser and persisted locally, so styling state is not server-managed. CSS also provides graceful presentation when 3D or enhanced interactions are unavailable.

Paths: `style.css`, `index.html`

#### Page Interaction Controller
`script.js` centralizes conventional DOM behaviors: navigation/menu state, theme toggle and `localStorage` persistence, custom cursor behavior for desktop, scroll-triggered reveals and counters, rotating typewriter text, project filtering, hover tilt cards, and contact-form handling. It operates against markup in `index.html`; the form is UI-only and requires a separate backend/service integration to submit messages.

Paths: `script.js`, `index.html`

#### Three.js Showcase Boundary
`three-scene.js` is a standalone ES-module-style 3D subsystem, separate from general page interactions. It initializes the Three.js scene and render loop, handles mouse parallax and scroll-driven camera motion, and supports loading a replaceable glTF/GLB asset. The browser must access it through HTTP(S), not reliably through `file://`, because module and asset loading are subject to browser CORS rules.

Paths: `three-scene.js`, `assets/models/README.md`, `index.html`

#### Runtime Flow and Performance Behavior
On load, the browser parses `index.html`, applies `style.css`, then initializes DOM interaction code and the 3D scene. Scroll and pointer events feed visual state into the page controller and camera/model behavior; animation loops update rendered output. Mobile browsers are expected to receive a reduced 3D experience for performance, while desktop receives cursor and richer hover interactions.

Paths: `index.html`, `script.js`, `three-scene.js`

#### Infrastructure and External Dependencies
The runtime is fully client-side: HTML5, CSS3, vanilla JavaScript, and Three.js r128 loaded from a CDN; Inter is supplied through Google Fonts. Deployment is static hosting, principally GitHub Pages. `CNAME` is the repository-level boundary for domain routing. There are no database, API, authentication, analytics, or active form-delivery services represented in the provided tree.

Paths: `CNAME`, `index.html`, `README.md`

Main entry points: [`index.html`](https://github.com/dhilberm2/webpage_portfolio/blob/main/index.html) (Portfolio page), [`three-scene.js`](https://github.com/dhilberm2/webpage_portfolio/blob/main/three-scene.js) (3D showcase), [`style.css`](https://github.com/dhilberm2/webpage_portfolio/blob/main/style.css) (Theme and layout), [`script.js`](https://github.com/dhilberm2/webpage_portfolio/blob/main/script.js) (Page controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Static Site"]
  node_index["Portfolio page<br/>HTML entry<br/>[index.html]"]
  node_styles["Theme and layout<br/>CSS<br/>[style.css]"]
  node_interactions["Page controller<br/>JavaScript<br/>[script.js]"]
  node_scene["3D showcase<br/>ES module<br/>[three-scene.js]"]
  node_images["Project imagery<br/>static assets"]
  node_models["3D model assets<br/>glTF/GLB assets"]
  node_model_readme["Model asset guidance<br/>documentation<br/>[README.md]"]
end

subgraph group_browser["Browser Runtime"]
  node_browser_dom["DOM and page state<br/>browser runtime"]
  node_webgl["WebGL renderer<br/>browser runtime"]
  node_local_storage[("Theme preference<br/>browser storage")]
  node_three_cdn{{"Three.js r128<br/>CDN dependency"}}
  node_fonts{{"Inter fonts<br/>Google Fonts"}}
end

subgraph group_delivery["Delivery"]
  node_github_pages["GitHub Pages<br/>static hosting"]
  node_cname["Custom domain mapping<br/>domain routing"]
  node_readme["Project documentation<br/>[README.md]"]
end

node_github_pages -->|"serves"| node_index
node_cname -->|"routes domain"| node_github_pages
node_readme -.->|"documents deployment"| node_github_pages
node_index -->|"loads"| node_styles
node_index -->|"loads"| node_interactions
node_index -->|"loads module"| node_scene
node_index -->|"references"| node_images
node_styles -->|"uses"| node_fonts
node_styles -->|"renders state and fallbacks"| node_browser_dom
node_interactions -->|"controls"| node_browser_dom
node_interactions -->|"persists theme"| node_local_storage
node_scene -->|"imports"| node_three_cdn
node_scene -->|"loads over HTTP&#40;S&#41;"| node_models
node_model_readme -.->|"guides assets"| node_models
node_scene -->|"initializes and animates"| node_webgl
node_browser_dom -->|"scroll and pointer input"| node_scene

click node_index "https://github.com/dhilberm2/webpage_portfolio/blob/main/index.html"
click node_styles "https://github.com/dhilberm2/webpage_portfolio/blob/main/style.css"
click node_interactions "https://github.com/dhilberm2/webpage_portfolio/blob/main/script.js"
click node_scene "https://github.com/dhilberm2/webpage_portfolio/blob/main/three-scene.js"
click node_model_readme "https://github.com/dhilberm2/webpage_portfolio/blob/main/assets/models/README.md"
click node_cname "https://github.com/dhilberm2/webpage_portfolio/blob/main/CNAME"
click node_readme "https://github.com/dhilberm2/webpage_portfolio/blob/main/README.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_index,node_styles,node_interactions,node_scene,node_images,node_models,node_model_readme toneBlue
class node_browser_dom,node_webgl,node_local_storage,node_three_cdn,node_fonts toneAmber
class node_github_pages,node_cname,node_readme toneMint
```

## Components

### Static Site

- [Portfolio page](https://github.com/dhilberm2/webpage_portfolio/blob/main/index.html): HTML entry · Semantic sections, navigation, content, and 3D mount context. · `index.html`
- [Theme and layout](https://github.com/dhilberm2/webpage_portfolio/blob/main/style.css): CSS · Responsive styling, visual tokens, motion, and fallbacks. · `style.css`
- [Page controller](https://github.com/dhilberm2/webpage_portfolio/blob/main/script.js): JavaScript · DOM interactions, UI state, filters, and UI-only contact handling. · `script.js`
- [3D showcase](https://github.com/dhilberm2/webpage_portfolio/blob/main/three-scene.js): ES module · Three.js scene, camera behavior, asset loading, and render loop. · `three-scene.js`
- **Project imagery**: static assets
- **3D model assets**: glTF/GLB assets · Replaceable models for the showcase.
- [Model asset guidance](https://github.com/dhilberm2/webpage_portfolio/blob/main/assets/models/README.md): documentation · `assets/models/README.md`

### Browser Runtime

- **DOM and page state**: browser runtime · Navigation, theme, scroll, pointer, and responsive state.
- **WebGL renderer**: browser runtime · Renders animated 3D output; reduced on mobile.
- **Theme preference**: browser storage
- **Three.js r128**: CDN dependency
- **Inter fonts**: Google Fonts

### Delivery

- **GitHub Pages**: static hosting · Serves the site over HTTP(S).
- [Custom domain mapping](https://github.com/dhilberm2/webpage_portfolio/blob/main/CNAME): domain routing · `CNAME`
- [Project documentation](https://github.com/dhilberm2/webpage_portfolio/blob/main/README.md): documentation · `README.md`

## Connections

- GitHub Pages → Portfolio page: serves
- Custom domain mapping → GitHub Pages: routes domain
- Project documentation → GitHub Pages: documents deployment
- Portfolio page → Theme and layout: loads
- Portfolio page → Page controller: loads
- Portfolio page → 3D showcase: loads module
- Portfolio page → Project imagery: references
- Theme and layout → Inter fonts: uses
- Theme and layout → DOM and page state: renders state and fallbacks
- Page controller → DOM and page state: controls
- Page controller → Theme preference: persists theme
- 3D showcase → Three.js r128: imports
- 3D showcase → 3D model assets: loads over HTTP(S)
- Model asset guidance → 3D model assets: guides assets
- 3D showcase → WebGL renderer: initializes and animates
- DOM and page state → 3D showcase: scroll and pointer input
