595 lines
		
	
	
		
			22 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			595 lines
		
	
	
		
			22 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html lang="en">
 | |
| <head>
 | |
|     <meta charset="UTF-8">
 | |
|     <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | |
|     <title>Maksym Buz - Senior Application Engineer</title>
 | |
|     <style>
 | |
|         /* --- 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: #1A1A2E;
 | |
|             --text-color: #E0E0E0;
 | |
|             --accent-color: #00BFFF;
 | |
|             --card-bg-color: #2A2A4E;
 | |
|             --header-font: 'Montserrat', sans-serif;
 | |
|             --body-font: 'Inter', sans-serif;
 | |
|         }
 | |
| 
 | |
|         /* --- Base & Reset --- */
 | |
|         * {
 | |
|             margin: 0;
 | |
|             padding: 0;
 | |
|             box-sizing: border-box;
 | |
|         }
 | |
| 
 | |
|         html {
 | |
|             scroll-behavior: smooth;
 | |
|         }
 | |
| 
 | |
|         body {
 | |
|             background-color: var(--bg-color);
 | |
|             color: var(--text-color);
 | |
|             font-family: var(--body-font);
 | |
|             line-height: 1.7;
 | |
|             overflow-x: hidden;
 | |
|         }
 | |
| 
 | |
|         /* --- Dynamic Background --- */
 | |
|         #dynamic-bg {
 | |
|             position: fixed;
 | |
|             top: 0;
 | |
|             left: 0;
 | |
|             width: 100%;
 | |
|             height: 100%;
 | |
|             z-index: -1;
 | |
|         }
 | |
| 
 | |
|         /* --- The Engine Room (Hero Section) --- */
 | |
|         .engine-room {
 | |
|             height: 100vh;
 | |
|             display: flex;
 | |
|             flex-direction: column;
 | |
|             justify-content: center;
 | |
|             align-items: center;
 | |
|             text-align: center;
 | |
|             position: relative;
 | |
|             padding: 0 1rem;
 | |
|         }
 | |
| 
 | |
|         .engine-room::before {
 | |
|             content: '';
 | |
|             position: absolute;
 | |
|             top: 0;
 | |
|             left: 0;
 | |
|             width: 100%;
 | |
|             height: 100%;
 | |
|             background: radial-gradient(ellipse at center, rgba(26, 26, 46, 0.7) 0%, rgba(26, 26, 46, 1) 70%);
 | |
|             z-index: 0;
 | |
|         }
 | |
| 
 | |
|         .hero-content {
 | |
|             position: relative;
 | |
|             z-index: 1;
 | |
|             animation: fadeIn 1.5s ease-out;
 | |
|         }
 | |
| 
 | |
|         .engine-room h1 {
 | |
|             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-family: var(--body-font);
 | |
|             font-size: clamp(1.2rem, 3vw, 1.5rem);
 | |
|             font-weight: 500;
 | |
|             color: var(--accent-color);
 | |
|             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;
 | |
|             gap: 0.5rem;
 | |
|             animation: pulse 2s infinite;
 | |
|         }
 | |
| 
 | |
|         .scroll-cue span {
 | |
|             font-size: 0.9rem;
 | |
|             letter-spacing: 1px;
 | |
|         }
 | |
| 
 | |
|         .scroll-cue svg {
 | |
|             width: 24px;
 | |
|             height: 24px;
 | |
|         }
 | |
| 
 | |
|         /* --- The Toolkit (Main Content) --- */
 | |
|         .toolkit {
 | |
|             max-width: 960px;
 | |
|             margin: 0 auto;
 | |
|             padding: 6rem 1.5rem;
 | |
|             position: relative;
 | |
|             z-index: 1;
 | |
|             background-color: var(--bg-color);
 | |
|         }
 | |
| 
 | |
|         .section {
 | |
|             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 {
 | |
|             display: flex;
 | |
|             flex-direction: column;
 | |
|             align-items: center;
 | |
|             text-align: center;
 | |
|             margin-bottom: 4rem;
 | |
|         }
 | |
| 
 | |
|         .profile-pic {
 | |
|             width: 150px;
 | |
|             height: 150px;
 | |
|             border-radius: 50%;
 | |
|             border: 4px solid var(--accent-color);
 | |
|             margin-bottom: 1.5rem;
 | |
|             box-shadow: 0 0 25px rgba(0, 191, 255, 0.3);
 | |
|         }
 | |
| 
 | |
|         .profile-header h1 {
 | |
|             font-family: var(--header-font);
 | |
|             font-size: 2.8rem;
 | |
|             margin-bottom: 0.5rem;
 | |
|         }
 | |
| 
 | |
|         .profile-header h2 {
 | |
|             font-size: 1.2rem;
 | |
|             color: var(--accent-color);
 | |
|             font-weight: 500;
 | |
|             margin-bottom: 1.5rem;
 | |
|         }
 | |
| 
 | |
|         .profile-summary {
 | |
|             font-size: 1.1rem;
 | |
|             max-width: 750px;
 | |
|         }
 | |
| 
 | |
|         .contact-links {
 | |
|             display: flex;
 | |
|             justify-content: center;
 | |
|             gap: 2rem;
 | |
|             margin-top: 2rem;
 | |
|         }
 | |
| 
 | |
|         .contact-links a {
 | |
|             color: var(--text-color);
 | |
|             transition: color 0.3s ease, transform 0.3s ease;
 | |
|         }
 | |
| 
 | |
|         .contact-links a:hover {
 | |
|             color: var(--accent-color);
 | |
|             transform: translateY(-3px);
 | |
|         }
 | |
| 
 | |
|         .contact-links svg {
 | |
|             width: 32px;
 | |
|             height: 32px;
 | |
|         }
 | |
| 
 | |
|         .section-title {
 | |
|             font-family: var(--header-font);
 | |
|             font-size: 2.5rem;
 | |
|             font-weight: 700;
 | |
|             margin-bottom: 2rem;
 | |
|             display: inline-block;
 | |
|             position: relative;
 | |
|         }
 | |
| 
 | |
|         .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(280px, 1fr));
 | |
|             gap: 1.5rem;
 | |
|         }
 | |
| 
 | |
|         .card {
 | |
|             background-color: var(--card-bg-color);
 | |
|             padding: 2rem;
 | |
|             border-radius: 12px;
 | |
|             border: 1px solid transparent;
 | |
|             transition: transform 0.3s ease, border-color 0.3s ease;
 | |
|         }
 | |
| 
 | |
|         .card:hover {
 | |
|             transform: translateY(-5px);
 | |
|             border-color: var(--accent-color);
 | |
|         }
 | |
| 
 | |
|         .card h3 {
 | |
|             font-family: var(--header-font);
 | |
|             font-size: 1.5rem;
 | |
|             color: var(--accent-color);
 | |
|             margin-bottom: 1rem;
 | |
|         }
 | |
| 
 | |
|         .skill-tags {
 | |
|             display: flex;
 | |
|             flex-wrap: wrap;
 | |
|             gap: 0.75rem;
 | |
|         }
 | |
| 
 | |
|         .tag {
 | |
|             background-color: var(--bg-color);
 | |
|             color: var(--text-color);
 | |
|             padding: 0.5rem 1rem;
 | |
|             border-radius: 20px;
 | |
|             font-size: 0.9rem;
 | |
|             font-weight: 500;
 | |
|             border: 1px solid transparent;
 | |
|             transition: all 0.3s ease;
 | |
|         }
 | |
| 
 | |
|         .tag:hover {
 | |
|             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;
 | |
|         }
 | |
| 
 | |
|         .experience-list li {
 | |
|             position: relative;
 | |
|             padding-left: 2rem;
 | |
|             margin-bottom: 1rem;
 | |
|         }
 | |
| 
 | |
|         .experience-list li::before {
 | |
|             content: '⚡';
 | |
|             position: absolute;
 | |
|             left: 0;
 | |
|             top: 0;
 | |
|             color: var(--accent-color);
 | |
|             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: 5rem;
 | |
|         }
 | |
| 
 | |
|         .cta-button {
 | |
|             font-family: var(--header-font);
 | |
|             background-color: var(--accent-color);
 | |
|             color: var(--bg-color);
 | |
|             font-size: 1.2rem;
 | |
|             font-weight: 700;
 | |
|             padding: 1rem 3rem;
 | |
|             border: 2px solid var(--accent-color);
 | |
|             border-radius: 8px;
 | |
|             text-decoration: none;
 | |
|             text-transform: uppercase;
 | |
|             letter-spacing: 1px;
 | |
|             transition: all 0.3s ease;
 | |
|         }
 | |
| 
 | |
|         .cta-button:hover {
 | |
|             background-color: transparent;
 | |
|             color: var(--accent-color);
 | |
|             transform: scale(1.05);
 | |
|             box-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
 | |
|         }
 | |
| 
 | |
|         /* --- Animation Keyframes --- */
 | |
|         @keyframes fadeIn {
 | |
|             from { opacity: 0; }
 | |
|             to { opacity: 1; }
 | |
|         }
 | |
| 
 | |
|         @keyframes pulse {
 | |
|             0% { transform: scale(1); opacity: 0.7; }
 | |
|             50% { transform: scale(1.05); opacity: 1; }
 | |
|             100% { transform: scale(1); opacity: 0.7; }
 | |
|         }
 | |
| 
 | |
|         /* --- 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="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>
 | |
|             <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>
 | |
| 
 | |
|     <!-- Part 2: The Toolkit -->
 | |
|     <main class="toolkit" id="toolkit">
 | |
|         
 | |
|         <!-- Profile Header -->
 | |
|         <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: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://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>
 | |
|         </section>
 | |
| 
 | |
|         <!-- Areas of Expertise -->
 | |
|         <section class="section">
 | |
|             <h2 class="section-title">Areas of Expertise</h2>
 | |
|             <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">
 | |
|                 <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</h2>
 | |
|             <div class="experience-card">
 | |
|                 <h3>Senior Application Engineer @ Zabbix (Current)</h3>
 | |
|                 <ul class="experience-list">
 | |
|                     <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">
 | |
|             <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 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>
 |