Electronics Shop Landing Page Template
Preview
Edit
Download
Run
Download Options
HTML File
Download as .html file
CSS File
Download as .css file
JavaScript File
Download as .js file
Combined HTML
All code in one HTML file
Project ZIP
All files in a ZIP archive
Cancel
HTML
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Voltix - Futuristic Electronics</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.css"> </head> <body> <!-- Header Section --> <header id="header"> <a href="#" class="logo"><i class="fas fa-bolt"></i>Voltix</a> <nav> <ul class="nav-links"> <li><a href="#home">Home</a></li> <li><a href="#products">Products</a></li> <li><a href="#features">Features</a></li> <li><a href="#gallery">Gallery</a></li> <li><a href="#about">About</a></li> <li><a href="#contact">Contact</a></li> </ul> </nav> <div class="header-actions"> <i class="fas fa-search"></i> <i class="fas fa-user"></i> <i class="fas fa-shopping-cart"></i> <div class="menu-toggle"> <i class="fas fa-bars"></i> </div> </div> </header> <!-- Hero Section --> <section class="hero" id="home"> <div class="hero-content"> <h1>Experience the <span>Future</span> of Technology</h1> <p>Discover cutting-edge electronics that redefine innovation. Our premium collection combines sleek design with powerful performance to elevate your digital lifestyle.</p> <div class="hero-btns"> <a href="#" class="btn btn-primary">Shop Now</a> <a href="#" class="btn btn-secondary">Explore</a> </div> </div> <img src="https://images.unsplash.com/photo-1517336714731-489689fd1ca8?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1026&q=80" alt="Premium Electronics" class="hero-image"> </section> <!-- Featured Products Section --> <section class="section" id="products"> <h2 class="section-title">Featured Products</h2> <div class="showcase-container"> <div class="swiper"> <div class="swiper-wrapper"> <div class="swiper-slide"> <div class="showcase-card glass"> <span class="showcase-category">SMARTPHONE</span> <img src="https://images.unsplash.com/photo-1601784551446-20c9e07cdbdb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=967&q=80" alt="Smartphone" class="showcase-img"> <h3 class="showcase-title">Quantum X Pro</h3> <p class="showcase-desc">Next-gen smartphone with holographic display and AI assistant</p> <span class="showcase-price">$999</span> </div> </div> <div class="swiper-slide"> <div class="showcase-card glass"> <span class="showcase-category">LAPTOP</span> <img src="https://images.unsplash.com/photo-1593642632823-8f785ba67e45?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1032&q=80" alt="Laptop" class="showcase-img"> <h3 class="showcase-title">Nebula Ultra</h3> <p class="showcase-desc">Thinest and lightest professional laptop with 32GB RAM</p> <span class="showcase-price">$1,799</span> </div> </div> <div class="swiper-slide"> <div class="showcase-card glass"> <span class="showcase-category">HEADPHONES</span> <img src="https://images.unsplash.com/photo-1505740420928-5e560c06d30e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Headphones" class="showcase-img"> <h3 class="showcase-title">Aurora Beats</h3> <p class="showcase-desc">Noise-cancelling wireless headphones with 3D sound</p> <span class="showcase-price">$349</span> </div> </div> <div class="swiper-slide"> <div class="showcase-card glass"> <span class="showcase-category">SMARTWATCH</span> <img src="https://images.unsplash.com/photo-1523275335684-37898b6baf30?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1099&q=80" alt="Smartwatch" class="showcase-img"> <h3 class="showcase-title">Pulse V2</h3> <p class="showcase-desc">Health monitoring smartwatch with 30-day battery</p> <span class="showcase-price">$299</span> </div> </div> <div class="swiper-slide"> <div class="showcase-card glass"> <span class="showcase-category">DRONE</span> <img src="https://images.unsplash.com/photo-1507582020474-9a35b7d455d9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Drone" class="showcase-img"> <h3 class="showcase-title">Sky Voyager</h3> <p class="showcase-desc">4K camera drone with 5-mile range and auto-follow</p> <span class="showcase-price">$1,299</span> </div> </div> </div> <div class="swiper-button-next"></div> <div class="swiper-button-prev"></div> </div> </div> </section> <!-- Card Luxe UI Section --> <section class="section luxe-section" id="features"> <h2 class="section-title">Why Choose Us</h2> <div class="luxe-container"> <div class="luxe-card glass"> <i class="fas fa-shield-alt luxe-icon"></i> <h3 class="luxe-title">Premium Quality</h3> <p class="luxe-desc">All our products undergo rigorous testing to ensure they meet the highest standards of quality and durability.</p> <a href="#" class="luxe-link">Learn more <i class="fas fa-arrow-right"></i></a> </div> <div class="luxe-card glass"> <i class="fas fa-truck luxe-icon"></i> <h3 class="luxe-title">Fast Delivery</h3> <p class="luxe-desc">Get your order delivered within 24 hours in major cities with our express shipping service.</p> <a href="#" class="luxe-link">Learn more <i class="fas fa-arrow-right"></i></a> </div> <div class="luxe-card glass"> <i class="fas fa-headset luxe-icon"></i> <h3 class="luxe-title">24/7 Support</h3> <p class="luxe-desc">Our expert support team is available round the clock to assist you with any queries.</p> <a href="#" class="luxe-link">Learn more <i class="fas fa-arrow-right"></i></a> </div> </div> </section> <!-- Velvet Caption Reveal Section --> <section class="section velvet-section" id="gallery"> <h2 class="section-title">Latest Collections</h2> <div class="velvet-container"> <div class="velvet-card"> <img src="https://images.unsplash.com/photo-1516035069371-29a1b244cc32?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1528&q=80" alt="Gaming Setup" class="velvet-img"> <div class="velvet-overlay"> <h3 class="velvet-title">Gaming Universe</h3> <p class="velvet-desc">Immerse yourself in our high-performance gaming gear designed for professionals.</p> <a href="#" class="btn btn-primary">Explore</a> </div> </div> <div class="velvet-card"> <img src="https://images.unsplash.com/photo-1555774698-0b77e0d5fac6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Audio Collection" class="velvet-img"> <div class="velvet-overlay"> <h3 class="velvet-title">Audio Experience</h3> <p class="velvet-desc">Premium sound systems that deliver crystal clear audio for every occasion.</p> <a href="#" class="btn btn-primary">Explore</a> </div> </div> <div class="velvet-card"> <img src="https://images.unsplash.com/photo-1468495244123-6c6c332eeece?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1472&q=80" alt="Smart Home" class="velvet-img"> <div class="velvet-overlay"> <h3 class="velvet-title">Smart Home</h3> <p class="velvet-desc">Transform your living space with our intelligent home automation solutions.</p> <a href="#" class="btn btn-primary">Explore</a> </div> </div> </div> </section> <!-- Elegant Slide Reveal Section --> <section class="section elegant-section" id="about"> <h2 class="section-title">Our Innovation</h2> <div class="elegant-container"> <div class="elegant-item"> <img src="https://images.unsplash.com/photo-1592155931584-901ac15763e3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Technology" class="elegant-img"> <div class="elegant-content"> <h3 class="elegant-title">Cutting-Edge Technology</h3> <p class="elegant-desc">We partner with leading tech innovators to bring you the most advanced electronics before they hit the mainstream market. Our R&D team works tirelessly to identify emerging trends and technologies.</p> <a href="#" class="btn btn-primary">Read More</a> </div> </div> <div class="elegant-item"> <img src="https://images.unsplash.com/photo-1522542550221-31fd19575a2d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Sustainability" class="elegant-img"> <div class="elegant-content"> <h3 class="elegant-title">Sustainable Future</h3> <p class="elegant-desc">Committed to environmental responsibility, we've implemented eco-friendly packaging and energy-efficient products. Our recycling program ensures responsible disposal of electronic waste.</p> <a href="#" class="btn btn-primary">Read More</a> </div> </div> <div class="elegant-item"> <img src="https://images.unsplash.com/photo-1551434678-e076c223a692?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Customer Service" class="elegant-img"> <div class="elegant-content"> <h3 class="elegant-title">Exceptional Service</h3> <p class="elegant-desc">Our customer-first approach means you get personalized recommendations, extended warranties, and hassle-free returns. Join our VIP program for exclusive benefits and early access to new products.</p> <a href="#" class="btn btn-primary">Read More</a> </div> </div> </div> </section> <!-- Newsletter Section --> <section class="section newsletter-section"> <h2 class="newsletter-title">Stay Updated</h2> <p class="newsletter-desc">Subscribe to our newsletter for exclusive deals, new product launches, and tech insights delivered straight to your inbox.</p> <form class="newsletter-form"> <input type="email" placeholder="Enter your email" class="newsletter-input" required> <button type="submit" class="newsletter-btn">Subscribe</button> </form> </section> <!-- Footer Section --> <footer id="contact"> <div class="footer-container"> <div class="footer-col"> <h3>Voltix</h3> <p>Redefining technology with innovative electronics that empower your digital lifestyle.</p> <div class="social-links"> <a href="#"><i class="fab fa-facebook-f"></i></a> <a href="#"><i class="fab fa-twitter"></i></a> <a href="#"><i class="fab fa-instagram"></i></a> <a href="#"><i class="fab fa-linkedin-in"></i></a> </div> </div> <div class="footer-col"> <h3>Shop</h3> <ul class="footer-links"> <li><a href="#">Smartphones</a></li> <li><a href="#">Laptops</a></li> <li><a href="#">Audio</a></li> <li><a href="#">Wearables</a></li> <li><a href="#">Accessories</a></li> </ul> </div> <div class="footer-col"> <h3>Support</h3> <ul class="footer-links"> <li><a href="#">Contact Us</a></li> <li><a href="#">FAQs</a></li> <li><a href="#">Shipping</a></li> <li><a href="#">Returns</a></li> <li><a href="#">Warranty</a></li> </ul> </div> <div class="footer-col"> <h3>Company</h3> <ul class="footer-links"> <li><a href="#">About Us</a></li> <li><a href="#">Careers</a></li> <li><a href="#">Blog</a></li> <li><a href="#">Press</a></li> <li><a href="#">Investors</a></li> </ul> </div> </div> <div class="footer-bottom"> <p>© 2023 Voltix Electronics. All rights reserved. | <a href="#">Privacy Policy</a> | <a href="#">Terms of Service</a></p> </div> </footer> <script src="https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.js"></script> </body> </html>
CSS
:root { --primary: #FFD700; --primary-dark: #FFC000; --primary-light: #FFF200; --dark: #121212; --light: #f8f8f8; --gray: #2a2a2a; --glass: rgba(255, 255, 255, 0.05); --glass-border: rgba(255, 255, 255, 0.1); --glass-highlight: rgba(255, 255, 255, 0.2); } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; } body { background-color: var(--dark); color: var(--light); overflow-x: hidden; } /* Glassmorphism Effect */ .glass { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-border); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); border-radius: 12px; } /* Header Section */ header { position: fixed; top: 0; left: 0; width: 100%; padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; z-index: 1000; transition: all 0.3s ease; } header.scrolled { background: rgba(18, 18, 18, 0.9); padding: 15px 5%; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3); } .logo { font-size: 28px; font-weight: 700; color: var(--primary); text-decoration: none; display: flex; align-items: center; } .logo i { margin-right: 10px; font-size: 32px; } .nav-links { display: flex; gap: 30px; } .nav-links a { color: var(--light); text-decoration: none; font-weight: 500; font-size: 16px; position: relative; transition: all 0.3s ease; } .nav-links a:hover { color: var(--primary); } .nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s ease; } .nav-links a:hover::after { width: 100%; } .header-actions { display: flex; gap: 20px; align-items: center; } .header-actions i { font-size: 20px; color: var(--light); cursor: pointer; transition: all 0.3s ease; } .header-actions i:hover { color: var(--primary); transform: translateY(-3px); } .menu-toggle { display: none; font-size: 24px; cursor: pointer; } /* Hero Section */ .hero { height: 100vh; display: flex; align-items: center; padding: 0 10%; position: relative; overflow: hidden; } .hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 80vh; height: 80vh; background: radial-gradient(circle, var(--primary), transparent 70%); opacity: 0.2; z-index: -1; animation: pulse 8s infinite alternate; } @keyframes pulse { 0% { transform: scale(1); opacity: 0.2; } 100% { transform: scale(1.2); opacity: 0.3; } } .hero-content { max-width: 600px; } .hero h1 { font-size: 56px; font-weight: 800; margin-bottom: 20px; line-height: 1.2; } .hero h1 span { color: var(--primary); position: relative; } .hero h1 span::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 5px; background: var(--primary); z-index: -1; opacity: 0.5; } .hero p { font-size: 18px; margin-bottom: 30px; line-height: 1.6; opacity: 0.9; } .hero-btns { display: flex; gap: 20px; } .btn { padding: 12px 30px; border-radius: 30px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; display: inline-block; } .btn-primary { background: var(--primary); color: var(--dark); box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3); } .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4); } .btn-secondary { border: 2px solid var(--primary); color: var(--primary); } .btn-secondary:hover { background: var(--primary); color: var(--dark); } .hero-image { position: absolute; right: 10%; width: 40%; max-width: 600px; animation: float 6s ease-in-out infinite; } @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } } /* Featured Products Section */ .section { padding: 100px 10%; } .section-title { font-size: 36px; font-weight: 700; margin-bottom: 50px; position: relative; display: inline-block; } .section-title::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 50px; height: 4px; background: var(--primary); } /* Smart Showcase Carousel */ .showcase-container { position: relative; padding: 30px 0; } .swiper { width: 100%; height: 100%; padding: 30px 0; } .swiper-slide { width: 300px; height: 400px; display: flex; justify-content: center; align-items: center; } .showcase-card { width: 100%; height: 100%; padding: 30px; display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; transition: all 0.5s ease; } .showcase-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0)); z-index: -1; } .showcase-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); } .showcase-img { width: 100%; height: 180px; object-fit: contain; margin-bottom: 20px; transition: all 0.5s ease; } .showcase-card:hover .showcase-img { transform: scale(1.1); } .showcase-category { color: var(--primary); font-size: 14px; font-weight: 600; margin-bottom: 10px; align-self: flex-start; } .showcase-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; align-self: flex-start; } .showcase-desc { font-size: 14px; opacity: 0.8; margin-bottom: 20px; align-self: flex-start; } .showcase-price { font-size: 24px; font-weight: 700; color: var(--primary); margin-top: auto; align-self: flex-start; } .swiper-button-next, .swiper-button-prev { color: var(--primary) !important; background: rgba(0, 0, 0, 0.5); width: 50px !important; height: 50px !important; border-radius: 50%; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); } .swiper-button-next::after, .swiper-button-prev::after { font-size: 20px !important; } /* Card Luxe UI Section */ .luxe-section { background: linear-gradient(to bottom, rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 1)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80'); background-size: cover; background-position: center; background-attachment: fixed; padding: 120px 10%; position: relative; } .luxe-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; } .luxe-card { padding: 30px; border-radius: 15px; display: flex; flex-direction: column; transition: all 0.5s ease; position: relative; overflow: hidden; } .luxe-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0)); z-index: -1; } .luxe-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); } .luxe-icon { font-size: 40px; color: var(--primary); margin-bottom: 20px; } .luxe-title { font-size: 24px; font-weight: 700; margin-bottom: 15px; } .luxe-desc { font-size: 16px; opacity: 0.8; line-height: 1.6; margin-bottom: 20px; } .luxe-link { color: var(--primary); text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 10px; margin-top: auto; } .luxe-link i { transition: all 0.3s ease; } .luxe-link:hover i { transform: translateX(5px); } /* Velvet Caption Reveal Section */ .velvet-section { padding: 100px 10%; position: relative; overflow: hidden; } .velvet-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; } .velvet-card { height: 400px; position: relative; border-radius: 15px; overflow: hidden; } .velvet-img { width: 100%; height: 100%; object-fit: cover; transition: all 0.5s ease; } .velvet-card:hover .velvet-img { transform: scale(1.1); } .velvet-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent); transform: translateY(100px); opacity: 0; transition: all 0.5s ease; } .velvet-card:hover .velvet-overlay { transform: translateY(0); opacity: 1; } .velvet-title { font-size: 24px; font-weight: 700; margin-bottom: 10px; color: var(--primary); } .velvet-desc { font-size: 16px; margin-bottom: 20px; } /* Elegant Slide Reveal Section */ .elegant-section { padding: 100px 10%; background: linear-gradient(to right, rgba(18, 18, 18, 1), rgba(18, 18, 18, 0.9)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80'); background-size: cover; background-position: center; background-attachment: fixed; } .elegant-container { display: flex; flex-direction: column; gap: 50px; } .elegant-item { display: flex; align-items: center; gap: 50px; opacity: 0; transform: translateX(-50px); transition: all 0.8s ease; } .elegant-item.visible { opacity: 1; transform: translateX(0); } .elegant-item:nth-child(even) { flex-direction: row-reverse; transform: translateX(50px); } .elegant-item:nth-child(even).visible { transform: translateX(0); } .elegant-img { width: 50%; border-radius: 15px; box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); } .elegant-content { width: 50%; } .elegant-title { font-size: 32px; font-weight: 700; margin-bottom: 20px; color: var(--primary); } .elegant-desc { font-size: 16px; line-height: 1.6; opacity: 0.9; margin-bottom: 30px; } /* Newsletter Section */ .newsletter-section { padding: 100px 10%; background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0)); text-align: center; } .newsletter-title { font-size: 36px; font-weight: 700; margin-bottom: 20px; } .newsletter-desc { font-size: 18px; max-width: 600px; margin: 0 auto 40px; opacity: 0.8; } .newsletter-form { display: flex; max-width: 500px; margin: 0 auto; } .newsletter-input { flex: 1; padding: 15px 20px; border: none; border-radius: 30px 0 0 30px; background: rgba(255, 255, 255, 0.1); color: var(--light); font-size: 16px; outline: none; } .newsletter-input::placeholder { color: rgba(255, 255, 255, 0.7); } .newsletter-btn { padding: 15px 30px; border: none; border-radius: 0 30px 30px 0; background: var(--primary); color: var(--dark); font-weight: 600; cursor: pointer; transition: all 0.3s ease; } .newsletter-btn:hover { background: var(--primary-dark); } /* Footer Section */ footer { background: var(--gray); padding: 80px 10% 30px; } .footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 50px; } .footer-col h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: var(--primary); } .footer-links { list-style: none; } .footer-links li { margin-bottom: 15px; } .footer-links a { color: var(--light); text-decoration: none; opacity: 0.8; transition: all 0.3s ease; } .footer-links a:hover { opacity: 1; color: var(--primary); padding-left: 5px; } .social-links { display: flex; gap: 15px; } .social-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--light); transition: all 0.3s ease; } .social-links a:hover { background: var(--primary); color: var(--dark); transform: translateY(-5px); } .footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); } /* Responsive Styles */ @media (max-width: 1200px) { .hero h1 { font-size: 48px; } .hero-image { width: 45%; } } @media (max-width: 992px) { .hero { flex-direction: column; justify-content: center; text-align: center; padding-top: 100px; } .hero-content { max-width: 100%; margin-bottom: 50px; } .hero-btns { justify-content: center; } .hero-image { position: relative; right: auto; width: 70%; margin: 0 auto; } .elegant-item, .elegant-item:nth-child(even) { flex-direction: column; transform: translateY(50px); } .elegant-item.visible, .elegant-item:nth-child(even).visible { transform: translateY(0); } .elegant-img, .elegant-content { width: 100%; } } @media (max-width: 768px) { .nav-links { position: fixed; top: 80px; left: -100%; width: 100%; height: calc(100vh - 80px); background: rgba(18, 18, 18, 0.95); flex-direction: column; justify-content: center; gap: 30px; transition: all 0.5s ease; } .nav-links.active { left: 0; } .menu-toggle { display: block; } .hero h1 { font-size: 40px; } .section-title { font-size: 30px; } } @media (max-width: 576px) { .hero h1 { font-size: 32px; } .hero p { font-size: 16px; } .hero-btns { flex-direction: column; gap: 15px; } .btn { width: 100%; text-align: center; } .newsletter-form { flex-direction: column; } .newsletter-input { border-radius: 30px; margin-bottom: 10px; } .newsletter-btn { border-radius: 30px; } }
JavaScript
// Mobile Menu Toggle const menuToggle = document.querySelector('.menu-toggle'); const navLinks = document.querySelector('.nav-links'); menuToggle.addEventListener('click', () => { navLinks.classList.toggle('active'); menuToggle.querySelector('i').classList.toggle('fa-times'); }); // Header Scroll Effect const header = document.getElementById('header'); window.addEventListener('scroll', () => { if (window.scrollY > 100) { header.classList.add('scrolled'); } else { header.classList.remove('scrolled'); } }); // Smooth Scrolling for Anchor Links document.querySelectorAll('a[href^="#"]').forEach(anchor => { anchor.addEventListener('click', function(e) { e.preventDefault(); navLinks.classList.remove('active'); menuToggle.querySelector('i').classList.remove('fa-times'); document.querySelector(this.getAttribute('href')).scrollIntoView({ behavior: 'smooth' }); }); }); // Initialize Swiper const swiper = new Swiper('.swiper', { slidesPerView: 1, spaceBetween: 20, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, breakpoints: { 640: { slidesPerView: 2, }, 992: { slidesPerView: 3, }, 1200: { slidesPerView: 4, } } }); // Elegant Slide Reveal Animation const elegantItems = document.querySelectorAll('.elegant-item'); function checkSlide() { elegantItems.forEach(item => { const slideInAt = (window.scrollY + window.innerHeight) - item.offsetHeight / 2; const itemBottom = item.offsetTop + item.offsetHeight; const isHalfShown = slideInAt > item.offsetTop; const isNotScrolledPast = window.scrollY < itemBottom; if (isHalfShown && isNotScrolledPast) { item.classList.add('visible'); } }); } window.addEventListener('scroll', checkSlide); window.addEventListener('load', checkSlide);
Output Preview
Desktop
Mobile
Fullscreen