# 🎄 LeafBox Technologies - Futuristic Christmas Website **Where Technology Meets the Magic of Christmas ✨** A stunning, interactive Christmas-themed website that blends cutting-edge digital innovation with holiday warmth. Built with vanilla HTML, CSS, and JavaScript - no external frameworks required. --- ## 🌟 Features ### 🎨 Visual Design - **Dark Futuristic Theme** with midnight blue gradients and glowing neon effects - **Light Theme Toggle** for frosty white & silver aesthetic - **Neon Color Palette**: Leaf Green (#00FF99), Cyber Gold (#FFD700), Ice Blue (#00E5FF) - **Glowing Effects**: CSS box-shadows and text-shadows create holographic appearances - **Modern Typography**: Orbitron for headers, Exo 2 for body text ### ✨ Interactive Elements #### Hero Section - **Digital Christmas Tree**: Canvas-based animated tree constructed from glowing particles and lines - Animated particle "snow" using Canvas API with neon colors - Flowing data-stream background effects - Fade-in animations on page load #### About Section - Innovation Timeline - **Interactive Timeline** with 6 company milestones (2020-2025) - LED-style year badges with glowing effects - Pulsing ring animations on timeline markers - Animated Christmas ornaments (green, gold, blue) on each milestone - Hover effects reveal card details with smooth transitions #### Services Section - Digital Gift Boxes - **6 Service Cards**: AI Solutions, Cloud Infrastructure, Blockchain, IoT, Quantum Computing, Cybersecurity - **Holographic Hover Effect**: Cards transform into 3D projections on hover - Description reveal animation (appears like unwrapping a gift) - Particle burst effects on mouse enter - Glowing borders and radial gradient effects #### Contact Section - **Animated Greeting Text** with color-shifting effect - **Neon Contact Button** with pulsing glow animation - Contact information with SVG icons - Ripple effect on button click #### Footer - **Countdown Timer** to New Year 2026 with LED-style digital display - 7-segment clock font simulation - Blinking divider colons - Social media links with hover animations - Glowing footer snow particles ### 🎮 Interactive Features #### Theme Toggle - **Dark/Light Mode** switcher in top-right corner - Smooth color transitions - Theme preference saved to localStorage - Light theme uses frosty whites and silvers #### Sound Toggle - **Background Chime** using Web Audio API - Christmas bell-like sound effect - Plays gentle chime every 5 seconds when enabled - Visual mute/unmute indicator #### Easter Eggs 🎁 Multiple ways to discover hidden messages: 1. **Triple-click** the Cybersecurity service card 2. Click the **"Privacy"** link in footer 3. Use keyboard shortcut: **Ctrl+Shift+X** 4. Console hints for developers Reveals a festive message from the LeafBox team! ### 📱 Responsive Design - **Desktop (1200px+)**: Full experience with all animations - **Tablet (768px-1199px)**: Optimized 2-column layouts - **Mobile (320px-767px)**: Single-column stack, simplified animations - Touch-friendly interactions on mobile devices - Performance optimizations for low-end devices ### ⚡ Performance Optimizations - **Reduced particle count** on mobile devices - **Simplified animations** on low-end hardware (< 4 CPU cores) - **Canvas-based animations** instead of DOM manipulation for better performance - **Intersection Observer** for scroll-triggered animations - **Visibility API** to pause animations when tab is hidden - **Prefers-reduced-motion** support for accessibility ### 🎯 Accessibility - Semantic HTML structure - ARIA labels on interactive elements - Keyboard navigation support - Focus indicators on interactive elements - Reduced motion support for users with vestibular disorders - High contrast ratios (WCAG compliant) --- ## 🚀 Technologies Used - **HTML5**: Semantic markup, Canvas API - **CSS3**: Custom properties, Grid, Flexbox, animations, gradients - **JavaScript ES6+**: Classes, Promises, Intersection Observer, Web Audio API - **No External Dependencies**: Pure vanilla JavaScript - **Google Fonts**: Orbitron, Exo 2 --- ## 📁 File Structure ``` /workspace/ ├── index.html # Main HTML structure ├── styles.css # Complete styling and animations (1061 lines) ├── script.js # JavaScript interactions (732 lines) └── README.md # This file ``` --- ## 🎨 Design System ### Color Variables ```css /* Dark Theme */ --leaf-green: #00FF99 --cyber-gold: #FFD700 --ice-blue: #00E5FF --bg-main: linear-gradient(160deg, #020617 0%, #0A132C 100%) --surface-primary: #111827 --text-primary: #E4E4E7 /* Light Theme */ --leaf-green: #00B377 --cyber-gold: #D4A500 --ice-blue: #0096B3 --bg-main: linear-gradient(160deg, #E8F4FF 0%, #F0F9FF 100%) ``` ### Spacing System (4px base grid) - `space-xs`: 8px - `space-sm`: 16px - `space-md`: 24px - `space-lg`: 32px - `space-xl`: 64px - `space-xxl`: 96px ### Typography Scale - **H1 (Hero)**: 64px / 700 weight - **H2 (Sections)**: 48px / 700 weight - **H3 (Cards)**: 24px / 500 weight - **Body**: 18px / 400 weight - **Small**: 14px / 400 weight --- ## 🎭 Animations ### CSS Animations - `fadeInUp`: Entrance animation for hero content - `pulse`: Pulsing glow effect for important elements - `pulseRing`: Expanding ring animation on timeline markers - `blink`: Countdown timer divider blink - `dataStream`: Vertical flowing data lines - `colorShift`: Hue rotation for greeting text ### Canvas Animations 1. **Particle Snow**: 100 particles (50 on mobile) falling with varying speeds 2. **Digital Christmas Tree**: 150+ particles animating into tree shape with connecting lines 3. **Interactive Particle Bursts**: Created on service card hover ### JavaScript Animations - Countdown timer with real-time updates - Smooth scroll navigation - Cursor trail effect (desktop only) - Contact button ripple effect - Modal fade-in/scale-in --- ## 🎄 Special Effects ### Glowing Effects ```css /* Primary glow (green) */ box-shadow: 0 0 24px rgba(0, 255, 153, 0.3) /* Hover glow (blue) */ box-shadow: 0 0 32px rgba(0, 229, 255, 0.4) /* Gold glow (star) */ box-shadow: 0 0 20px rgba(255, 215, 0, 0.4) ``` ### Holographic Card Effect - CSS 3D transforms: `perspective(500px) rotateY(15deg)` - Icon translates up and scales on hover - Description fades in with height animation - Radial gradient "spotlight" effect --- ## 🎮 Interactive Components ### SnowCanvas Class - Creates and animates falling snow particles - Each particle has unique size, speed, opacity, and color - Automatically resets particles when they leave viewport - Responsive particle count based on screen size ### DigitalTree Class - Generates 150+ particles arranged in Christmas tree shape - Animated construction sequence (particles fly in from center) - Connecting lines between particles for circuit-board aesthetic - Rotating golden star at top - Wooden trunk at base ### CountdownTimer Class - Calculates time remaining until January 1, 2026 - Updates every second - LED-style digit display with glow effects - Formatted as DD:HH:MM:SS ### ThemeToggle Class - Switches between dark and light themes - Saves preference to localStorage - Smooth color transitions on all elements - Icon switches between moon and sun ### SoundToggle Class - Uses Web Audio API to generate Christmas bell sounds - Oscillator frequency sweeps for bell effect - Plays chime every 5 seconds when enabled - Visual mute/unmute indicator ### EasterEgg Class - Multiple trigger methods - Modal overlay with festive message - Backdrop blur effect - Close on button, outside click, or ESC key --- ## 🔧 How to Use ### Local Development 1. Open `index.html` in a modern web browser 2. All files must be in the same directory 3. No build process required - pure vanilla code ### Customization #### Change Company Name Edit in `index.html`: ```html Your Company Name ``` #### Modify Color Scheme Edit CSS variables in `styles.css`: ```css :root { --leaf-green: #YOUR_COLOR; --cyber-gold: #YOUR_COLOR; --ice-blue: #YOUR_COLOR; } ``` #### Adjust Timeline Milestones Edit timeline items in `index.html`: ```html

Your Milestone

Your description

``` #### Change Services Edit service cards in `index.html`: ```html

Service Title

Service description

``` --- ## 🎁 Easter Egg Hints For curious developers: 1. Check the browser console for hints 2. Try keyboard shortcuts 3. Click on security-related elements 4. Explore the footer links --- ## 📊 Browser Support - ✅ Chrome 90+ - ✅ Firefox 88+ - ✅ Safari 14+ - ✅ Edge 90+ - ⚠️ IE 11: Not supported (uses modern CSS and ES6+) --- ## 🎨 Design Philosophy **"Where Technology Meets the Magic of Christmas"** This website embodies the fusion of: - **Innovation**: Cutting-edge web technologies and effects - **Celebration**: Christmas warmth and holiday spirit - **Performance**: Optimized animations and responsive design - **Accessibility**: Inclusive experience for all users - **Interactivity**: Engaging, discoverable features The dark futuristic aesthetic with glowing neon effects creates a cyberpunk-meets-holiday atmosphere, making the website feel both advanced and festive. --- ## 📝 Credits **Design & Development**: MiniMax Agent **Company**: LeafBox Technologies **Theme**: Futuristic Christmas 2025 **License**: MIT (modify and use freely) --- ## 🎊 Special Notes - All animations are GPU-accelerated for smooth performance - Canvas elements use `requestAnimationFrame` for optimal frame rates - Intersection Observer ensures animations only run when visible - Web Audio API creates sounds without external files - LocalStorage preserves user preferences across sessions --- ## 🌟 Future Enhancements (Optional) - Add WebGL for more advanced 3D effects - Implement progressive loading for larger datasets - Add service worker for offline functionality - Create backend integration for contact form - Add more interactive mini-games or features - Implement A/B testing for different color schemes --- **Merry Christmas from LeafBox Technologies! 🎄✨** *May your code compile on the first try, your servers stay up during the holidays, and your coffee be strong!* --- ## 🐛 Troubleshooting ### Animations not working - Ensure JavaScript is enabled - Check browser console for errors - Verify all three files are in the same directory ### Canvas not displaying - Update to a modern browser - Check if hardware acceleration is enabled - Reduce particle counts in `script.js` CONFIG object ### Performance issues - Disable sound toggle - Switch to light theme (fewer shadows) - Reduce particle counts in CONFIG - Close other browser tabs ### Easter egg not working - Check browser console for hints - Try different trigger methods - Ensure JavaScript is not blocked --- *Built with ❤️ and ☕ by the LeafBox Technologies team*