Spaces:
Sleeping
Sleeping
| <html lang="pt-BR" class="scroll-smooth"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>SoftEdge Corporation - Inovação em Tecnologia</title> | |
| <!-- SEO & SOCIAL --> | |
| <meta name="description" content="SoftEdge Corporation - Inovação em desenvolvimento de software, soluções digitais e consultoria tecnológica em Angola. Transformamos ideias em realidade."> | |
| <meta name="keywords" content="software, tecnologia, desenvolvimento, Angola, Luanda, IA, React, Python, PHP"> | |
| <meta name="author" content="SoftEdge Corporation"> | |
| <!-- FAVICON --> | |
| <link rel="icon" href="/assets/placeholder.svg" type="image/svg+xml"> | |
| <link rel="apple-touch-icon" href="/assets/placeholder.svg"> | |
| <meta property="og:image" content="/assets/placeholder.svg" /> | |
| <meta property="og:title" content="SoftEdge Corporation" /> | |
| <meta property="og:description" content="Soluções em tecnologia para transformar seu negócio" /> | |
| <meta name="twitter:image" content="/assets/placeholder.svg" /> | |
| <meta name="theme-color" content="#0891b2"> | |
| <!-- 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@400;500;600;700;800;900&display=swap" rel="stylesheet"> | |
| <!-- TAILWIND CSS --> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script> | |
| tailwind.config = { | |
| theme: { | |
| extend: { | |
| fontFamily: { | |
| sans: ['Inter', 'system-ui', 'sans-serif'], | |
| }, | |
| colors: { | |
| primary: { | |
| 50: '#ecfeff', | |
| 100: '#cffafe', | |
| 500: '#06b6d4', | |
| 600: '#0891b2', | |
| 700: '#0e7490', | |
| 900: '#164e63', | |
| } | |
| }, | |
| animation: { | |
| 'fade-in': 'fadeIn 0.6s ease-out', | |
| 'slide-up': 'slideUp 0.6s ease-out', | |
| 'bounce-gentle': 'bounceGentle 2s infinite', | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| <!-- LUCIDE ICONS --> | |
| <script src="https://unpkg.com/lucide@latest"></script> | |
| <!-- CUSTOM CSS --> | |
| <link href="/assets/css/style.css" rel="stylesheet"> | |
| <style> | |
| /* Custom animations */ | |
| @keyframes fadeIn { | |
| from { opacity: 0; transform: translateY(20px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| @keyframes slideUp { | |
| from { opacity: 0; transform: translateY(40px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| @keyframes bounceGentle { | |
| 0%, 100% { transform: translateY(0); } | |
| 50% { transform: translateY(-10px); } | |
| } | |
| /* Glass effect */ | |
| .glass { | |
| background: rgba(0, 0, 0, 0.8); | |
| backdrop-filter: blur(20px); | |
| -webkit-backdrop-filter: blur(20px); | |
| border: 1px solid rgba(255, 255, 255, 0.1); | |
| } | |
| /* Gradient text */ | |
| .gradient-text { | |
| background: linear-gradient(135deg, #06b6d4, #3b82f6); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| } | |
| /* Hover effects */ | |
| .hover-lift { | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| } | |
| .hover-lift:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2); | |
| } | |
| /* Typing animation */ | |
| .typing::after { | |
| content: '|'; | |
| animation: blink 1s infinite; | |
| } | |
| @keyframes blink { | |
| 0%, 50% { opacity: 1; } | |
| 51%, 100% { opacity: 0; } | |
| } | |
| </style> | |
| </head> | |
| <body class="min-h-screen bg-linear-to-br from-slate-950 via-slate-900 to-slate-950 text-white antialiased font-sans"> | |
| <!-- HEADER --> | |
| <header class="fixed top-0 left-0 right-0 z-50 glass"> | |
| <nav class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex items-center justify-between h-16"> | |
| <!-- Logo --> | |
| <div class="flex items-center space-x-3"> | |
| <div class="w-10 h-10 rounded-xl overflow-hidden bg-linear-to-br from-cyan-500 to-blue-600 p-0.5"> | |
| <img src="/assets/logo.jpeg" alt="SoftEdge Logo" class="w-full h-full object-cover rounded-xl"> | |
| </div> | |
| <span class="text-xl font-bold gradient-text">SoftEdge</span> | |
| </div> | |
| <!-- Desktop Navigation --> | |
| <div class="hidden md:flex items-center space-x-8"> | |
| <a href="/" class="text-white hover:text-cyan-400 transition-colors font-medium">Início</a> | |
| <a href="/sobre" class="text-gray-300 hover:text-cyan-400 transition-colors">Sobre</a> | |
| <a href="/servicos" class="text-gray-300 hover:text-cyan-400 transition-colors">Serviços</a> | |
| <a href="/projetos" class="text-gray-300 hover:text-cyan-400 transition-colors">Projetos</a> | |
| <a href="/contato" class="text-gray-300 hover:text-cyan-400 transition-colors">Contato</a> | |
| <a href="/react-app" class="bg-cyan-500 hover:bg-cyan-600 text-white px-4 py-2 rounded-lg transition-colors font-medium"> | |
| React App | |
| </a> | |
| </div> | |
| <!-- Mobile menu button --> | |
| <button class="md:hidden text-white" id="mobile-menu-button"> | |
| <i data-lucide="menu" class="w-6 h-6"></i> | |
| </button> | |
| </div> | |
| <!-- Mobile Navigation --> | |
| <div class="md:hidden hidden" id="mobile-menu"> | |
| <div class="px-2 pt-2 pb-3 space-y-1 bg-slate-900/95 rounded-lg mt-2"> | |
| <a href="/" class="block px-3 py-2 text-white font-medium">Início</a> | |
| <a href="/sobre" class="block px-3 py-2 text-gray-300 hover:text-cyan-400">Sobre</a> | |
| <a href="/servicos" class="block px-3 py-2 text-gray-300 hover:text-cyan-400">Serviços</a> | |
| <a href="/projetos" class="block px-3 py-2 text-gray-300 hover:text-cyan-400">Projetos</a> | |
| <a href="/contato" class="block px-3 py-2 text-gray-300 hover:text-cyan-400">Contato</a> | |
| <a href="/react-app" class="block px-3 py-2 bg-cyan-500 text-white rounded-lg text-center">React App</a> | |
| </div> | |
| </div> | |
| </nav> | |
| </header> | |
| <!-- HERO SECTION --> | |
| <section class="relative min-h-screen flex items-center justify-center overflow-hidden pt-16"> | |
| <!-- Background --> | |
| <div class="absolute inset-0 -z-10"> | |
| <div class="absolute inset-0 bg-linear-to-br from-slate-950 via-slate-900 to-slate-950"></div> | |
| <div class="absolute inset-0 opacity-30"> | |
| <div class="absolute top-20 left-20 w-96 h-96 bg-cyan-500/20 rounded-full blur-3xl animate-pulse"></div> | |
| <div class="absolute bottom-20 right-20 w-96 h-96 bg-blue-500/20 rounded-full blur-3xl animate-pulse" style="animation-delay: 1s;"></div> | |
| <div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-96 h-96 bg-purple-500/10 rounded-full blur-3xl animate-pulse" style="animation-delay: 2s;"></div> | |
| </div> | |
| </div> | |
| <!-- Content --> | |
| <div class="relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center"> | |
| <div class="space-y-8 animate-fade-in"> | |
| <!-- Badge --> | |
| <div class="inline-block px-4 py-2 bg-cyan-500/10 rounded-full border border-cyan-500/20"> | |
| <span class="text-cyan-400 text-sm font-semibold uppercase tracking-wider">🚀 Inovação em Tecnologia</span> | |
| </div> | |
| <!-- Main Heading --> | |
| <h1 class="text-5xl sm:text-6xl md:text-7xl lg:text-8xl font-bold leading-tight"> | |
| Do sonho<br> | |
| <span class="gradient-text">à realidade lógica</span> | |
| </h1> | |
| <!-- Subtitle --> | |
| <p class="text-lg sm:text-xl md:text-2xl text-gray-400 max-w-3xl mx-auto leading-relaxed"> | |
| Transformamos ideias em soluções digitais de excelência. | |
| <span class="text-cyan-400 font-semibold">Desenvolvimento full-stack</span> com as tecnologias mais modernas. | |
| </p> | |
| <!-- CTA Buttons --> | |
| <div class="flex flex-col sm:flex-row gap-4 justify-center items-center"> | |
| <a href="/contato" class="bg-linear-to-r from-cyan-500 to-blue-600 hover:from-cyan-600 hover:to-blue-700 text-white font-bold py-4 px-8 rounded-xl transition-all duration-300 hover-lift text-lg"> | |
| Começar Projeto | |
| <i data-lucide="arrow-right" class="inline w-5 h-5 ml-2"></i> | |
| </a> | |
| <a href="/projetos" class="border border-cyan-500/30 text-cyan-400 hover:bg-cyan-500/10 font-semibold py-4 px-8 rounded-xl transition-all duration-300 text-lg"> | |
| Ver Projetos | |
| </a> | |
| </div> | |
| <!-- Stats --> | |
| <div class="grid grid-cols-2 md:grid-cols-4 gap-8 mt-16 max-w-4xl mx-auto"> | |
| <div class="text-center"> | |
| <div class="text-3xl md:text-4xl font-bold gradient-text" id="projects-count">{{ stats.projects }}+</div> | |
| <p class="text-gray-400 text-sm md:text-base">Projetos Entregues</p> | |
| </div> | |
| <div class="text-center"> | |
| <div class="text-3xl md:text-4xl font-bold gradient-text">{{ stats.contacts }}</div> | |
| <p class="text-gray-400 text-sm md:text-base">Clientes Satisfeitos</p> | |
| </div> | |
| <div class="text-center"> | |
| <div class="text-3xl md:text-4xl font-bold gradient-text">{{ stats.satisfaction }}★</div> | |
| <p class="text-gray-400 text-sm md:text-base">Satisfação</p> | |
| </div> | |
| <div class="text-center"> | |
| <div class="text-3xl md:text-4xl font-bold gradient-text">24/7</div> | |
| <p class="text-gray-400 text-sm md:text-base">Suporte</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Scroll indicator --> | |
| <div class="absolute bottom-8 left-1/2 -translate-x-1/2 animate-bounce-gentle"> | |
| <i data-lucide="chevron-down" class="w-8 h-8 text-cyan-400"></i> | |
| </div> | |
| </section> | |
| <!-- SERVICES SECTION --> | |
| <section class="py-20 lg:py-32 relative"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="text-center mb-16"> | |
| <div class="inline-block px-4 py-2 bg-cyan-500/10 rounded-full border border-cyan-500/20 mb-4"> | |
| <span class="text-cyan-400 text-sm font-semibold uppercase tracking-wider">Nossos Serviços</span> | |
| </div> | |
| <h2 class="text-3xl sm:text-4xl md:text-5xl font-bold text-white mb-6"> | |
| Soluções <span class="gradient-text">Tecnológicas Completas</span> | |
| </h2> | |
| <p class="text-gray-400 text-lg max-w-2xl mx-auto"> | |
| Do conceito à implementação, oferecemos serviços end-to-end para transformar seu negócio digital. | |
| </p> | |
| </div> | |
| <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8"> | |
| <!-- Service 1 --> | |
| <div class="glass rounded-2xl p-8 hover-lift"> | |
| <div class="w-16 h-16 bg-cyan-500/20 rounded-2xl flex items-center justify-center mb-6"> | |
| <i data-lucide="code" class="w-8 h-8 text-cyan-400"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-white mb-4">Desenvolvimento Web</h3> | |
| <p class="text-gray-400 mb-6">Aplicações web modernas com React, Next.js, PHP e Python. Performance e escalabilidade garantidas.</p> | |
| <div class="flex flex-wrap gap-2"> | |
| <span class="px-3 py-1 bg-cyan-500/10 text-cyan-400 rounded-full text-sm">React</span> | |
| <span class="px-3 py-1 bg-cyan-500/10 text-cyan-400 rounded-full text-sm">Next.js</span> | |
| <span class="px-3 py-1 bg-cyan-500/10 text-cyan-400 rounded-full text-sm">PHP</span> | |
| </div> | |
| </div> | |
| <!-- Service 2 --> | |
| <div class="glass rounded-2xl p-8 hover-lift"> | |
| <div class="w-16 h-16 bg-blue-500/20 rounded-2xl flex items-center justify-center mb-6"> | |
| <i data-lucide="smartphone" class="w-8 h-8 text-blue-400"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-white mb-4">Aplicativos Mobile</h3> | |
| <p class="text-gray-400 mb-6">Apps nativos e multiplataforma com Flutter e React Native. UX excepcional em todas as plataformas.</p> | |
| <div class="flex flex-wrap gap-2"> | |
| <span class="px-3 py-1 bg-blue-500/10 text-blue-400 rounded-full text-sm">Flutter</span> | |
| <span class="px-3 py-1 bg-blue-500/10 text-blue-400 rounded-full text-sm">React Native</span> | |
| <span class="px-3 py-1 bg-blue-500/10 text-blue-400 rounded-full text-sm">Firebase</span> | |
| </div> | |
| </div> | |
| <!-- Service 3 --> | |
| <div class="glass rounded-2xl p-8 hover-lift"> | |
| <div class="w-16 h-16 bg-purple-500/20 rounded-2xl flex items-center justify-center mb-6"> | |
| <i data-lucide="brain" class="w-8 h-8 text-purple-400"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-white mb-4">Inteligência Artificial</h3> | |
| <p class="text-gray-400 mb-6">Soluções de IA personalizadas com Python, TensorFlow e OpenAI. Automação e insights inteligentes.</p> | |
| <div class="flex flex-wrap gap-2"> | |
| <span class="px-3 py-1 bg-purple-500/10 text-purple-400 rounded-full text-sm">Python</span> | |
| <span class="px-3 py-1 bg-purple-500/10 text-purple-400 rounded-full text-sm">TensorFlow</span> | |
| <span class="px-3 py-1 bg-purple-500/10 text-purple-400 rounded-full text-sm">OpenAI</span> | |
| </div> | |
| </div> | |
| <!-- Service 4 --> | |
| <div class="glass rounded-2xl p-8 hover-lift"> | |
| <div class="w-16 h-16 bg-green-500/20 rounded-2xl flex items-center justify-center mb-6"> | |
| <i data-lucide="cloud" class="w-8 h-8 text-green-400"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-white mb-4">Cloud & DevOps</h3> | |
| <p class="text-gray-400 mb-6">Infraestrutura escalável com Docker, AWS e Railway. Deploy automatizado e monitoramento 24/7.</p> | |
| <div class="flex flex-wrap gap-2"> | |
| <span class="px-3 py-1 bg-green-500/10 text-green-400 rounded-full text-sm">Docker</span> | |
| <span class="px-3 py-1 bg-green-500/10 text-green-400 rounded-full text-sm">AWS</span> | |
| <span class="px-3 py-1 bg-green-500/10 text-green-400 rounded-full text-sm">Railway</span> | |
| </div> | |
| </div> | |
| <!-- Service 5 --> | |
| <div class="glass rounded-2xl p-8 hover-lift"> | |
| <div class="w-16 h-16 bg-orange-500/20 rounded-2xl flex items-center justify-center mb-6"> | |
| <i data-lucide="database" class="w-8 h-8 text-orange-400"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-white mb-4">Consultoria Técnica</h3> | |
| <p class="text-gray-400 mb-6">Análise de sistemas, arquitetura de software e otimização de performance. Expertise técnica completa.</p> | |
| <div class="flex flex-wrap gap-2"> | |
| <span class="px-3 py-1 bg-orange-500/10 text-orange-400 rounded-full text-sm">Arquitetura</span> | |
| <span class="px-3 py-1 bg-orange-500/10 text-orange-400 rounded-full text-sm">Performance</span> | |
| <span class="px-3 py-1 bg-orange-500/10 text-orange-400 rounded-full text-sm">Segurança</span> | |
| </div> | |
| </div> | |
| <!-- Service 6 --> | |
| <div class="glass rounded-2xl p-8 hover-lift"> | |
| <div class="w-16 h-16 bg-pink-500/20 rounded-2xl flex items-center justify-center mb-6"> | |
| <i data-lucide="users" class="w-8 h-8 text-pink-400"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-white mb-4">Suporte & Manutenção</h3> | |
| <p class="text-gray-400 mb-6">Suporte técnico contínuo, atualizações de segurança e melhorias constantes. Seu sistema sempre atualizado.</p> | |
| <div class="flex flex-wrap gap-2"> | |
| <span class="px-3 py-1 bg-pink-500/10 text-pink-400 rounded-full text-sm">24/7</span> | |
| <span class="px-3 py-1 bg-pink-500/10 text-pink-400 rounded-full text-sm">Monitoramento</span> | |
| <span class="px-3 py-1 bg-pink-500/10 text-pink-400 rounded-full text-sm">Updates</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- CTA SECTION --> | |
| <section class="py-20 lg:py-32 relative"> | |
| <div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center"> | |
| <div class="glass rounded-3xl p-12 lg:p-16"> | |
| <h2 class="text-3xl sm:text-4xl md:text-5xl font-bold text-white mb-6"> | |
| Pronto para <span class="gradient-text">transformar</span> sua ideia<br> | |
| em realidade? | |
| </h2> | |
| <p class="text-gray-400 text-lg mb-8 max-w-2xl mx-auto"> | |
| Vamos conversar sobre seu projeto. Nossa equipe está pronta para ajudar você a alcançar seus objetivos tecnológicos. | |
| </p> | |
| <div class="flex flex-col sm:flex-row gap-4 justify-center"> | |
| <a href="/contato" class="bg-linear-to-r from-cyan-500 to-blue-600 hover:from-cyan-600 hover:to-blue-700 text-white font-bold py-4 px-8 rounded-xl transition-all duration-300 hover-lift"> | |
| Falar com Especialista | |
| <i data-lucide="message-circle" class="inline w-5 h-5 ml-2"></i> | |
| </a> | |
| <a href="https://wa.me/244900000000" target="_blank" class="border border-cyan-500/30 text-cyan-400 hover:bg-cyan-500/10 font-semibold py-4 px-8 rounded-xl transition-all duration-300"> | |
| <i data-lucide="phone" class="inline w-5 h-5 ml-2"></i> | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- FOOTER --> | |
| <footer class="relative bg-slate-950/95 backdrop-blur-xl border-t border-white/5 mt-20 overflow-hidden"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16"> | |
| <div class="grid md:grid-cols-4 gap-8"> | |
| <!-- Company Info --> | |
| <div> | |
| <div class="flex items-center space-x-3 mb-6"> | |
| <div class="w-12 h-12 rounded-xl overflow-hidden bg-linear-to-br from-cyan-500 to-blue-600 p-0.5"> | |
| <img src="/assets/logo.jpeg" alt="SoftEdge Logo" class="w-full h-full object-cover rounded-xl"> | |
| </div> | |
| <span class="text-2xl font-bold gradient-text">SoftEdge</span> | |
| </div> | |
| <p class="text-gray-400 text-sm leading-relaxed"> | |
| Começamos com um sonho. Hoje desenvolvemos realidades lógicas e softwares mais amáveis. | |
| </p> | |
| </div> | |
| <!-- Quick Links --> | |
| <div> | |
| <h3 class="text-white font-semibold mb-4">Navegação</h3> | |
| <div class="space-y-2"> | |
| <a href="/" class="block text-gray-400 hover:text-cyan-400 transition-colors text-sm">Início</a> | |
| <a href="/sobre" class="block text-gray-400 hover:text-cyan-400 transition-colors text-sm">Sobre</a> | |
| <a href="/servicos" class="block text-gray-400 hover:text-cyan-400 transition-colors text-sm">Serviços</a> | |
| <a href="/projetos" class="block text-gray-400 hover:text-cyan-400 transition-colors text-sm">Projetos</a> | |
| <a href="/contato" class="block text-gray-400 hover:text-cyan-400 transition-colors text-sm">Contato</a> | |
| </div> | |
| </div> | |
| <!-- Services --> | |
| <div> | |
| <h3 class="text-white font-semibold mb-4">Serviços</h3> | |
| <div class="space-y-2"> | |
| <a href="/servicos" class="block text-gray-400 hover:text-cyan-400 transition-colors text-sm">Desenvolvimento Web</a> | |
| <a href="/servicos" class="block text-gray-400 hover:text-cyan-400 transition-colors text-sm">Apps Mobile</a> | |
| <a href="/servicos" class="block text-gray-400 hover:text-cyan-400 transition-colors text-sm">Inteligência Artificial</a> | |
| <a href="/servicos" class="block text-gray-400 hover:text-cyan-400 transition-colors text-sm">Cloud & DevOps</a> | |
| </div> | |
| </div> | |
| <!-- Contact --> | |
| <div> | |
| <h3 class="text-white font-semibold mb-4">Contato</h3> | |
| <div class="space-y-3"> | |
| <a href="mailto:softedgecorporation@gmail.com" class="flex items-center text-gray-400 hover:text-cyan-400 transition-colors text-sm"> | |
| <i data-lucide="mail" class="w-4 h-4 mr-2"></i> | |
| </a> | |
| <a href="https://wa.me/244900000000" target="_blank" class="flex items-center text-gray-400 hover:text-cyan-400 transition-colors text-sm"> | |
| <i data-lucide="message-circle" class="w-4 h-4 mr-2"></i> | |
| </a> | |
| <div class="flex items-center text-gray-400 text-sm"> | |
| <i data-lucide="map-pin" class="w-4 h-4 mr-2"></i> | |
| Luanda, Angola | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="border-t border-white/5 mt-12 pt-8 text-center"> | |
| <p class="text-gray-400 text-sm"> | |
| © 2025 <span class="text-white font-semibold">SoftEdge Corporation</span>. Todos os direitos reservados. | |
| </p> | |
| </div> | |
| </div> | |
| </footer> | |
| <!-- SCRIPTS --> | |
| <script src="https://unpkg.com/lucide@latest"></script> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Initialize Lucide icons | |
| lucide.createIcons(); | |
| // Mobile menu toggle | |
| const mobileMenuButton = document.getElementById('mobile-menu-button'); | |
| const mobileMenu = document.getElementById('mobile-menu'); | |
| mobileMenuButton.addEventListener('click', function() { | |
| mobileMenu.classList.toggle('hidden'); | |
| }); | |
| // Fetch and update stats | |
| fetch('/api/stats') | |
| .then(response => response.json()) | |
| .then(data => { | |
| document.getElementById('projects-count').textContent = data.projects + '+'; | |
| }) | |
| .catch(error => console.log('Stats not available yet')); | |
| // Smooth scrolling | |
| document.querySelectorAll('a[href^="#"]').forEach(anchor => { | |
| anchor.addEventListener('click', function (e) { | |
| e.preventDefault(); | |
| const target = document.querySelector(this.getAttribute('href')); | |
| if (target) { | |
| target.scrollIntoView({ | |
| behavior: 'smooth', | |
| block: 'start' | |
| }); | |
| } | |
| }); | |
| }); | |
| // Intersection Observer for animations | |
| const observerOptions = { | |
| threshold: 0.1, | |
| rootMargin: '0px 0px -100px 0px' | |
| }; | |
| const observer = new IntersectionObserver((entries) => { | |
| entries.forEach(entry => { | |
| if (entry.isIntersecting) { | |
| entry.target.style.opacity = '1'; | |
| entry.target.style.transform = 'translateY(0)'; | |
| } | |
| }); | |
| }, observerOptions); | |
| // Observe sections | |
| document.querySelectorAll('section > div, .glass').forEach(el => { | |
| el.style.opacity = '0'; | |
| el.style.transform = 'translateY(30px)'; | |
| el.style.transition = 'opacity 0.8s ease, transform 0.8s ease'; | |
| observer.observe(el); | |
| }); | |
| }); | |
| </script> | |
| </body> | |
| </html> | |