CHANGE: Re-prompted code

This commit is contained in:
2025-08-26 23:35:30 +02:00
parent dd23ab8b92
commit 793fc64369

View File

@@ -5,19 +5,24 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Maksym Buz - Senior Application Engineer</title>
<style>
/* --- Reset & Base Styles --- */
/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Inter:wght@400;500&display=swap');
/* --- CSS Variables (Root) --- */
:root {
--bg-color: #1F2937;
--text-color: #F9FAFB;
--accent-color: #10B981;
--card-bg-color: #374151;
--font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--bg-color: #1A1A2E;
--text-color: #E0E0E0;
--accent-color: #00BFFF;
--card-bg-color: #2A2A4E;
--header-font: 'Montserrat', sans-serif;
--body-font: 'Inter', sans-serif;
}
/* --- Base & Reset --- */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
@@ -27,12 +32,20 @@
body {
background-color: var(--bg-color);
color: var(--text-color);
font-family: var(--font-family);
line-height: 1.6;
font-family: var(--body-font);
line-height: 1.7;
overflow-x: hidden;
}
/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
/* --- Dynamic Background --- */
#dynamic-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
/* --- The Engine Room (Hero Section) --- */
.engine-room {
@@ -43,98 +56,87 @@
align-items: center;
text-align: center;
position: relative;
overflow: hidden;
padding: 0 1rem;
}
.dashboard-bg {
.engine-room::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
background:
linear-gradient(rgba(31, 41, 55, 0.95), rgba(31, 41, 55, 0.95)),
repeating-linear-gradient(0deg, transparent, transparent 49.5px, var(--accent-color) 50px),
repeating-linear-gradient(90deg, transparent, transparent 49.5px, var(--accent-color) 50px);
background-size: 1px 50px, 50px 1px;
opacity: 0.1;
animation: moveGrid 20s linear infinite;
background: radial-gradient(ellipse at center, rgba(26, 26, 46, 0.7) 0%, rgba(26, 26, 46, 1) 70%);
z-index: 0;
}
@keyframes moveGrid {
from { background-position: 0 0; }
to { background-position: 50px 50px; }
.hero-content {
position: relative;
z-index: 1;
animation: fadeIn 1.5s ease-out;
}
.engine-room h1 {
font-size: clamp(2.5rem, 5vw, 4.5rem);
font-weight: 700;
margin-bottom: 0.5rem;
animation: fadeInDown 1s ease-out;
font-family: var(--header-font);
font-size: clamp(2.8rem, 6vw, 5rem);
font-weight: 900;
letter-spacing: -2px;
margin-bottom: 1rem;
text-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
}
.engine-room h2 {
font-size: clamp(1.2rem, 3vw, 1.8rem);
font-weight: 400;
font-family: var(--body-font);
font-size: clamp(1.2rem, 3vw, 1.5rem);
font-weight: 500;
color: var(--accent-color);
letter-spacing: 1px;
animation: fadeInUp 1s ease-out;
letter-spacing: 2px;
text-transform: uppercase;
}
.scroll-cue {
position: absolute;
bottom: 2rem;
z-index: 1;
color: var(--text-color);
text-decoration: none;
display: flex;
flex-direction: column;
align-items: center;
color: var(--text-color);
text-decoration: none;
animation: fadeIn 2s ease-out;
gap: 0.5rem;
animation: pulse 2s infinite;
}
.scroll-cue span {
margin-bottom: 0.5rem;
font-size: 0.9rem;
letter-spacing: 1px;
}
.scroll-icon {
.scroll-cue svg {
width: 24px;
height: 40px;
border: 2px solid var(--text-color);
border-radius: 12px;
position: relative;
}
.scroll-icon::before {
content: '';
position: absolute;
top: 8px;
left: 50%;
width: 4px;
height: 8px;
background-color: var(--text-color);
border-radius: 2px;
transform: translateX(-50%);
animation: scroll-anim 2s infinite;
}
@keyframes scroll-anim {
0% { transform: translate(-50%, 0); opacity: 1; }
50% { transform: translate(-50%, 10px); opacity: 0; }
100% { transform: translate(-50%, 0); opacity: 1; }
height: 24px;
}
/* --- The Toolkit (Main Content) --- */
.toolkit {
max-width: 900px;
max-width: 960px;
margin: 0 auto;
padding: 4rem 2rem;
padding: 6rem 1.5rem;
position: relative;
z-index: 1;
background-color: var(--bg-color);
}
.section {
margin-bottom: 3rem;
animation: fadeIn 1s ease-out;
margin-bottom: 5rem;
opacity: 0;
transform: translateY(30px);
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.section.is-visible {
opacity: 1;
transform: translateY(0);
}
.profile-header {
@@ -142,28 +144,29 @@
flex-direction: column;
align-items: center;
text-align: center;
margin-bottom: 3rem;
margin-bottom: 4rem;
}
.profile-pic {
width: 150px;
height: 150px;
border-radius: 50%;
background-color: var(--card-bg-color);
border: 4px solid var(--accent-color);
margin-bottom: 1rem;
margin-bottom: 1.5rem;
box-shadow: 0 0 25px rgba(0, 191, 255, 0.3);
}
.profile-header h1 {
font-size: 2.5rem;
font-weight: 700;
font-family: var(--header-font);
font-size: 2.8rem;
margin-bottom: 0.5rem;
}
.profile-header h2 {
font-size: 1.2rem;
font-weight: 400;
color: var(--accent-color);
margin-bottom: 1rem;
font-weight: 500;
margin-bottom: 1.5rem;
}
.profile-summary {
@@ -174,8 +177,8 @@
.contact-links {
display: flex;
justify-content: center;
gap: 1.5rem;
margin-top: 1.5rem;
gap: 2rem;
margin-top: 2rem;
}
.contact-links a {
@@ -185,122 +188,155 @@
.contact-links a:hover {
color: var(--accent-color);
transform: scale(1.1);
transform: translateY(-3px);
}
.contact-links svg {
width: 28px;
height: 28px;
width: 32px;
height: 32px;
}
.section-title {
font-size: 2rem;
font-weight: 600;
margin-bottom: 1.5rem;
padding-bottom: 0.5rem;
border-bottom: 2px solid var(--accent-color);
font-family: var(--header-font);
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 2rem;
display: inline-block;
position: relative;
}
.card-container {
.section-title::after {
content: '';
position: absolute;
bottom: -8px;
left: 0;
width: 50%;
height: 4px;
background-color: var(--accent-color);
}
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
}
.card {
background-color: var(--card-bg-color);
padding: 1.5rem;
border-radius: 8px;
border-left: 4px solid var(--accent-color);
transition: transform 0.3s ease, box-shadow 0.3s ease;
padding: 2rem;
border-radius: 12px;
border: 1px solid transparent;
transition: transform 0.3s ease, border-color 0.3s ease;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
border-color: var(--accent-color);
}
.card h3 {
font-family: var(--header-font);
font-size: 1.5rem;
margin-bottom: 1rem;
}
.skills-list {
list-style: none;
padding: 0;
}
.skills-list li {
margin-bottom: 1rem;
}
.skills-list strong {
color: var(--accent-color);
display: block;
font-size: 1.1rem;
margin-bottom: 1rem;
}
.tag-container {
.skill-tags {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 0.5rem;
gap: 0.75rem;
}
.tag {
background-color: var(--bg-color);
color: var(--text-color);
padding: 0.3rem 0.8rem;
border-radius: 15px;
padding: 0.5rem 1rem;
border-radius: 20px;
font-size: 0.9rem;
transition: background-color 0.3s ease;
font-weight: 500;
border: 1px solid transparent;
transition: all 0.3s ease;
}
.tag:hover {
background-color: var(--accent-color);
color: var(--accent-color);
border-color: var(--accent-color);
transform: scale(1.05);
}
.experience-card {
background-color: var(--card-bg-color);
padding: 2rem;
border-radius: 12px;
}
.experience-card h3 {
font-family: var(--header-font);
font-size: 1.5rem;
margin-bottom: 1.5rem;
}
.experience-list {
list-style: none;
padding-left: 1.5rem;
border-left: 2px solid var(--accent-color);
}
.experience-list li {
position: relative;
padding-bottom: 1rem;
padding-left: 2rem;
margin-bottom: 1rem;
}
.experience-list li::before {
content: '';
content: '';
position: absolute;
left: -1.5rem;
left: 0;
top: 0;
color: var(--accent-color);
font-weight: bold;
font-size: 1.2rem;
}
.homelab-section {
padding: 3rem;
border-radius: 12px;
position: relative;
overflow: hidden;
background-color: var(--card-bg-color);
background-image:
linear-gradient(rgba(42, 42, 78, 0.9), rgba(42, 42, 78, 0.9)),
url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300BFFF' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.homelab-section h3 {
font-family: var(--header-font);
font-size: 2rem;
margin-bottom: 1rem;
}
.cta-section {
text-align: center;
margin-top: 4rem;
margin-top: 5rem;
}
.cta-button {
font-family: var(--header-font);
background-color: var(--accent-color);
color: var(--bg-color);
font-size: 1.2rem;
font-weight: 600;
padding: 1rem 2.5rem;
border: none;
font-weight: 700;
padding: 1rem 3rem;
border: 2px solid var(--accent-color);
border-radius: 8px;
text-decoration: none;
transition: background-color 0.3s ease, transform 0.3s ease;
text-transform: uppercase;
letter-spacing: 1px;
transition: all 0.3s ease;
}
.cta-button:hover {
background-color: #0fa873;
background-color: transparent;
color: var(--accent-color);
transform: scale(1.05);
box-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
}
/* --- Animation Keyframes --- */
@@ -309,27 +345,41 @@
to { opacity: 1; }
}
@keyframes fadeInDown {
from { opacity: 0; transform: translateY(-20px); }
to { opacity: 1; transform: translateY(0); }
@keyframes pulse {
0% { transform: scale(1); opacity: 0.7; }
50% { transform: scale(1.05); opacity: 1; }
100% { transform: scale(1); opacity: 0.7; }
}
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
/* --- Responsive Design --- */
@media (max-width: 768px) {
.toolkit {
padding: 4rem 1rem;
}
.profile-header h1 {
font-size: 2.2rem;
}
.section-title {
font-size: 2rem;
}
}
</style>
</head>
<body>
<canvas id="dynamic-bg"></canvas>
<!-- Part 1: The Engine Room -->
<header class="engine-room" id="home">
<div class="dashboard-bg"></div>
<h1>Beyond Troubleshooting. Engineering Solutions.</h1>
<h2>Automation | Monitoring | Turnkey Projects</h2>
<div class="hero-content">
<h1>Beyond Troubleshooting. Engineering Solutions.</h1>
<h2>Automation | Monitoring | Turnkey Projects</h2>
</div>
<a href="#toolkit" class="scroll-cue">
<span>Explore the Toolkit</span>
<div class="scroll-icon"></div>
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3" />
</svg>
</a>
</header>
@@ -337,21 +387,21 @@
<main class="toolkit" id="toolkit">
<!-- Profile Header -->
<section class="profile-header">
<img src="https://via.placeholder.com/150" alt="Maksym Buz Profile Picture" class="profile-pic">
<section class="profile-header section">
<img src="https://i.imgur.com/placeholder.png" alt="Maksym Buz Profile Picture" class="profile-pic">
<h1>Maksym Buz</h1>
<h2>Senior Application Engineer</h2>
<p class="profile-summary">
A seasoned Application Engineer with over 7 years of experience transforming technical support into a proactive, solution-driven function. I bridge the gap between complex customer challenges and robust, turnkey solutions with a strong focus on automation, high availability, and disaster recovery. My passion for technology and DevOps principles extends to my personal Homelab, where I architect and manage dozens of self-hosted services.
</p>
<div class="contact-links">
<a href="mailto:your-email@example.com" title="Email">
<a href="mailto:buz.maxim@gmail.com" title="Email">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M1.5 4.5h21A1.5 1.5 0 0 1 24 6v12a1.5 1.5 0 0 1-1.5 1.5H1.5A1.5 1.5 0 0 1 0 18V6a1.5 1.5 0 0 1 1.5-1.5ZM21 5.5H3a.5.5 0 0 0-.492.576l9 7.5a.5.5 0 0 0 .492.001l9-7.5A.5.5 0 0 0 21 5.5Z"/></svg>
</a>
<a href="https://www.linkedin.com/in/maksym-buz/" target="_blank" rel="noopener noreferrer" title="LinkedIn">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.225 0z"/></svg>
</a>
<a href="https://github.com/your-github" target="_blank" rel="noopener noreferrer" title="GitHub">
<a href="https://git.mbuz.uk/Homelab" target="_blank" rel="noopener noreferrer" title="GitHub">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>
</a>
</div>
@@ -360,84 +410,185 @@
<!-- Areas of Expertise -->
<section class="section">
<h2 class="section-title">Areas of Expertise</h2>
<div class="tag-container">
<span class="tag">Technical Support</span>
<span class="tag">Monitoring</span>
<span class="tag">Automation</span>
<span class="tag">Turnkey Project Delivery</span>
<span class="tag">Problem Solving</span>
<div class="card-grid">
<div class="card"><h3>Automation</h3><p>Designing and implementing automated workflows to improve efficiency and reliability.</p></div>
<div class="card"><h3>Monitoring</h3><p>Building comprehensive monitoring solutions to ensure system health and performance.</p></div>
<div class="card"><h3>Turnkey Projects</h3><p>Delivering end-to-end solutions from conception to deployment and maintenance.</p></div>
<div class="card"><h3>Problem Solving</h3><p>Tackling complex technical challenges and providing robust, long-term fixes.</p></div>
</div>
</section>
<!-- Technologies & Tools -->
<section class="section">
<h2 class="section-title">Technologies & Tools</h2>
<div class="card-container">
<div class="card">
<h3>Languages</h3>
<div class="tag-container">
<span class="tag">Python</span>
<span class="tag">Bash</span>
<span class="tag">SQL</span>
</div>
</div>
<div class="card">
<h3>Automation & Infra</h3>
<div class="tag-container">
<span class="tag">Ansible</span>
<span class="tag">Docker</span>
<span class="tag">Docker Compose</span>
<span class="tag">Proxmox</span>
<span class="tag">Git</span>
</div>
</div>
<div class="card">
<h3>Monitoring</h3>
<div class="tag-container">
<span class="tag">Zabbix</span>
</div>
</div>
<div class="card">
<h3>OS & Databases</h3>
<div class="tag-container">
<span class="tag">Linux (Debian/RHEL)</span>
<span class="tag">PostgreSQL (TimescaleDB, Patroni)</span>
<span class="tag">MySQL (MariaDB, Galera)</span>
</div>
</div>
<div class="card">
<h3>Core Languages</h3>
<div class="skill-tags"><span class="tag">Python</span><span class="tag">Bash</span><span class="tag">SQL</span></div>
</div>
<div class="card" style="margin-top: 1.5rem;">
<h3>Infra & Automation</h3>
<div class="skill-tags"><span class="tag">Ansible</span><span class="tag">Docker</span><span class="tag">Proxmox</span><span class="tag">Git</span><span class="tag">CI/CD Principles</span></div>
</div>
<div class="card" style="margin-top: 1.5rem;">
<h3>Monitoring & Observability</h3>
<div class="skill-tags"><span class="tag">Zabbix</span><span class="tag">SNMP</span></div>
</div>
<div class="card" style="margin-top: 1.5rem;">
<h3>OS & Databases</h3>
<div class="skill-tags"><span class="tag">Linux (Debian/RHEL)</span><span class="tag">PostgreSQL (TimescaleDB, Patroni)</span><span class="tag">MySQL (MariaDB, Galera)</span></div>
</div>
</section>
<!-- Experience Highlight -->
<section class="section">
<h2 class="section-title">Experience Highlight: Zabbix</h2>
<div class="card">
<h3>Senior Application Engineer</h3>
<p>Key Contributions:</p>
<h2 class="section-title">Experience Highlight</h2>
<div class="experience-card">
<h3>Senior Application Engineer @ Zabbix (Current)</h3>
<ul class="experience-list">
<li>Delivering end-to-end turnkey monitoring projects for enterprise clients.</li>
<li>Automating internal processes and customer deployment tasks with Python, Bash, and Ansible.</li>
<li>Acting as a technical expert for the sales team and a mentor for colleagues.</li>
<li>Leading public webinars and official training sessions as a Zabbix Certified Trainer.</li>
<li>Led delivery of end-to-end turnkey monitoring projects for enterprise clients.</li>
<li>Drove automation of internal processes and customer deployments using Python, Bash, and Ansible, improving efficiency and reliability.</li>
<li>Mentored colleagues, provided technical expertise to sales, and conducted public webinars and official Zabbix training sessions as a Certified Trainer.</li>
<li>Focused on performance review, troubleshooting, and complex issue resolution (RCA) to ensure robust system operations.</li>
</ul>
</div>
</section>
<!-- Homelab Highlight -->
<section class="section">
<h2 class="section-title">Personal R&D: The Homelab</h2>
<div class="card">
<h3>Passion for Tech</h3>
<p>Managing a home server with a self-hosted Git service, dozens of multimedia and productivity services, and a multi-node virtualization environment using Proxmox and Docker. This is where I experiment, learn, and master the technologies I use professionally.</p>
<div class="homelab-section">
<h3>My Personal Engineering Sandbox: The Homelab</h3>
<p>Beyond professional duties, my passion for engineering thrives in my Homelab. Here, I architect and manage a multi-node virtualization environment (Proxmox, Docker), hosting a self-contained Git service, alongside dozens of multimedia and productivity services. It's my dedicated space for hands-on experimentation, deep-diving into new technologies, and mastering complex system deployments—a true testament to continuous learning and practical application of DevOps principles.</p>
</div>
</section>
<!-- Call to Action -->
<section class="cta-section">
<a href="mailto:your-email@example.com" class="cta-button">Let's Build a Solution</a>
<section class="cta-section section">
<a href="mailto:buz.maxim@gmail.com" class="cta-button">Let's Build a Solution</a>
</section>
</main>
<script>
// --- Dynamic Background Script ---
const canvas = document.getElementById('dynamic-bg');
const ctx = canvas.getContext('2d');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
let particlesArray;
const mouse = {
x: null,
y: null,
radius: (canvas.height / 120) * (canvas.width / 120)
};
window.addEventListener('mousemove', function(event) {
mouse.x = event.x;
mouse.y = event.y;
});
class Particle {
constructor(x, y, directionX, directionY, size, color) {
this.x = x;
this.y = y;
this.directionX = directionX;
this.directionY = directionY;
this.size = size;
this.color = color;
}
draw() {
ctx.beginPath();
ctx.arc(this.x, this.y, this.size, 0, Math.PI * 2, false);
ctx.fillStyle = 'rgba(0, 191, 255, 0.5)';
ctx.fill();
}
update() {
if (this.x > canvas.width || this.x < 0) {
this.directionX = -this.directionX;
}
if (this.y > canvas.height || this.y < 0) {
this.directionY = -this.directionY;
}
this.x += this.directionX;
this.y += this.directionY;
this.draw();
}
}
function init() {
particlesArray = [];
let numberOfParticles = (canvas.height * canvas.width) / 9000;
for (let i = 0; i < numberOfParticles; i++) {
let size = (Math.random() * 2) + 1;
let x = (Math.random() * ((innerWidth - size * 2) - (size * 2)) + size * 2);
let y = (Math.random() * ((innerHeight - size * 2) - (size * 2)) + size * 2);
let directionX = (Math.random() * 0.4) - 0.2;
let directionY = (Math.random() * 0.4) - 0.2;
let color = 'rgba(0, 191, 255, 0.5)';
particlesArray.push(new Particle(x, y, directionX, directionY, size, color));
}
}
function connect() {
let opacityValue = 1;
for (let a = 0; a < particlesArray.length; a++) {
for (let b = a; b < particlesArray.length; b++) {
let distance = ((particlesArray[a].x - particlesArray[b].x) * (particlesArray[a].x - particlesArray[b].x))
+ ((particlesArray[a].y - particlesArray[b].y) * (particlesArray[a].y - particlesArray[b].y));
if (distance < (canvas.width/7) * (canvas.height/7)) {
opacityValue = 1 - (distance/20000);
ctx.strokeStyle = 'rgba(0, 191, 255,' + opacityValue + ')';
ctx.lineWidth = 1;
ctx.beginPath();
ctx.moveTo(particlesArray[a].x, particlesArray[a].y);
ctx.lineTo(particlesArray[b].x, particlesArray[b].y);
ctx.stroke();
}
}
}
}
function animate() {
requestAnimationFrame(animate);
ctx.clearRect(0, 0, innerWidth, innerHeight);
for (let i = 0; i < particlesArray.length; i++) {
particlesArray[i].update();
}
connect();
}
window.addEventListener('resize', function() {
canvas.width = innerWidth;
canvas.height = innerHeight;
mouse.radius = (canvas.height / 120) * (canvas.width / 120);
init();
});
window.addEventListener('mouseout', function() {
mouse.x = undefined;
mouse.y = undefined;
});
init();
animate();
// --- Scroll Animation Observer ---
const sections = document.querySelectorAll('.section');
const observer = new IntersectionObserver(entries => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('is-visible');
}
});
}, {
threshold: 0.1
});
sections.forEach(section => {
observer.observe(section);
});
</script>
</body>
</html>