Add initial portfolio files (HTML, CSS, and JavaScript)

This commit is contained in:
Daniel LaForce 2025-04-02 06:36:41 +00:00
parent c29014fcd9
commit 1c95b249a2
3 changed files with 1980 additions and 0 deletions

942
index.html Normal file
View File

@ -0,0 +1,942 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Daniel LaForce | Infrastructure & Systems Engineer</title>
<!-- SEO Meta Tags -->
<meta name="description" content="Expert Systems & Infrastructure Engineer specializing in virtualization, containerization, and secure network architecture. Explore my live homelab, tech projects, and services.">
<meta name="keywords" content="systems engineer, infrastructure, virtualization, kubernetes, docker, network security, cloud migration, DevOps">
<meta name="author" content="Daniel LaForce">
<!-- Open Graph / Social Media Meta Tags -->
<meta property="og:title" content="Daniel LaForce | Systems & Infrastructure Engineer">
<meta property="og:description" content="Infrastructure specialist with expertise in virtualization, containerization, and network security. View my live lab dashboard and projects.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://argobox.com">
<!-- Favicon -->
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%22256%22 height=%22256%22 viewBox=%220 0 100 100%22><rect width=%22100%22 height=%22100%22 rx=%2220%22 fill=%22%230f172a%22></rect><path fill=%22%233b82f6%22 d=%22M30 40L50 20L70 40L50 60L30 40Z%22></path><path fill=%22%233b82f6%22 d=%22M50 60L70 40L70 70L50 90L30 70L30 40L50 60Z%22 fill-opacity=%220.6%22></path></svg>">
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<!-- FontAwesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
<style>
:root {
/* Main Colors */
--primary-bg: #0f172a;
--secondary-bg: #1e293b;
--accent: #3b82f6;
--accent-darker: #2563eb;
--accent-gradient: linear-gradient(135deg, #2563eb, #3b82f6);
--accent-glow: 0 0 15px rgba(59, 130, 246, 0.5);
/* Text Colors */
--text-primary: #e2e8f0;
--text-secondary: #94a3b8;
--text-accent: #3b82f6;
/* Status Colors */
--success: #10b981;
--warning: #f59e0b;
--error: #ef4444;
--info: #0ea5e9;
/* UI Elements */
--border: rgba(71, 85, 105, 0.5);
--card-bg: rgba(30, 41, 59, 0.8);
--card-hover-bg: rgba(30, 41, 59, 0.95);
--card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
--glass-effect: saturate(180%) blur(10px);
/* Animation Timing */
--transition-fast: 0.2s ease;
--transition-normal: 0.3s ease;
--transition-slow: 0.5s ease;
}
/* Reset & Base Styles */
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
scroll-padding-top: 80px;
}
body {
font-family: 'Inter', system-ui, -apple-system, sans-serif;
background-color: var(--primary-bg);
color: var(--text-primary);
line-height: 1.6;
overflow-x: hidden;
min-height: 100vh;
background-image:
radial-gradient(circle at 20% 35%, rgba(29, 78, 216, 0.15) 0%, transparent 50%),
radial-gradient(circle at 75% 60%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
line-height: 1.2;
}
a {
text-decoration: none;
color: var(--accent);
transition: color var(--transition-normal);
}
a:hover {
color: var(--accent-darker);
}
/* Layout */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1.5rem;
}
section {
padding: 6rem 0;
position: relative;
}
/* Button Styles */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.75rem 1.5rem;
font-weight: 600;
border-radius: 0.5rem;
transition: all var(--transition-normal);
cursor: pointer;
position: relative;
overflow: hidden;
border: none;
outline: none;
}
.btn::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.1);
transform: translateX(-100%) rotate(45deg);
transition: transform 0.6s;
}
.btn:hover::before {
transform: translateX(100%) rotate(45deg);
}
.btn-primary {
background: var(--accent-gradient);
color: white;
box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2), 0 2px 4px -1px rgba(59, 130, 246, 0.1);
}
.btn-primary:hover {
box-shadow: var(--accent-glow), 0 10px 15px -3px rgba(59, 130, 246, 0.3);
transform: translateY(-2px);
}
.btn-outline {
background-color: transparent;
border: 2px solid var(--accent);
color: var(--accent);
}
.btn-outline:hover {
background-color: var(--accent);
color: white;
box-shadow: var(--accent-glow);
transform: translateY(-2px);
}
.btn-icon {
margin-right: 0.5rem;
}
/* Navigation */
.navbar {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
backdrop-filter: var(--glass-effect);
-webkit-backdrop-filter: var(--glass-effect);
background-color: rgba(15, 23, 42, 0.8);
border-bottom: 1px solid var(--border);
transition: all var(--transition-normal);
}
.navbar.scrolled {
background-color: rgba(15, 23, 42, 0.95);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
height: 4.5rem;
}
.logo {
display: flex;
align-items: center;
font-weight: 700;
font-size: 1.5rem;
}
.logo-text {
color: var(--accent);
}
.logo-dot {
color: var(--text-primary);
}
.nav-links {
display: flex;
align-items: center;
gap: 2rem;
}
.nav-link {
position: relative;
color: var(--text-secondary);
font-weight: 500;
padding: 0.5rem;
transition: color var(--transition-normal);
}
.nav-link::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background: var(--accent-gradient);
transition: width var(--transition-normal);
border-radius: 1px;
}
.nav-link:hover, .nav-link.active {
color: var(--text-primary);
}
.nav-link:hover::after, .nav-link.active::after {
width: 100%;
}
.dashboard-btn {
display: flex;
align-items: center;
gap: 0.5rem;
background: rgba(59, 130, 246, 0.15);
color: var(--text-primary);
padding: 0.5rem 1rem;
border-radius: 9999px;
font-weight: 500;
transition: all var(--transition-normal);
}
.dashboard-btn:hover {
background: rgba(59, 130, 246, 0.3);
color: var(--text-primary);
transform: translateY(-1px);
}
.mobile-menu-btn {
display: none;
background: transparent;
border: none;
color: var(--text-primary);
cursor: pointer;
font-size: 1.5rem;
}
/* Hero Section */
.hero {
min-height: 100vh;
display: flex;
align-items: center;
position: relative;
overflow: hidden;
padding-top: 4.5rem;
padding-bottom: 2rem;
}
.hero-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
opacity: 0.05;
overflow: hidden;
}
.hero-grid {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: linear-gradient(var(--accent) 1px, transparent 1px),
linear-gradient(90deg, var(--accent) 1px, transparent 1px);
background-size: 50px 50px;
background-position: center center;
opacity: 0.05;
}
.hero-content {
display: flex;
align-items: center;
gap: 4rem;
}
.hero-text {
flex: 1;
}
.hero-title {
font-size: 3.5rem;
margin-bottom: 1.5rem;
}
.highlight {
background: var(--accent-gradient);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
position: relative;
}
.highlight::after {
content: '';
position: absolute;
width: 100%;
height: 5px;
bottom: 5px;
left: 0;
background: var(--accent-gradient);
border-radius: 5px;
opacity: 0.3;
z-index: -1;
}
.hero-subtitle {
font-size: 1.2rem;
color: var(--text-secondary);
margin-bottom: 2rem;
max-width: 550px;
}
.status-indicator {
display: inline-flex;
align-items: center;
background: rgba(59, 130, 246, 0.15);
padding: 0.5rem 1rem;
border-radius: 9999px;
margin-bottom: 1.5rem;
}
.live-dot {
width: 10px;
height: 10px;
background-color: var(--success);
border-radius: 50%;
margin-right: 0.5rem;
position: relative;
}
.live-dot::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: var(--success);
animation: pulse 2s infinite;
z-index: -1;
}
@keyframes pulse {
0% {
transform: scale(1);
opacity: 0.8;
}
70% {
transform: scale(2);
opacity: 0;
}
100% {
transform: scale(1);
opacity: 0;
}
}
.terminal {
font-family: 'JetBrains Mono', monospace;
background-color: rgba(11, 17, 32, 0.8);
color: var(--text-secondary);
margin-bottom: 2rem;
border-radius: 0.5rem;
padding: 0.75rem 1rem;
display: inline-block;
white-space: nowrap;
overflow: hidden;
max-width: 100%;
}
.typing-effect {
display: inline-block;
overflow: hidden;
border-right: 2px solid var(--accent);
width: 0;
animation: typing 2.5s steps(30) 0.5s forwards, blink 1s step-end infinite;
}
@keyframes typing {
from { width: 0 }
to { width: 100% }
}
@keyframes blink {
50% { border-color: transparent }
}
.hero-buttons {
display: flex;
gap: 1rem;
flex-wrap: wrap;
margin-top: 2rem;
}
.hero-visual {
flex: 1;
min-width: 300px;
}
.tech-dashboard {
background-color: var(--card-bg);
border-radius: 1rem;
overflow: hidden;
box-shadow: var(--card-shadow);
border: 1px solid var(--border);
position: relative;
transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
transition: all var(--transition-normal);
animation: float 6s ease-in-out infinite;
}
.tech-dashboard:hover {
transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}
@keyframes float {
0% { transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(0px); }
50% { transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(-10px); }
100% { transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(0px); }
}
.data-stream {
height: 200px;
position: relative;
overflow: hidden;
background-color: var(--secondary-bg);
background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
background-size: 20px 20px;
}
.data-line {
position: absolute;
height: 1px;
background: var(--accent-gradient);
opacity: 0.7;
animation: dataflow linear infinite;
}
@keyframes dataflow {
from { transform: translateY(-100%); }
to { transform: translateY(500%); }
}
.terminal-output {
background-color: rgb(15, 20, 30);
padding: 1rem;
font-family: 'JetBrains Mono', monospace;
font-size: 0.85rem;
line-height: 1.5;
}
.terminal-line {
margin-bottom: 0.5rem;
}
.terminal-success {
color: var(--success);
}
.terminal-warning {
color: var(--warning);
}
.terminal-error {
color: var(--error);
}
.terminal-info {
color: var(--info);
}
/* Services Section */
.services {
background-color: var(--secondary-bg);
position: relative;
isolation: isolate;
}
.services::before {
content: '';
position: absolute;
width: 200%;
height: 200px;
top: -100px;
left: -50%;
background-color: var(--secondary-bg);
transform: rotate(-2deg);
z-index: -1;
}
.section-header {
text-align: center;
margin-bottom: 4rem;
}
.section-title {
font-size: 2.5rem;
margin-bottom: 1rem;
position: relative;
display: inline-block;
}
.section-title::after {
content: '';
position: absolute;
bottom: -0.5rem;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 4px;
background: var(--accent-gradient);
border-radius: 2px;
}
.section-description {
max-width: 700px;
margin: 0 auto;
color: var(--text-secondary);
font-size: 1.1rem;
}
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 2rem;
}
.service-card {
background-color: var(--card-bg);
border-radius: 1rem;
border: 1px solid var(--border);
padding: 2rem;
transition: all var(--transition-normal);
position: relative;
overflow: hidden;
z-index: 1;
}
.service-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 0;
background: var(--accent-gradient);
opacity: 0.1;
transition: height var(--transition-slow);
z-index: -1;
}
.service-card:hover {
transform: translateY(-10px);
box-shadow: var(--card-shadow);
border-color: var(--accent);
}
.service-card:hover::before {
height: 100%;
}
.service-icon {
font-size: 2.5rem;
color: var(--accent);
margin-bottom: 1.5rem;
transition: all var(--transition-normal);
}
.service-card:hover .service-icon {
transform: scale(1.1);
text-shadow: var(--accent-glow);
}
.service-title {
font-size: 1.5rem;
margin-bottom: 1rem;
}
.service-description {
color: var(--text-secondary);
margin-bottom: 1.5rem;
transition: color var(--transition-normal);
}
.service-card:hover .service-description {
color: var(--text-primary);
}
.tech-badges {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.tech-badge {
background-color: rgba(59, 130, 246, 0.1);
border: 1px solid rgba(59, 130, 246, 0.3);
color: var(--accent);
font-size: 0.8rem;
font-weight: 500;
padding: 0.25rem 0.75rem;
border-radius: 9999px;
transition: all var(--transition-normal);
}
.service-card:hover .tech-badge {
background-color: rgba(59, 130, 246, 0.2);
border-color: var(--accent);
}
/* Lab Section */
.lab-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-bottom: 3rem;
}
.lab-card {
background-color: var(--card-bg);
border-radius: 1rem;
border: 1px solid var(--border);
padding: 2rem;
height: 100%;
transition: all var(--transition-normal);
}
.lab-card:hover {
transform: translateY(-5px);
box-shadow: var(--card-shadow);
border-color: var(--accent);
}
.lab-card-title {
font-size: 1.5rem;
margin-bottom: 1rem;
color: var(--text-primary);
}
.lab-card-description {
color: var(--text-secondary);
margin-bottom: 1.5rem;
}
.lab-subtitle {
font-size: 1.1rem;
font-weight: 600;
color: var(--accent);
margin-bottom: 1rem;
}
.lab-list {
margin-bottom: 1.5rem;
}
.lab-list-item {
display: flex;
margin-bottom: 0.75rem;
color: var(--text-secondary);
}
.lab-list-bullet {
color: var(--accent);
margin-right: 0.75rem;
}
.lab-buttons {
display: flex;
gap: 1rem;
flex-wrap: wrap;
margin-top: 2rem;
}
/* Metrics */
.metric {
margin-bottom: 1.5rem;
}
.metric-header {
display: flex;
justify-content: space-between;
margin-bottom: 0.5rem;
}
.metric-label {
color: var(--text-secondary);
}
.metric-value {
color: var(--accent);
font-weight: 500;
}
.metric-bar {
height: 0.5rem;
background-color: rgba(59, 130, 246, 0.1);
border-radius: 9999px;
overflow: hidden;
}
.metric-progress {
height: 100%;
background: var(--accent-gradient);
border-radius: 9999px;
position: relative;
overflow: hidden;
}
.metric-progress::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(90deg,
transparent 0%,
rgba(255, 255, 255, 0.2) 50%,
transparent 100%);
animation: shimmer 2s infinite;
}
@keyframes shimmer {
0% { transform: translateX(-100%); }
100% { transform: translateX(100%); }
}
.services-grid-small {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
gap: 0.75rem;
}
.service-status {
display: flex;
align-items: center;
gap: 0.5rem;
background-color: rgba(59, 130, 246, 0.1);
padding: 0.5rem;
border-radius: 0.5rem;
font-size: 0.85rem;
}
.status-indicator {
display: flex;
align-items: center;
font-size: 0.85rem;
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background-color: var(--success);
margin-right: 0.5rem;
}
/* Code Section */
.code-card {
background-color: var(--card-bg);
border-radius: 1rem;
border: 1px solid var(--border);
padding: 2rem;
margin-bottom: 2rem;
transition: all var(--transition-normal);
}
.code-card:hover {
box-shadow: var(--card-shadow);
border-color: var(--accent);
}
.code-block {
background-color: rgb(15, 20, 30);
border-radius: 0.5rem;
padding: 1.5rem;
font-family: 'JetBrains Mono', monospace;
font-size: 0.85rem;
line-height: 1.6;
overflow-x: auto;
}
.code-comment { color: #8b949e; }
.code-keyword { color: #ff7b72; }
.code-function { color: #d2a8ff; }
.code-string { color: #a5d6ff; }
/* Projects Section */
.projects {
background-color: var(--secondary-bg);
}
.project-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 2rem;
}
.project-card {
background-color: var(--card-bg);
border-radius: 1rem;
border: 1px solid var(--border);
padding: 2rem;
transition: all var(--transition-normal);
height: 100%;
display: flex;
flex-direction: column;
}
.project-card:hover {
transform: translateY(-10px);
box-shadow: var(--card-shadow);
border-color: var(--accent);
}
.project-icon {
font-size: 2.5rem;
color: var(--accent);
margin-bottom: 1.5rem;
}
.project-title {
font-size: 1.5rem;
margin-bottom: 1rem;
}
.project-description {
color: var(--text-secondary);
margin-bottom: 1.5rem;
flex-grow: 1;
}
/* Experience Section */
.timeline {
position: relative;
max-width: 800px;
margin: 0 auto;
}
.timeline::before {
content: '';
position: absolute;
top: 0;
bottom: 0;
width: 2px;
background-color: var(--border);
left: 25px;
}
.timeline-item {
position: relative;
padding-left: 4rem;
margin-bottom: 3rem;
}
.timeline-dot {
position: absolute;
left: 0;
top: 0;
width: 16px;
height: 16px;
background: var(--accent-gradient);
border-radius: 50%;
transform: translateX(-7px);
z-index: 1;
}
.timeline-content {
background-color: var(--card-bg);
border-radius: 1rem;
border: 1px solid var(--border);
padding: 1.5rem;
transition: all var(--transition-normal);
}
.timeline-content:hover {
transform: translateY(-5px);
box-shadow: var(--card-shadow);
border-color: var(--accent);
}
.timeline-title {
font-size: 1.25rem;
margin-bottom: 0.5rem;
}
.timeline-subtitle {
color: var(--accent);
font-weight: 500;
margin-bottom: 0.5rem;
}
.timeline-date {
font-size: 0.85rem;
color: var(--text-secondary);
margin-bottom: 1rem;
}

148
script.js Normal file
View File

@ -0,0 +1,148 @@
/**
* Main JavaScript file for argobox.com
* Handles navigation, animations, and interactivity
*/
document.addEventListener('DOMContentLoaded', function() {
// Update current year in footer
document.getElementById('current-year').textContent = new Date().getFullYear();
// Mobile menu toggle
const menuToggle = document.querySelector('.menu-toggle');
const navMenu = document.querySelector('.nav-menu');
if (menuToggle && navMenu) {
menuToggle.addEventListener('click', function() {
navMenu.classList.toggle('active');
});
}
// Active navigation link based on scroll position
const sections = document.querySelectorAll('section');
const navLinks = document.querySelectorAll('.nav-link');
function updateActiveLink() {
let currentSection = '';
sections.forEach(section => {
const sectionTop = section.offsetTop - 100;
const sectionHeight = section.offsetHeight;
if (window.scrollY >= sectionTop && window.scrollY < sectionTop + sectionHeight) {
currentSection = section.getAttribute('id');
}
});
navLinks.forEach(link => {
link.classList.remove('active');
if (link.getAttribute('href') === `#${currentSection}`) {
link.classList.add('active');
}
});
}
window.addEventListener('scroll', updateActiveLink);
updateActiveLink();
// Form submission handling
const contactForm = document.getElementById('contact-form');
if (contactForm) {
contactForm.addEventListener('submit', function(e) {
e.preventDefault();
// In a real implementation, you would send the form data to a backend service
// For now, we'll just simulate a successful submission
const formData = new FormData(contactForm);
const formValues = Object.fromEntries(formData.entries());
console.log('Form submission:', formValues);
// Show success message (in a real implementation)
alert('Thank you for your message! I will get back to you soon.');
// Reset form
contactForm.reset();
});
}
// Create animated data streams
function createRandomDataLines() {
const dataStreamContainer = document.querySelector('.data-stream');
if (!dataStreamContainer) return;
// Remove existing lines
const existingLines = dataStreamContainer.querySelectorAll('.data-line');
existingLines.forEach(line => line.remove());
// Create new random lines
for (let i = 0; i < 10; i++) {
const line = document.createElement('div');
line.classList.add('data-line');
// Random positioning and animation
const left = Math.random() * 90 + 5; // 5-95%
const width = Math.random() * 40 + 10; // 10-50%
const duration = Math.random() * 3 + 2; // 2-5s
line.style.left = `${left}%`;
line.style.width = `${width}%`;
line.style.animationDuration = `${duration}s`;
dataStreamContainer.appendChild(line);
}
}
// Initial data lines creation
createRandomDataLines();
// Refresh data lines periodically
setInterval(createRandomDataLines, 10000);
// Simulated live metrics - randomly update values periodically
function updateMetrics() {
const cpuValue = document.querySelector('.metric:nth-child(1) .metric-value');
const cpuBar = document.querySelector('.metric:nth-child(1) .metric-progress');
const memValue = document.querySelector('.metric:nth-child(2) .metric-value');
const memBar = document.querySelector('.metric:nth-child(2) .metric-progress');
const storageValue = document.querySelector('.metric:nth-child(3) .metric-value');
const storageBar = document.querySelector('.metric:nth-child(3) .metric-progress');
const networkValue = document.querySelector('.metric:nth-child(4) .metric-value');
const networkBar = document.querySelector('.metric:nth-child(4) .metric-progress');
if (cpuValue && cpuBar) {
const newCpuValue = Math.floor(Math.random() * 30) + 20; // 20-50%
cpuValue.textContent = `${newCpuValue}%`;
cpuBar.style.width = `${newCpuValue}%`;
}
if (memValue && memBar) {
const newMemValue = Math.floor(Math.random() * 20) + 45; // 45-65%
memValue.textContent = `${newMemValue}%`;
memBar.style.width = `${newMemValue}%`;
}
if (storageValue && storageBar) {
const newStorageValue = Math.floor(Math.random() * 5) + 60; // 60-65%
storageValue.textContent = `${newStorageValue}%`;
storageBar.style.width = `${newStorageValue}%`;
}
if (networkValue && networkBar) {
const newNetworkValue = Math.floor(Math.random() * 30) + 15; // 15-45%
networkValue.textContent = `${newNetworkValue}%`;
networkBar.style.width = `${newNetworkValue}%`;
}
}
// Update metrics every 5 seconds
setInterval(updateMetrics, 5000);
// Trigger an initial metrics update
updateMetrics();
});

890
styles.css Normal file
View File

@ -0,0 +1,890 @@
/*
* Main stylesheet for argobox.com
* Modern tech portfolio design
*/
:root {
--primary: #0f172a;
--secondary: #1e293b;
--accent: #3b82f6;
--accent-dark: #2563eb;
--text: #e2e8f0;
--text-muted: #94a3b8;
--border: #475569;
--success: #10b981;
--warning: #f59e0b;
--danger: #ef4444;
--info: #3b82f6;
--gradient-start: #1e40af;
--gradient-end: #3b82f6;
}
/* Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Inter', system-ui, -apple-system, sans-serif;
background-color: var(--primary);
color: var(--text);
line-height: 1.6;
overflow-x: hidden;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1.5rem;
}
section {
padding: 6rem 0;
}
a {
text-decoration: none;
color: var(--accent);
transition: color 0.3s ease;
}
a:hover {
color: var(--accent-dark);
}
ul {
list-style: none;
}
/* Buttons */
.btn {
display: inline-block;
padding: 0.75rem 1.5rem;
border-radius: 0.5rem;
font-weight: 600;
transition: all 0.3s ease;
cursor: pointer;
border: none;
}
.btn-primary {
background-color: var(--accent);
color: white;
}
.btn-primary:hover {
background-color: var(--accent-dark);
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.btn-outline {
background-color: transparent;
border: 2px solid var(--accent);
color: var(--accent);
}
.btn-outline:hover {
background-color: var(--accent);
color: white;
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
/* Navbar */
.navbar {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
background-color: rgba(15, 23, 42, 0.9);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(71, 85, 105, 0.3);
height: 4rem;
display: flex;
align-items: center;
}
.navbar .container {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}
.logo {
display: flex;
align-items: center;
}
.logo-text {
font-size: 1.5rem;
font-weight: 700;
color: var(--accent);
}
.logo-dot {
font-size: 1.5rem;
font-weight: 700;
color: var(--text);
}
.nav-menu {
display: flex;
gap: 2rem;
}
.nav-link {
position: relative;
color: var(--text-muted);
font-weight: 500;
transition: all 0.3s ease;
}
.nav-link:hover, .nav-link.active {
color: var(--text);
}
.nav-link::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -5px;
left: 0;
background-color: var(--accent);
transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
width: 100%;
}
.nav-buttons {
display: flex;
align-items: center;
gap: 1rem;
}
.dashboard-link {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
background-color: rgba(59, 130, 246, 0.2);
border-radius: 0.5rem;
color: var(--text);
font-weight: 500;
transition: all 0.3s ease;
}
.dashboard-link:hover {
background-color: rgba(59, 130, 246, 0.3);
color: var(--text);
}
.menu-toggle {
display: none;
background: transparent;
border: none;
color: var(--text);
font-size: 1.5rem;
cursor: pointer;
}
/* Live indicator animation */
.live-indicator {
width: 10px;
height: 10px;
background-color: var(--success);
border-radius: 50%;
display: inline-block;
animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}
70% {
box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
}
}
/* Hero Section */
.hero {
min-height: 100vh;
display: flex;
align-items: center;
padding-top: 4rem;
}
.hero .container {
display: flex;
align-items: center;
gap: 2rem;
}
.hero-content {
flex: 1;
}
.hero-title {
font-size: 3rem;
font-weight: 700;
line-height: 1.2;
margin-bottom: 1rem;
}
.highlight {
color: var(--accent);
}
.status-indicator {
display: inline-flex;
align-items: center;
background-color: rgba(59, 130, 246, 0.2);
padding: 0.5rem 1rem;
border-radius: 9999px;
margin-bottom: 1.5rem;
}
.hero-description {
font-size: 1.25rem;
color: var(--text-muted);
margin-bottom: 1.5rem;
max-width: 600px;
}
.command-line {
font-family: monospace;
color: var(--text-muted);
margin-bottom: 2rem;
}
.typing-animation {
display: inline-block;
width: 18ch;
animation: typing 2s steps(18), blink .5s step-end infinite alternate;
white-space: nowrap;
overflow: hidden;
border-right: 3px solid;
}
@keyframes typing {
from { width: 0 }
}
@keyframes blink {
50% { border-color: transparent }
}
.hero-buttons {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}
.hero-visual {
flex: 1;
}
/* Data Stream Animation */
.data-stream {
height: 200px;
background-color: var(--secondary);
border-radius: 0.5rem;
position: relative;
overflow: hidden;
margin-bottom: 0.5rem;
}
.data-line {
position: absolute;
height: 1px;
background-color: var(--accent);
opacity: 0.5;
animation-name: datastream;
animation-timing-function: linear;
animation-iteration-count: infinite;
}
@keyframes datastream {
0% { transform: translateY(-100%); }
100% { transform: translateY(500%); }
}
.terminal {
background-color: var(--primary);
border-radius: 0.5rem;
padding: 1rem;
font-family: monospace;
font-size: 0.9rem;
}
.terminal-line {
margin-bottom: 0.5rem;
}
.success {
color: var(--success);
}
.warning {
color: var(--warning);
}
.info {
color: var(--info);
}
/* Services Section */
.services {
background-color: var(--secondary);
}
.section-header {
text-align: center;
margin-bottom: 4rem;
}
.section-title {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 1rem;
position: relative;
display: inline-block;
}
.section-title::after {
content: '';
position: absolute;
width: 60px;
height: 4px;
background: linear-gradient(90deg, var(--accent), var(--accent-dark));
bottom: -0.5rem;
left: 50%;
transform: translateX(-50%);
border-radius: 2px;
}
.section-description {
font-size: 1.1rem;
color: var(--text-muted);
max-width: 700px;
margin: 0 auto;
}
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.service-card {
background-color: var(--primary);
border-radius: 0.75rem;
padding: 2rem;
transition: all 0.3s ease;
border: 1px solid var(--border);
}
.service-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
border-color: var(--accent);
}
.service-icon {
font-size: 2rem;
color: var(--accent);
margin-bottom: 1.5rem;
}
.service-title {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 1rem;
}
.service-description {
color: var(--text-muted);
margin-bottom: 1.5rem;
}
.tech-badges {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.tech-badge {
background-color: rgba(59, 130, 246, 0.2);
color: var(--accent);
border: 1px solid var(--accent);
padding: 0.25rem 0.75rem;
border-radius: 9999px;
font-size: 0.8rem;
font-weight: 500;
}
/* Lab Section */
.lab-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}
.lab-card {
background-color: var(--secondary);
border-radius: 0.75rem;
padding: 2rem;
border: 1px solid var(--border);
}
.lab-card-title {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 1rem;
}
.lab-card-description {
color: var(--text-muted);
margin-bottom: 1.5rem;
}
.lab-subtitle {
font-size: 1rem;
font-weight: 600;
color: var(--accent);
margin-bottom: 0.75rem;
}
.lab-list {
margin-bottom: 1.5rem;
}
.lab-list li {
display: flex;
align-items: start;
margin-bottom: 0.5rem;
color: var(--text-muted);
}
.bullet {
display: inline-block;
width: 6px;
height: 6px;
background-color: var(--accent);
border-radius: 50%;
margin-right: 0.75rem;
margin-top: 0.5rem;
}
.lab-buttons {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}
.flex-center {
display: flex;
align-items: center;
gap: 0.5rem;
}
.metric {
margin-bottom: 1.5rem;
}
.metric-header {
display: flex;
justify-content: space-between;
margin-bottom: 0.5rem;
}
.metric-name {
color: var(--text-muted);
}
.metric-value {
color: var(--accent);
}
.metric-bar {
height: 10px;
background-color: rgba(59, 130, 246, 0.2);
border-radius: 5px;
overflow: hidden;
}
.metric-progress {
height: 100%;
background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
border-radius: 5px;
}
.services-grid-small {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 0.75rem;
}
.service-tag {
display: flex;
align-items: center;
background-color: rgba(59, 130, 246, 0.2);
padding: 0.5rem;
border-radius: 0.5rem;
font-size: 0.9rem;
}
.status-dot {
width: 8px;
height: 8px;
background-color: var(--success);
border-radius: 50%;
margin-right: 0.5rem;
}
.code-card {
background-color: var(--secondary);
border-radius: 0.75rem;
padding: 2rem;
border: 1px solid var(--border);
}
.code-card-title {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 1rem;
}
.code-card-description {
color: var(--text-muted);
margin-bottom: 1.5rem;
}
.code-block {
background-color: #0d1117;
padding: 1.5rem;
border-radius: 0.5rem;
font-family: monospace;
font-size: 0.9rem;
overflow-x: auto;
line-height: 1.5;
}
.comment { color: #8b949e; }
.keyword { color: #ff7b72; }
.function { color: #d2a8ff; }
.string { color: #a5d6ff; }
/* Projects Section */
.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.project-card {
background-color: var(--secondary);
border-radius: 0.75rem;
padding: 2rem;
transition: all 0.3s ease;
border: 1px solid var(--border);
}
.project-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
border-color: var(--accent);
}
.project-icon {
font-size: 2rem;
color: var(--accent);
margin-bottom: 1.5rem;
}
.project-title {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 1rem;
}
.project-description {
color: var(--text-muted);
margin-bottom: 1.5rem;
}
/* Experience Section */
.experience {
background-color: var(--secondary);
}
.timeline {
position: relative;
max-width: 800px;
margin: 0 auto;
}
.timeline::before {
content: '';
position: absolute;
top: 0;
bottom: 0;
width: 2px;
background-color: var(--border);
left: 25px;
}
.timeline-item {
position: relative;
padding-left: 3rem;
margin-bottom: 3rem;
}
.timeline-dot {
position: absolute;
left: 0;
top: 0;
width: 14px;
height: 14px;
background-color: var(--accent);
border-radius: 50%;
transform: translateX(-6px);
}
.timeline-content {
background-color: var(--primary);
border-radius: 0.75rem;
padding: 1.5rem;
border: 1px solid var(--border);
}
.timeline-title {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 0.5rem;
}
.timeline-subtitle {
font-size: 1rem;
font-weight: 500;
color: var(--accent);
margin-bottom: 0.5rem;
}
.timeline-date {
font-size: 0.9rem;
color: var(--text-muted);
margin-bottom: 1rem;
}
.timeline-description {
color: var(--text-muted);
}
/* Contact Section */
.contact-grid {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 2rem;
}
.contact-info {
display: flex;
flex-direction: column;
gap: 2rem;
}
.contact-item {
background-color: var(--secondary);
border-radius: 0.75rem;
padding: 1.5rem;
border: 1px solid var(--border);
}
.contact-icon {
font-size: 2rem;
color: var(--accent);
margin-bottom: 1rem;
}
.contact-item-title {
font-size: 1.1rem;
font-weight: 600;
margin-bottom: 0.5rem;
}
.contact-form-container {
background-color: var(--secondary);
border-radius: 0.75rem;
padding: 2rem;
border: 1px solid var(--border);
}
.contact-form {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.form-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.form-group label {
font-weight: 500;
}
.form-group input, .form-group textarea {
padding: 0.75rem;
border-radius: 0.5rem;
background-color: var(--primary);
border: 1px solid var(--border);
color: var(--text);
font-family: inherit;
resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
outline: none;
border-color: var(--accent);
}
/* Footer */
.footer {
background-color: var(--primary);
padding: 4rem 0 2rem;
border-top: 1px solid var(--border);
}
.footer-content {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 2rem;
margin-bottom: 3rem;
}
.footer-links {
display: flex;
gap: 1.5rem;
flex-wrap: wrap;
}
.footer-links a {
color: var(--text-muted);
}
.footer-links a:hover {
color: var(--accent);
}
.footer-social {
display: flex;
gap: 1rem;
}
.footer-social a {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background-color: rgba(59, 130, 246, 0.2);
border-radius: 50%;
color: var(--text);
transition: all 0.3s ease;
}
.footer-social a:hover {
background-color: var(--accent);
color: white;
transform: translateY(-3px);
}
.footer-bottom {
text-align: center;
color: var(--text-muted);
font-size: 0.9rem;
}
/* Responsive Styles */
@media (max-width: 992px) {
.hero .container {
flex-direction: column;
}
.hero-content {
text-align: center;
}
.hero-description {
margin: 0 auto 1.5rem;
}
.hero-buttons {
justify-content: center;
}
.contact-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
.nav-menu {
display: none;
position: absolute;
top: 4rem;
left: 0;
width: 100%;
flex-direction: column;
background-color: var(--primary);
padding: 1rem;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.nav-menu.active {
display: flex;
}
.nav-buttons .dashboard-link {
display: none;
}
.menu-toggle {
display: block;
}
.section-title {
font-size: 2rem;
}
.hero-title {
font-size: 2.25rem;
}
.footer-content {
flex-direction: column;
align-items: center;
text-align: center;
}
}