Spaces:
Running
Running
can you make it look like this to the best you possibly can
Browse files- index.html +117 -45
- script.js +136 -5
- style.css +46 -3
index.html
CHANGED
|
@@ -44,12 +44,18 @@
|
|
| 44 |
}
|
| 45 |
</script>
|
| 46 |
</head>
|
| 47 |
-
<body class="bg-brand-dark text-gray-300 antialiased overflow-x-hidden selection:bg-brand-accent selection:text-brand-dark">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
<!-- Navbar Component -->
|
| 50 |
<custom-navbar></custom-navbar>
|
| 51 |
-
|
| 52 |
-
<!-- Hero Section -->
|
| 53 |
<main class="relative min-h-screen flex flex-col justify-center items-center pt-24 pb-12 px-4 sm:px-6 lg:px-8 overflow-hidden">
|
| 54 |
|
| 55 |
<!-- Background Elements (Glow) -->
|
|
@@ -68,13 +74,14 @@
|
|
| 68 |
</div>
|
| 69 |
|
| 70 |
<h2 class="text-brand-accent font-bold tracking-widest text-sm uppercase mb-4 reveal">Next Gen Automation</h2>
|
| 71 |
-
|
| 72 |
-
<h1 class="text-5xl md:text-7xl font-bold text-white tracking-tight leading-[1.1] mb-6 reveal">
|
| 73 |
Automate Your <br class="hidden md:block" />
|
| 74 |
-
<span class="
|
|
|
|
|
|
|
|
|
|
| 75 |
</h1>
|
| 76 |
-
|
| 77 |
-
<p class="text-lg md:text-xl text-gray-400 max-w-2xl mx-auto mb-10 leading-relaxed reveal">
|
| 78 |
Partnered with industry leaders to streamline workflows. We deploy intelligent virtual assistants that engage customers before they even reach your team.
|
| 79 |
</p>
|
| 80 |
|
|
@@ -130,57 +137,122 @@
|
|
| 130 |
</div>
|
| 131 |
</div>
|
| 132 |
</section>
|
| 133 |
-
|
| 134 |
-
<
|
| 135 |
-
|
|
|
|
|
|
|
| 136 |
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 137 |
-
<div class="grid grid-cols-1
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 141 |
Our platform uses advanced neural networks to understand context, sentiment, and intent. Deliver seamless experiences that feel human, without the overhead.
|
| 142 |
</p>
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
<
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
<
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
</
|
| 156 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 157 |
</div>
|
|
|
|
|
|
|
| 158 |
<div class="relative reveal delay-200">
|
| 159 |
-
<
|
| 160 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
</div>
|
| 162 |
</div>
|
| 163 |
</div>
|
| 164 |
</section>
|
| 165 |
-
|
| 166 |
<!-- Footer -->
|
| 167 |
-
<footer class="border-t border-white/10 bg-black py-
|
| 168 |
-
<
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
<div class="flex
|
| 173 |
-
<
|
| 174 |
-
|
| 175 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
</div>
|
| 177 |
-
|
| 178 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 179 |
</div>
|
| 180 |
</div>
|
| 181 |
</footer>
|
| 182 |
-
|
| 183 |
-
<!-- Scripts -->
|
| 184 |
<script src="components/navbar.js"></script>
|
| 185 |
<script src="script.js"></script>
|
| 186 |
<script>
|
|
|
|
| 44 |
}
|
| 45 |
</script>
|
| 46 |
</head>
|
| 47 |
+
<body class="bg-brand-dark text-gray-300 antialiased overflow-x-hidden selection:bg-brand-accent selection:text-brand-dark cursor-none">
|
| 48 |
+
|
| 49 |
+
<!-- Custom Cursor -->
|
| 50 |
+
<div id="cursor-dot" class="cursor-dot"></div>
|
| 51 |
+
<div id="cursor-outline" class="cursor-outline"></div>
|
| 52 |
+
|
| 53 |
+
<!-- Particle Background -->
|
| 54 |
+
<canvas id="particle-canvas" class="fixed top-0 left-0 w-full h-full -z-10 pointer-events-none"></canvas>
|
| 55 |
|
| 56 |
<!-- Navbar Component -->
|
| 57 |
<custom-navbar></custom-navbar>
|
| 58 |
+
<!-- Hero Section -->
|
|
|
|
| 59 |
<main class="relative min-h-screen flex flex-col justify-center items-center pt-24 pb-12 px-4 sm:px-6 lg:px-8 overflow-hidden">
|
| 60 |
|
| 61 |
<!-- Background Elements (Glow) -->
|
|
|
|
| 74 |
</div>
|
| 75 |
|
| 76 |
<h2 class="text-brand-accent font-bold tracking-widest text-sm uppercase mb-4 reveal">Next Gen Automation</h2>
|
| 77 |
+
<h1 class="text-5xl md:text-8xl font-bold text-white tracking-tight leading-[1.05] mb-6 reveal">
|
|
|
|
| 78 |
Automate Your <br class="hidden md:block" />
|
| 79 |
+
<span class="relative inline-block">
|
| 80 |
+
<span class="absolute inset-0 bg-brand-accent/20 blur-2xl -z-10 animate-pulse-slow"></span>
|
| 81 |
+
<span class="text-transparent bg-clip-text bg-gradient-to-r from-brand-accent via-blue-400 to-purple-500 animate-gradient-shift bg-[length:200%_auto]">Conversations.</span>
|
| 82 |
+
</span>
|
| 83 |
</h1>
|
| 84 |
+
<p class="text-lg md:text-xl text-gray-400 max-w-2xl mx-auto mb-10 leading-relaxed reveal">
|
|
|
|
| 85 |
Partnered with industry leaders to streamline workflows. We deploy intelligent virtual assistants that engage customers before they even reach your team.
|
| 86 |
</p>
|
| 87 |
|
|
|
|
| 137 |
</div>
|
| 138 |
</div>
|
| 139 |
</section>
|
| 140 |
+
<!-- Feature Highlight (Enhanced) -->
|
| 141 |
+
<section class="py-32 relative overflow-hidden">
|
| 142 |
+
<!-- Background decorative elements -->
|
| 143 |
+
<div class="absolute top-1/2 right-0 -translate-y-1/2 w-[800px] h-[800px] bg-blue-600/5 rounded-full blur-[120px] pointer-events-none"></div>
|
| 144 |
+
|
| 145 |
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 146 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-16 items-center relative">
|
| 147 |
+
|
| 148 |
+
<!-- Text Content -->
|
| 149 |
+
<div class="relative z-10 reveal">
|
| 150 |
+
<div class="inline-flex items-center gap-2 px-3 py-1 rounded-full border border-brand-accent/30 bg-brand-accent/10 text-brand-accent text-xs font-bold tracking-wider uppercase mb-6">
|
| 151 |
+
Core Technology
|
| 152 |
+
</div>
|
| 153 |
+
<h3 class="text-4xl md:text-5xl font-bold text-white mb-6 leading-tight">
|
| 154 |
+
Intelligent <br>
|
| 155 |
+
<span class="text-transparent bg-clip-text bg-gradient-to-r from-brand-accent to-blue-400">Orchestration</span>
|
| 156 |
+
</h3>
|
| 157 |
+
<p class="text-gray-400 text-lg mb-8 leading-relaxed">
|
| 158 |
Our platform uses advanced neural networks to understand context, sentiment, and intent. Deliver seamless experiences that feel human, without the overhead.
|
| 159 |
</p>
|
| 160 |
+
|
| 161 |
+
<div class="space-y-6">
|
| 162 |
+
<div class="group flex items-start gap-4 p-4 rounded-xl border border-white/5 bg-white/[0.02] hover:bg-white/[0.05] hover:border-brand-accent/30 transition-all duration-300 cursor-none">
|
| 163 |
+
<div class="mt-1 p-2 rounded-lg bg-brand-accent/10 text-brand-accent group-hover:bg-brand-accent group-hover:text-brand-dark transition-colors">
|
| 164 |
+
<i data-feather="activity" class="w-5 h-5"></i>
|
| 165 |
+
</div>
|
| 166 |
+
<div>
|
| 167 |
+
<h4 class="text-white font-semibold mb-1">Real-time Sentiment</h4>
|
| 168 |
+
<p class="text-sm text-gray-500">Analyze emotional tone instantly to adapt responses dynamically.</p>
|
| 169 |
+
</div>
|
| 170 |
+
</div>
|
| 171 |
+
|
| 172 |
+
<div class="group flex items-start gap-4 p-4 rounded-xl border border-white/5 bg-white/[0.02] hover:bg-white/[0.05] hover:border-brand-accent/30 transition-all duration-300 cursor-none">
|
| 173 |
+
<div class="mt-1 p-2 rounded-lg bg-brand-accent/10 text-brand-accent group-hover:bg-brand-accent group-hover:text-brand-dark transition-colors">
|
| 174 |
+
<i data-feather="layers" class="w-5 h-5"></i>
|
| 175 |
+
</div>
|
| 176 |
+
<div>
|
| 177 |
+
<h4 class="text-white font-semibold mb-1">Omnichannel Sync</h4>
|
| 178 |
+
<p class="text-sm text-gray-500">Unified context across web, mobile, and voice interfaces.</p>
|
| 179 |
+
</div>
|
| 180 |
+
</div>
|
| 181 |
+
|
| 182 |
+
<div class="group flex items-start gap-4 p-4 rounded-xl border border-white/5 bg-white/[0.02] hover:bg-white/[0.05] hover:border-brand-accent/30 transition-all duration-300 cursor-none">
|
| 183 |
+
<div class="mt-1 p-2 rounded-lg bg-brand-accent/10 text-brand-accent group-hover:bg-brand-accent group-hover:text-brand-dark transition-colors">
|
| 184 |
+
<i data-feather="shield" class="w-5 h-5"></i>
|
| 185 |
+
</div>
|
| 186 |
+
<div>
|
| 187 |
+
<h4 class="text-white font-semibold mb-1">Military Grade</h4>
|
| 188 |
+
<p class="text-sm text-gray-500">End-to-end encryption with SOC2 compliance.</p>
|
| 189 |
+
</div>
|
| 190 |
+
</div>
|
| 191 |
+
</div>
|
| 192 |
</div>
|
| 193 |
+
|
| 194 |
+
<!-- Visual Content -->
|
| 195 |
<div class="relative reveal delay-200">
|
| 196 |
+
<!-- Animated Background Blob -->
|
| 197 |
+
<div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full">
|
| 198 |
+
<div class="absolute top-0 right-0 w-72 h-72 bg-brand-accent/30 rounded-full mix-blend-screen filter blur-[80px] animate-float"></div>
|
| 199 |
+
<div class="absolute bottom-0 left-0 w-72 h-72 bg-purple-600/30 rounded-full mix-blend-screen filter blur-[80px] animate-float" style="animation-delay: 2s;"></div>
|
| 200 |
+
</div>
|
| 201 |
+
|
| 202 |
+
<!-- Glassmorphic Card -->
|
| 203 |
+
<div class="relative backdrop-blur-xl bg-white/5 border border-white/10 rounded-2xl p-2 shadow-2xl overflow-hidden group">
|
| 204 |
+
<!-- Scanline effect -->
|
| 205 |
+
<div class="absolute inset-0 bg-gradient-to-b from-transparent via-white/5 to-transparent translate-y-[-100%] group-hover:translate-y-[100%] transition-transform duration-1000 ease-in-out pointer-events-none"></div>
|
| 206 |
+
|
| 207 |
+
<img src="http://static.photos/technology/640x360/88" alt="Dashboard Visualization" class="rounded-xl w-full object-cover h-auto transform group-hover:scale-[1.02] transition-transform duration-700">
|
| 208 |
+
|
| 209 |
+
<!-- Floating UI Element simulation -->
|
| 210 |
+
<div class="absolute bottom-6 left-6 right-6 p-4 bg-black/60 backdrop-blur-md rounded-lg border border-white/10 flex items-center justify-between transform translate-y-4 opacity-0 group-hover:translate-y-0 group-hover:opacity-100 transition-all duration-500 delay-100">
|
| 211 |
+
<div class="flex items-center gap-3">
|
| 212 |
+
<div class="w-2 h-2 rounded-full bg-green-500 animate-pulse"></div>
|
| 213 |
+
<span class="text-xs font-mono text-gray-300">PROCESSING... 98%</span>
|
| 214 |
+
</div>
|
| 215 |
+
<i data-feather="bar-chart-2" class="w-4 h-4 text-brand-accent"></i>
|
| 216 |
+
</div>
|
| 217 |
+
</div>
|
| 218 |
</div>
|
| 219 |
</div>
|
| 220 |
</div>
|
| 221 |
</section>
|
| 222 |
+
<!-- Footer -->
|
| 223 |
<!-- Footer -->
|
| 224 |
+
<footer class="relative border-t border-white/10 bg-black py-16 overflow-hidden">
|
| 225 |
+
<!-- Footer Glow -->
|
| 226 |
+
<div class="absolute top-0 left-1/2 -translate-x-1/2 w-[600px] h-[200px] bg-brand-accent/5 blur-[100px] -z-10 pointer-events-none"></div>
|
| 227 |
+
|
| 228 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 229 |
+
<div class="flex flex-col md:flex-row justify-between items-center gap-8 mb-12">
|
| 230 |
+
<div class="text-3xl font-bold text-white tracking-tight flex items-center gap-2">
|
| 231 |
+
<div class="p-2 rounded-lg bg-brand-accent/10 border border-brand-accent/20">
|
| 232 |
+
<i data-feather="zap" class="text-brand-accent w-6 h-6"></i>
|
| 233 |
+
</div>
|
| 234 |
+
QuantumReach
|
| 235 |
+
</div>
|
| 236 |
+
<div class="flex gap-8">
|
| 237 |
+
<a href="#" class="text-gray-400 hover:text-brand-accent transition-colors"><i data-feather="twitter" class="w-5 h-5"></i></a>
|
| 238 |
+
<a href="#" class="text-gray-400 hover:text-brand-accent transition-colors"><i data-feather="github" class="w-5 h-5"></i></a>
|
| 239 |
+
<a href="#" class="text-gray-400 hover:text-brand-accent transition-colors"><i data-feather="linkedin" class="w-5 h-5"></i></a>
|
| 240 |
+
</div>
|
| 241 |
</div>
|
| 242 |
+
|
| 243 |
+
<div class="border-t border-white/5 pt-8 flex flex-col md:flex-row justify-between items-center gap-4">
|
| 244 |
+
<div class="text-sm text-gray-500">
|
| 245 |
+
© 2024 QuantumReach Solutions. All rights reserved.
|
| 246 |
+
</div>
|
| 247 |
+
<div class="flex gap-6 text-sm text-gray-500">
|
| 248 |
+
<a href="#" class="hover:text-white transition-colors">Privacy</a>
|
| 249 |
+
<a href="#" class="hover:text-white transition-colors">Terms</a>
|
| 250 |
+
<a href="#" class="hover:text-white transition-colors">Cookies</a>
|
| 251 |
+
</div>
|
| 252 |
</div>
|
| 253 |
</div>
|
| 254 |
</footer>
|
| 255 |
+
<!-- Scripts -->
|
|
|
|
| 256 |
<script src="components/navbar.js"></script>
|
| 257 |
<script src="script.js"></script>
|
| 258 |
<script>
|
script.js
CHANGED
|
@@ -1,19 +1,150 @@
|
|
|
|
|
| 1 |
document.addEventListener('DOMContentLoaded', () => {
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
const revealElements = document.querySelectorAll('.reveal');
|
| 4 |
|
| 5 |
const revealCallback = (entries, observer) => {
|
| 6 |
entries.forEach(entry => {
|
| 7 |
if (entry.isIntersecting) {
|
| 8 |
entry.target.classList.add('active');
|
| 9 |
-
// Optional: Stop observing once revealed
|
| 10 |
observer.unobserve(entry.target);
|
| 11 |
}
|
| 12 |
});
|
| 13 |
};
|
| 14 |
|
| 15 |
const revealOptions = {
|
| 16 |
-
threshold: 0.
|
| 17 |
rootMargin: "0px 0px -50px 0px"
|
| 18 |
};
|
| 19 |
|
|
@@ -23,7 +154,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
| 23 |
observer.observe(el);
|
| 24 |
});
|
| 25 |
|
| 26 |
-
// Smooth Scroll handling
|
| 27 |
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 28 |
anchor.addEventListener('click', function (e) {
|
| 29 |
e.preventDefault();
|
|
@@ -38,4 +169,4 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
| 38 |
}
|
| 39 |
});
|
| 40 |
});
|
| 41 |
-
});
|
|
|
|
| 1 |
+
|
| 2 |
document.addEventListener('DOMContentLoaded', () => {
|
| 3 |
+
|
| 4 |
+
/* --------------------------------------------------------
|
| 5 |
+
1. Custom Cursor Logic
|
| 6 |
+
-------------------------------------------------------- */
|
| 7 |
+
const cursorDot = document.getElementById('cursor-dot');
|
| 8 |
+
const cursorOutline = document.getElementById('cursor-outline');
|
| 9 |
+
|
| 10 |
+
// Mouse Movement
|
| 11 |
+
window.addEventListener('mousemove', (e) => {
|
| 12 |
+
const posX = e.clientX;
|
| 13 |
+
const posY = e.clientY;
|
| 14 |
+
|
| 15 |
+
// Dot follows instantly
|
| 16 |
+
cursorDot.style.left = `${posX}px`;
|
| 17 |
+
cursorDot.style.top = `${posY}px`;
|
| 18 |
+
|
| 19 |
+
// Outline follows with slight delay (animation in CSS helps, but JS position is needed)
|
| 20 |
+
cursorOutline.animate({
|
| 21 |
+
left: `${posX}px`,
|
| 22 |
+
top: `${posY}px`
|
| 23 |
+
}, { duration: 500, fill: "forwards" });
|
| 24 |
+
});
|
| 25 |
+
|
| 26 |
+
// Hover Effects
|
| 27 |
+
const interactiveElements = document.querySelectorAll('a, button, .group, input, textarea, [role="button"]');
|
| 28 |
+
interactiveElements.forEach(el => {
|
| 29 |
+
el.addEventListener('mouseenter', () => {
|
| 30 |
+
document.body.classList.add('hovering');
|
| 31 |
+
});
|
| 32 |
+
el.addEventListener('mouseleave', () => {
|
| 33 |
+
document.body.classList.remove('hovering');
|
| 34 |
+
});
|
| 35 |
+
});
|
| 36 |
+
|
| 37 |
+
/* --------------------------------------------------------
|
| 38 |
+
2. Particle Network Background
|
| 39 |
+
-------------------------------------------------------- */
|
| 40 |
+
const canvas = document.getElementById('particle-canvas');
|
| 41 |
+
const ctx = canvas.getContext('2d');
|
| 42 |
+
let particlesArray;
|
| 43 |
+
|
| 44 |
+
// Resize Canvas
|
| 45 |
+
canvas.width = window.innerWidth;
|
| 46 |
+
canvas.height = window.innerHeight;
|
| 47 |
+
|
| 48 |
+
class Particle {
|
| 49 |
+
constructor(x, y, directionX, directionY, size, color) {
|
| 50 |
+
this.x = x;
|
| 51 |
+
this.y = y;
|
| 52 |
+
this.directionX = directionX;
|
| 53 |
+
this.directionY = directionY;
|
| 54 |
+
this.size = size;
|
| 55 |
+
this.color = color;
|
| 56 |
+
}
|
| 57 |
+
// Draw particle
|
| 58 |
+
draw() {
|
| 59 |
+
ctx.beginPath();
|
| 60 |
+
ctx.arc(this.x, this.y, this.size, 0, Math.PI * 2, false);
|
| 61 |
+
ctx.fillStyle = this.color;
|
| 62 |
+
ctx.fill();
|
| 63 |
+
}
|
| 64 |
+
// Update particle position
|
| 65 |
+
update() {
|
| 66 |
+
if (this.x > canvas.width || this.x < 0) {
|
| 67 |
+
this.directionX = -this.directionX;
|
| 68 |
+
}
|
| 69 |
+
if (this.y > canvas.height || this.y < 0) {
|
| 70 |
+
this.directionY = -this.directionY;
|
| 71 |
+
}
|
| 72 |
+
this.x += this.directionX;
|
| 73 |
+
this.y += this.directionY;
|
| 74 |
+
this.draw();
|
| 75 |
+
}
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
function initParticles() {
|
| 79 |
+
particlesArray = [];
|
| 80 |
+
let numberOfParticles = (canvas.height * canvas.width) / 15000; // Density
|
| 81 |
+
for (let i = 0; i < numberOfParticles; i++) {
|
| 82 |
+
let size = (Math.random() * 2) + 1;
|
| 83 |
+
let x = (Math.random() * ((innerWidth - size * 2) - (size * 2)) + size * 2);
|
| 84 |
+
let y = (Math.random() * ((innerHeight - size * 2) - (size * 2)) + size * 2);
|
| 85 |
+
let directionX = (Math.random() * 0.4) - 0.2;
|
| 86 |
+
let directionY = (Math.random() * 0.4) - 0.2;
|
| 87 |
+
let color = '#06b6d4'; // Brand accent
|
| 88 |
+
|
| 89 |
+
particlesArray.push(new Particle(x, y, directionX, directionY, size, color));
|
| 90 |
+
}
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
function connectParticles() {
|
| 94 |
+
let opacityValue = 1;
|
| 95 |
+
for (let a = 0; a < particlesArray.length; a++) {
|
| 96 |
+
for (let b = a; b < particlesArray.length; b++) {
|
| 97 |
+
let distance = ((particlesArray[a].x - particlesArray[b].x) * (particlesArray[a].x - particlesArray[b].x))
|
| 98 |
+
+ ((particlesArray[a].y - particlesArray[b].y) * (particlesArray[a].y - particlesArray[b].y));
|
| 99 |
+
|
| 100 |
+
if (distance < (canvas.width/7) * (canvas.height/7)) {
|
| 101 |
+
opacityValue = 1 - (distance / 20000);
|
| 102 |
+
ctx.strokeStyle = 'rgba(6, 182, 212,' + opacityValue * 0.15 + ')'; // Very subtle lines
|
| 103 |
+
ctx.lineWidth = 1;
|
| 104 |
+
ctx.beginPath();
|
| 105 |
+
ctx.moveTo(particlesArray[a].x, particlesArray[a].y);
|
| 106 |
+
ctx.lineTo(particlesArray[b].x, particlesArray[b].y);
|
| 107 |
+
ctx.stroke();
|
| 108 |
+
}
|
| 109 |
+
}
|
| 110 |
+
}
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
function animateParticles() {
|
| 114 |
+
requestAnimationFrame(animateParticles);
|
| 115 |
+
ctx.clearRect(0, 0, innerWidth, innerHeight);
|
| 116 |
+
|
| 117 |
+
for (let i = 0; i < particlesArray.length; i++) {
|
| 118 |
+
particlesArray[i].update();
|
| 119 |
+
}
|
| 120 |
+
connectParticles();
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
window.addEventListener('resize', () => {
|
| 124 |
+
canvas.width = innerWidth;
|
| 125 |
+
canvas.height = innerHeight;
|
| 126 |
+
initParticles();
|
| 127 |
+
});
|
| 128 |
+
|
| 129 |
+
initParticles();
|
| 130 |
+
animateParticles();
|
| 131 |
+
|
| 132 |
+
/* --------------------------------------------------------
|
| 133 |
+
3. Intersection Observer for Scroll Animations
|
| 134 |
+
-------------------------------------------------------- */
|
| 135 |
const revealElements = document.querySelectorAll('.reveal');
|
| 136 |
|
| 137 |
const revealCallback = (entries, observer) => {
|
| 138 |
entries.forEach(entry => {
|
| 139 |
if (entry.isIntersecting) {
|
| 140 |
entry.target.classList.add('active');
|
|
|
|
| 141 |
observer.unobserve(entry.target);
|
| 142 |
}
|
| 143 |
});
|
| 144 |
};
|
| 145 |
|
| 146 |
const revealOptions = {
|
| 147 |
+
threshold: 0.1,
|
| 148 |
rootMargin: "0px 0px -50px 0px"
|
| 149 |
};
|
| 150 |
|
|
|
|
| 154 |
observer.observe(el);
|
| 155 |
});
|
| 156 |
|
| 157 |
+
// Smooth Scroll handling
|
| 158 |
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 159 |
anchor.addEventListener('click', function (e) {
|
| 160 |
e.preventDefault();
|
|
|
|
| 169 |
}
|
| 170 |
});
|
| 171 |
});
|
| 172 |
+
});
|
style.css
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
/* Base & Reset */
|
| 2 |
body {
|
| 3 |
margin: 0;
|
|
@@ -9,18 +10,60 @@ body {
|
|
| 9 |
-moz-osx-font-smoothing: grayscale;
|
| 10 |
}
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
/* Scroll Animations */
|
| 13 |
.reveal {
|
| 14 |
opacity: 0;
|
| 15 |
-
transform: translateY(
|
| 16 |
-
transition: all
|
| 17 |
}
|
| 18 |
|
| 19 |
.reveal.active {
|
| 20 |
opacity: 1;
|
| 21 |
-
transform: translateY(0);
|
| 22 |
}
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
.delay-100 {
|
| 25 |
transition-delay: 100ms;
|
| 26 |
}
|
|
|
|
| 1 |
+
|
| 2 |
/* Base & Reset */
|
| 3 |
body {
|
| 4 |
margin: 0;
|
|
|
|
| 10 |
-moz-osx-font-smoothing: grayscale;
|
| 11 |
}
|
| 12 |
|
| 13 |
+
/* Custom Cursor */
|
| 14 |
+
.cursor-dot,
|
| 15 |
+
.cursor-outline {
|
| 16 |
+
position: fixed;
|
| 17 |
+
top: 0;
|
| 18 |
+
left: 0;
|
| 19 |
+
transform: translate(-50%, -50%);
|
| 20 |
+
border-radius: 50%;
|
| 21 |
+
z-index: 9999;
|
| 22 |
+
pointer-events: none;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
.cursor-dot {
|
| 26 |
+
width: 8px;
|
| 27 |
+
height: 8px;
|
| 28 |
+
background-color: #06b6d4;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
.cursor-outline {
|
| 32 |
+
width: 40px;
|
| 33 |
+
height: 40px;
|
| 34 |
+
border: 1px solid rgba(6, 182, 212, 0.5);
|
| 35 |
+
transition: width 0.2s, height 0.2s, background-color 0.2s;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
/* Hover State for Cursor */
|
| 39 |
+
body.hovering .cursor-outline {
|
| 40 |
+
width: 60px;
|
| 41 |
+
height: 60px;
|
| 42 |
+
background-color: rgba(6, 182, 212, 0.1);
|
| 43 |
+
border-color: #06b6d4;
|
| 44 |
+
}
|
| 45 |
/* Scroll Animations */
|
| 46 |
.reveal {
|
| 47 |
opacity: 0;
|
| 48 |
+
transform: translateY(40px) scale(0.98);
|
| 49 |
+
transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
|
| 50 |
}
|
| 51 |
|
| 52 |
.reveal.active {
|
| 53 |
opacity: 1;
|
| 54 |
+
transform: translateY(0) scale(1);
|
| 55 |
}
|
| 56 |
|
| 57 |
+
/* Gradient Text Animation */
|
| 58 |
+
@keyframes gradient-shift {
|
| 59 |
+
0% { background-position: 0% 50%; }
|
| 60 |
+
50% { background-position: 100% 50%; }
|
| 61 |
+
100% { background-position: 0% 50%; }
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
.animate-gradient-shift {
|
| 65 |
+
animation: gradient-shift 5s ease infinite;
|
| 66 |
+
}
|
| 67 |
.delay-100 {
|
| 68 |
transition-delay: 100ms;
|
| 69 |
}
|