Car Washing Modern 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>WashWash - Futuristic Car Care</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 --> <header id="header"> <a href="#" class="logo"><i class="fas fa-car"></i>WashWash</a> <div class="menu-toggle" id="menuToggle"> <i class="fas fa-bars"></i> </div> <nav class="nav-links" id="navLinks"> <a href="#home">Home</a> <a href="#services">Services</a> <a href="#showcase">Showcase</a> <a href="#pricing">Pricing</a> <a href="#testimonials">Testimonials</a> <a href="#contact">Contact</a> <a href="#" class="cta-button">Book Now</a> </nav> </header> <!-- Hero Section --> <section class="hero" id="home"> <div class="hero-content"> <h1>Revolutionary <span class="velvet-caption">Car Care</span> Experience</h1> <p>Discover the future of car washing with our cutting-edge technology and eco-friendly solutions. Your vehicle deserves the best treatment.</p> <div class="hero-buttons"> <a href="#" class="cta-button"><i class="fas fa-calendar-alt"></i> Schedule Wash</a> <a href="#services" class="secondary-button"><i class="fas fa-play-circle"></i> Our Services</a> </div> </div> <img src="https://images.unsplash.com/photo-1591768793355-74d04bb6608f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1632&q=80" alt="Futuristic Car Wash" class="hero-image"> </section> <!-- Services Section --> <section class="section" id="services"> <div class="section-title"> <h2>Our <span class="slide-reveal">Premium Services</span></h2> <p>We offer a range of high-tech car care solutions designed to protect and enhance your vehicle's appearance.</p> </div> <div class="services-grid"> <div class="service-card glass"> <div class="service-icon"> <i class="fas fa-spray-can"></i> </div> <h3>Nano Coating</h3> <p>Advanced ceramic coating technology that provides long-lasting protection against scratches, UV rays, and environmental contaminants.</p> <a href="#" class="service-link">Learn More <i class="fas fa-arrow-right"></i></a> </div> <div class="service-card glass"> <div class="service-icon"> <i class="fas fa-broom"></i> </div> <h3>Interior Detailing</h3> <p>Complete interior rejuvenation using eco-friendly products and state-of-the-art equipment to restore your car's cabin to showroom condition.</p> <a href="#" class="service-link">Learn More <i class="fas fa-arrow-right"></i></a> </div> <div class="service-card glass"> <div class="service-icon"> <i class="fas fa-fan"></i> </div> <h3>Waterless Wash</h3> <p>Our patented waterless technology cleans and protects your vehicle while conserving thousands of gallons of water each year.</p> <a href="#" class="service-link">Learn More <i class="fas fa-arrow-right"></i></a> </div> <div class="service-card glass"> <div class="service-icon"> <i class="fas fa-shield-alt"></i> </div> <h3>Paint Protection</h3> <p>Specialized treatments that create an invisible barrier against road grime, bird droppings, and other paint-damaging elements.</p> <a href="#" class="service-link">Learn More <i class="fas fa-arrow-right"></i></a> </div> </div> </section> <!-- Showcase Section --> <section class="section showcase" id="showcase"> <div class="section-title"> <h2>Our <span class="slide-reveal">Work Showcase</span></h2> <p>See the transformative power of our premium car care services through these stunning before-and-after examples.</p> </div> <div class="swiper"> <div class="swiper-wrapper"> <div class="swiper-slide"> <img src="https://images.unsplash.com/photo-1503736334956-4c8f8e92946f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1074&q=80" alt="Car Detailing"> <div class="slide-content"> <h3>Luxury Vehicle Restoration</h3> <p>This high-end sports car underwent our complete restoration package, bringing back its original showroom shine and protecting it for years to come.</p> <a href="#" class="secondary-button">View Case Study</a> </div> </div> <div class="swiper-slide"> <img src="https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1283&q=80" alt="Car Interior Detailing"> <div class="slide-content"> <h3>Interior Transformation</h3> <p>From worn and tired to fresh and luxurious. Our interior detailing service removed years of stains and odors, restoring the leather and surfaces.</p> <a href="#" class="secondary-button">View Case Study</a> </div> </div> <div class="swiper-slide"> <img src="https://images.unsplash.com/photo-1502877338535-766e1452684a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1172&q=80" alt="Car Paint Correction"> <div class="slide-content"> <h3>Paint Correction Mastery</h3> <p>Swirl marks and scratches completely eliminated through our multi-stage paint correction process, followed by ceramic coating for lasting protection.</p> <a href="#" class="secondary-button">View Case Study</a> </div> </div> </div> <div class="swiper-pagination"></div> <div class="swiper-button-next"></div> <div class="swiper-button-prev"></div> </div> </section> <!-- Pricing Section --> <section class="section" id="pricing"> <div class="section-title"> <h2>Transparent <span class="slide-reveal">Pricing</span></h2> <p>Choose the perfect package for your vehicle's needs. All packages include our satisfaction guarantee.</p> </div> <div class="pricing-cards"> <div class="pricing-card glass"> <h3>Basic Wash</h3> <div class="price">$25<span>/wash</span></div> <ul class="pricing-features"> <li>Exterior Hand Wash</li> <li>Wheel Cleaning</li> <li>Tire Dressing</li> <li>Window Cleaning</li> <li>Quick Vacuum</li> </ul> <a href="#" class="cta-button">Choose Plan</a> </div> <div class="pricing-card glass popular"> <h3>Premium Detail</h3> <div class="price">$120<span>/service</span></div> <ul class="pricing-features"> <li>Full Exterior Wash</li> <li>Clay Bar Treatment</li> <li>Hand Wax</li> <li>Complete Interior Detail</li> <li>Leather Conditioning</li> <li>Odor Elimination</li> </ul> <a href="#" class="cta-button">Choose Plan</a> </div> <div class="pricing-card glass"> <h3>Elite Protection</h3> <div class="price">$350<span>/treatment</span></div> <ul class="pricing-features"> <li>Paint Correction</li> <li>Ceramic Coating</li> <li>Interior Fabric Guard</li> <li>Leather Protection</li> <li>12-Month Warranty</li> <li>2 Free Maintenance Washes</li> </ul> <a href="#" class="cta-button">Choose Plan</a> </div> </div> </section> <!-- Testimonials Section --> <section class="section testimonials" id="testimonials"> <div class="section-title"> <h2>Client <span class="slide-reveal">Testimonials</span></h2> <p>Don't just take our word for it. Here's what our valued customers have to say about their WashWash experience.</p> </div> <div class="testimonial-cards"> <div class="testimonial-card glass"> <div class="testimonial-content"> "I've never seen my car look this good, even when it was brand new! The attention to detail is incredible. The nano coating has made maintenance so much easier." </div> <div class="testimonial-author"> <div class="author-avatar"> <img src="https://randomuser.me/api/portraits/women/45.jpg" alt="Sarah J."> </div> <div class="author-info"> <h4>Sarah Johnson</h4> <p>Loyal Customer</p> </div> </div> </div> <div class="testimonial-card glass"> <div class="testimonial-content"> "As a car collector, I'm extremely particular about who touches my vehicles. WashWash is the only service I trust with my classics and modern supercars alike." </div> <div class="testimonial-author"> <div class="author-avatar"> <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Michael T."> </div> <div class="author-info"> <h4>Michael Thompson</h4> <p>Car Collector</p> </div> </div> </div> <div class="testimonial-card glass"> <div class="testimonial-content"> "The waterless wash option is a game-changer for our office parking lot service. Convenient, eco-friendly, and the cars look better than with traditional washes." </div> <div class="testimonial-author"> <div class="author-avatar"> <img src="https://randomuser.me/api/portraits/women/68.jpg" alt="Lisa M."> </div> <div class="author-info"> <h4>Lisa Martinez</h4> <p>Fleet Manager</p> </div> </div> </div> </div> </section> <!-- Stats Section --> <section class="section"> <div class="section-title"> <h2>By The <span class="slide-reveal">Numbers</span></h2> <p>Our commitment to excellence is reflected in these impressive statistics.</p> </div> <div class="stats-grid"> <div class="stat-item glass"> <div class="stat-number" id="stat1">0</div> <div class="stat-label">Satisfied Clients</div> </div> <div class="stat-item glass"> <div class="stat-number" id="stat2">0</div> <div class="stat-label">Vehicles Serviced</div> </div> <div class="stat-item glass"> <div class="stat-number" id="stat3">0</div> <div class="stat-label">Gallons Saved</div> </div> <div class="stat-item glass"> <div class="stat-number" id="stat4">0</div> <div class="stat-label">5-Star Reviews</div> </div> </div> </section> <!-- CTA Section --> <section class="section cta-section" id="contact"> <div class="cta-content"> <h2>Ready to Transform Your Vehicle?</h2> <p>Join thousands of satisfied customers who trust WashWash for premium car care. Schedule your service today and experience the difference.</p> <form class="cta-form"> <input type="email" placeholder="Enter your email" required> <button type="submit">Get Started</button> </form> </div> </section> <!-- Footer --> <footer> <div class="footer-grid"> <div class="footer-col"> <h3>WashWash</h3> <p>Revolutionizing car care through innovative technology and unparalleled service since 2018.</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>Services</h3> <ul class="footer-links"> <li><a href="#">Exterior Detailing</a></li> <li><a href="#">Interior Detailing</a></li> <li><a href="#">Ceramic Coating</a></li> <li><a href="#">Paint Correction</a></li> <li><a href="#">Waterless Wash</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="#">Our Technology</a></li> <li><a href="#">Careers</a></li> <li><a href="#">Blog</a></li> <li><a href="#">Contact</a></li> </ul> </div> <div class="footer-col"> <h3>Contact</h3> <ul class="footer-links"> <li><a href="#"><i class="fas fa-map-marker-alt"></i> 123 Auto Lane, Tech City</a></li> <li><a href="#"><i class="fas fa-phone"></i> (555) 123-4567</a></li> <li><a href="#"><i class="fas fa-envelope"></i> info@washwash.com</a></li> <li><a href="#"><i class="fas fa-clock"></i> Mon-Sat: 8AM-8PM</a></li> </ul> </div> </div> <div class="footer-bottom"> <p>© 2023 WashWash. 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: #FFF2CC; --dark: #121212; --light: #FFFFFF; --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', Tahoma, Geneva, Verdana, sans-serif; } body { background-color: var(--dark); color: var(--light); overflow-x: hidden; } /* Scrollbar */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: var(--gray); } ::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; } /* Glassmorphism Base */ .glass { background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 12px; border: 1px solid var(--glass-border); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); } /* Header */ 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; } .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%; } .cta-button { background: var(--primary); color: var(--dark); padding: 10px 25px; border-radius: 30px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; border: 2px solid var(--primary); } .cta-button:hover { background: transparent; color: var(--primary); } .menu-toggle { display: none; cursor: pointer; font-size: 24px; color: var(--light); } /* Hero Section */ .hero { height: 100vh; display: flex; align-items: center; padding: 0 5%; position: relative; overflow: hidden; } .hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 70% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%); z-index: -1; } .hero-content { max-width: 600px; z-index: 1; } .hero h1 { font-size: 64px; font-weight: 800; margin-bottom: 20px; line-height: 1.2; background: linear-gradient(90deg, var(--light), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; opacity: 0; transform: translateY(30px); animation: slideUp 1s ease forwards 0.3s; } .hero p { font-size: 18px; margin-bottom: 30px; color: rgba(255, 255, 255, 0.8); opacity: 0; transform: translateY(30px); animation: slideUp 1s ease forwards 0.6s; } .hero-buttons { display: flex; gap: 20px; opacity: 0; transform: translateY(30px); animation: slideUp 1s ease forwards 0.9s; } .secondary-button { background: transparent; color: var(--light); padding: 10px 25px; border-radius: 30px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; border: 2px solid var(--glass-highlight); } .secondary-button:hover { border-color: var(--primary); color: var(--primary); } .hero-image { position: absolute; right: 5%; width: 50%; max-width: 800px; opacity: 0; transform: translateX(50px); animation: slideLeft 1s ease forwards 1.2s; } /* Services Section */ .section { padding: 100px 5%; position: relative; } .section-title { text-align: center; margin-bottom: 60px; opacity: 0; transform: translateY(30px); } .section-title h2 { font-size: 42px; font-weight: 700; margin-bottom: 15px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .section-title p { font-size: 18px; color: rgba(255, 255, 255, 0.7); max-width: 700px; margin: 0 auto; } .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; } .service-card { padding: 30px; transition: all 0.5s ease; opacity: 0; transform: translateY(50px); } .service-card:nth-child(1) { animation: slideUp 0.8s ease forwards 0.2s; } .service-card:nth-child(2) { animation: slideUp 0.8s ease forwards 0.4s; } .service-card:nth-child(3) { animation: slideUp 0.8s ease forwards 0.6s; } .service-card:nth-child(4) { animation: slideUp 0.8s ease forwards 0.8s; } .service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); } .service-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; font-size: 32px; color: var(--dark); } .service-card h3 { font-size: 24px; margin-bottom: 15px; color: var(--light); } .service-card p { color: rgba(255, 255, 255, 0.7); margin-bottom: 20px; line-height: 1.6; } .service-link { color: var(--primary); text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 10px; transition: all 0.3s ease; } .service-link:hover { gap: 15px; } /* Showcase Section */ .showcase { background: linear-gradient(to bottom, rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.95)), url('https://images.unsplash.com/photo-1507035895480-2b3156c31fc8?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: 150px 5%; position: relative; } .showcase::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%); pointer-events: none; } .swiper { width: 100%; height: 500px; margin-top: 50px; } .swiper-slide { display: flex; align-items: center; justify-content: center; border-radius: 18px; overflow: hidden; position: relative; } .swiper-slide::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 50%); } .swiper-slide img { width: 100%; height: 100%; object-fit: cover; } .slide-content { position: absolute; bottom: 40px; left: 40px; z-index: 2; max-width: 600px; opacity: 0; transform: translateY(30px); transition: all 0.5s ease; } .swiper-slide-active .slide-content { opacity: 1; transform: translateY(0); transition-delay: 0.5s; } .slide-content h3 { font-size: 32px; margin-bottom: 15px; color: var(--light); } .slide-content p { color: rgba(255, 255, 255, 0.9); margin-bottom: 20px; line-height: 1.6; } .swiper-pagination-bullet { width: 12px; height: 12px; background: transparent; border: 2px solid var(--light); opacity: 1; } .swiper-pagination-bullet-active { background: var(--primary); border-color: var(--primary); } .swiper-button-next, .swiper-button-prev { color: var(--primary); width: 60px; height: 60px; border-radius: 50%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); transition: all 0.3s ease; } .swiper-button-next:hover, .swiper-button-prev:hover { background: rgba(255, 215, 0, 0.2); } .swiper-button-next::after, .swiper-button-prev::after { font-size: 24px; font-weight: bold; } /* Pricing Section */ .pricing-cards { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 50px; } .pricing-card { width: 320px; padding: 40px 30px; text-align: center; position: relative; overflow: hidden; transition: all 0.5s ease; opacity: 0; transform: translateY(50px); } .pricing-card:nth-child(1) { animation: slideUp 0.8s ease forwards 0.2s; } .pricing-card:nth-child(2) { animation: slideUp 0.8s ease forwards 0.4s; } .pricing-card:nth-child(3) { animation: slideUp 0.8s ease forwards 0.6s; } .pricing-card:hover { transform: translateY(-10px); } .pricing-card.popular::before { content: 'Most Popular'; position: absolute; top: 20px; right: -40px; background: var(--primary); color: var(--dark); padding: 5px 40px; transform: rotate(45deg); font-weight: 600; font-size: 14px; } .pricing-card h3 { font-size: 24px; margin-bottom: 20px; color: var(--light); } .price { font-size: 48px; font-weight: 700; margin-bottom: 20px; color: var(--primary); } .price span { font-size: 16px; font-weight: 400; color: rgba(255, 255, 255, 0.7); } .pricing-features { margin-bottom: 30px; } .pricing-features li { list-style: none; padding: 10px 0; border-bottom: 1px solid var(--glass-border); color: rgba(255, 255, 255, 0.8); } .pricing-features li:first-child { border-top: 1px solid var(--glass-border); } /* Testimonials Section */ .testimonials { background: linear-gradient(to bottom, rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.95)), url('https://images.unsplash.com/photo-1553413077-190dd305871c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=735&q=80'); background-size: cover; background-position: center; background-attachment: fixed; } .testimonial-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; } .testimonial-card { padding: 30px; position: relative; opacity: 0; transform: translateY(50px); } .testimonial-card:nth-child(1) { animation: slideUp 0.8s ease forwards 0.2s; } .testimonial-card:nth-child(2) { animation: slideUp 0.8s ease forwards 0.4s; } .testimonial-card:nth-child(3) { animation: slideUp 0.8s ease forwards 0.6s; } .testimonial-card::before { content: '"'; position: absolute; top: 20px; left: 20px; font-size: 80px; color: rgba(255, 215, 0, 0.1); font-family: serif; line-height: 1; } .testimonial-content { margin-bottom: 20px; color: rgba(255, 255, 255, 0.9); line-height: 1.6; position: relative; z-index: 1; } .testimonial-author { display: flex; align-items: center; gap: 15px; } .author-avatar { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; border: 2px solid var(--primary); } .author-avatar img { width: 100%; height: 100%; object-fit: cover; } .author-info h4 { font-size: 18px; color: var(--light); margin-bottom: 5px; } .author-info p { font-size: 14px; color: var(--primary); } /* Stats Section */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; } .stat-item { padding: 30px; } .stat-number { font-size: 60px; font-weight: 700; margin-bottom: 10px; color: var(--primary); opacity: 0; transform: translateY(20px); } .stat-item:nth-child(1) .stat-number { animation: slideUp 0.8s ease forwards 0.2s; } .stat-item:nth-child(2) .stat-number { animation: slideUp 0.8s ease forwards 0.4s; } .stat-item:nth-child(3) .stat-number { animation: slideUp 0.8s ease forwards 0.6s; } .stat-item:nth-child(4) .stat-number { animation: slideUp 0.8s ease forwards 0.8s; } .stat-label { font-size: 18px; color: rgba(255, 255, 255, 0.8); opacity: 0; transform: translateY(20px); } .stat-item:nth-child(1) .stat-label { animation: slideUp 0.8s ease forwards 0.3s; } .stat-item:nth-child(2) .stat-label { animation: slideUp 0.8s ease forwards 0.5s; } .stat-item:nth-child(3) .stat-label { animation: slideUp 0.8s ease forwards 0.7s; } .stat-item:nth-child(4) .stat-label { animation: slideUp 0.8s ease forwards 0.9s; } /* CTA Section */ .cta-section { text-align: center; padding: 100px 5%; background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05)); position: relative; overflow: hidden; } .cta-section::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%); pointer-events: none; z-index: -1; } .cta-content { max-width: 700px; margin: 0 auto; position: relative; } .cta-content h2 { font-size: 42px; margin-bottom: 20px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; opacity: 0; transform: translateY(30px); animation: slideUp 1s ease forwards 0.2s; } .cta-content p { font-size: 18px; color: rgba(255, 255, 255, 0.8); margin-bottom: 40px; opacity: 0; transform: translateY(30px); animation: slideUp 1s ease forwards 0.4s; } .cta-form { display: flex; max-width: 500px; margin: 0 auto; opacity: 0; transform: translateY(30px); animation: slideUp 1s ease forwards 0.6s; } .cta-form 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; } .cta-form input::placeholder { color: rgba(255, 255, 255, 0.6); } .cta-form button { 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; } .cta-form button:hover { background: var(--primary-dark); } /* Footer */ footer { background: linear-gradient(to bottom, #0a0a0a, #000000); padding: 80px 5% 30px; } .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 60px; } .footer-col h3 { font-size: 20px; margin-bottom: 25px; color: var(--light); position: relative; padding-bottom: 10px; } .footer-col h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 2px; background: var(--primary); } .footer-col p { color: rgba(255, 255, 255, 0.7); margin-bottom: 20px; line-height: 1.6; } .footer-links { list-style: none; } .footer-links li { margin-bottom: 15px; } .footer-links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: all 0.3s ease; display: flex; align-items: center; gap: 10px; } .footer-links a:hover { color: var(--primary); padding-left: 5px; } .footer-links a i { font-size: 12px; color: var(--primary); } .social-links { display: flex; gap: 15px; margin-top: 20px; } .social-links a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; 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); color: rgba(255, 255, 255, 0.5); font-size: 14px; } /* Animations */ @keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideLeft { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } } /* Velvet Caption Reveal */ .velvet-caption { position: relative; display: inline-block; overflow: hidden; } .velvet-caption::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease; mix-blend-mode: multiply; z-index: -1; } .velvet-caption:hover::after { transform: scaleX(1); } /* Elegant Slide Reveal */ .slide-reveal { position: relative; overflow: hidden; display: inline-block; } .slide-reveal::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--primary); transform: translateX(-100%); transition: transform 0.5s ease; z-index: -1; } .slide-reveal:hover::after { transform: translateX(0); } /* Responsive Styles */ @media (max-width: 1200px) { .hero h1 { font-size: 54px; } .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-buttons { justify-content: center; } .hero-image { position: relative; right: auto; width: 80%; max-width: 600px; margin: 0 auto; } .nav-links { position: fixed; top: 80px; left: -100%; width: 100%; height: calc(100vh - 80px); background: rgba(18, 18, 18, 0.95); flex-direction: column; align-items: center; justify-content: center; gap: 30px; transition: all 0.5s ease; z-index: 999; } .nav-links.active { left: 0; } .menu-toggle { display: block; } header.scrolled .nav-links { top: 70px; height: calc(100vh - 70px); } .swiper { height: 400px; } } @media (max-width: 768px) { .hero h1 { font-size: 42px; } .hero p { font-size: 16px; } .section-title h2 { font-size: 36px; } .swiper { height: 350px; } .slide-content { left: 20px; bottom: 20px; } .slide-content h3 { font-size: 24px; } .cta-form { flex-direction: column; } .cta-form input { border-radius: 30px; margin-bottom: 10px; } .cta-form button { border-radius: 30px; } } @media (max-width: 576px) { .hero h1 { font-size: 36px; } .hero-buttons { flex-direction: column; gap: 15px; } .section { padding: 70px 5%; } .section-title h2 { font-size: 30px; } .swiper { height: 300px; } .pricing-cards { flex-direction: column; align-items: center; } .cta-content h2 { font-size: 32px; } }
JavaScript
// Mobile Menu Toggle const menuToggle = document.getElementById('menuToggle'); const navLinks = document.getElementById('navLinks'); menuToggle.addEventListener('click', () => { navLinks.classList.toggle('active'); menuToggle.innerHTML = navLinks.classList.contains('active') ? '<i class="fas fa-times"></i>' : '<i class="fas fa-bars"></i>'; }); // Close mobile menu when clicking on a link document.querySelectorAll('.nav-links a').forEach(link => { link.addEventListener('click', () => { if (window.innerWidth <= 992) { navLinks.classList.remove('active'); menuToggle.innerHTML = '<i class="fas fa-bars"></i>'; } }); }); // Header scroll effect const header = document.getElementById('header'); window.addEventListener('scroll', () => { if (window.scrollY > 50) { header.classList.add('scrolled'); } else { header.classList.remove('scrolled'); } }); // Initialize Swiper const swiper = new Swiper('.swiper', { loop: true, autoplay: { delay: 5000, disableOnInteraction: false, }, effect: 'fade', fadeEffect: { crossFade: true }, pagination: { el: '.swiper-pagination', clickable: true, }, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, }); // Animate stats counting function animateValue(id, start, end, duration) { const obj = document.getElementById(id); let startTimestamp = null; const step = (timestamp) => { if (!startTimestamp) startTimestamp = timestamp; const progress = Math.min((timestamp - startTimestamp) / duration, 1); const value = Math.floor(progress * (end - start) + start); obj.innerHTML = value.toLocaleString(); if (progress < 1) { window.requestAnimationFrame(step); } }; window.requestAnimationFrame(step); } // Trigger stats animation when scrolled to function checkStatsVisibility() { const statsSection = document.querySelector('.stats-grid'); const statsPosition = statsSection.getBoundingClientRect().top; const screenPosition = window.innerHeight / 1.3; if (statsPosition < screenPosition) { animateValue('stat1', 0, 12500, 2000); animateValue('stat2', 0, 38400, 2000); animateValue('stat3', 0, 125000, 2000); animateValue('stat4', 0, 4700, 2000); window.removeEventListener('scroll', checkStatsVisibility); } } window.addEventListener('scroll', checkStatsVisibility); // Smooth scrolling for anchor links document.querySelectorAll('a[href^="#"]').forEach(anchor => { anchor.addEventListener('click', function(e) { e.preventDefault(); const target = document.querySelector(this.getAttribute('href')); if (target) { window.scrollTo({ top: target.offsetTop - 80, behavior: 'smooth' }); } }); }); // Initialize animations when page loads document.addEventListener('DOMContentLoaded', () => { // Check if stats are already visible on load checkStatsVisibility(); });
Output Preview
Desktop
Mobile
Fullscreen