Construction Landing Page Design
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>NexusBuild - Futuristic Construction</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> </head> <body> <!-- Header --> <header id="header"> <a href="#" class="logo"><i class="fas fa-building"></i>NexusBuild</a> <div class="menu-toggle" id="menuToggle"> <i class="fas fa-bars"></i> </div> <ul class="nav-links" id="navLinks"> <li><a href="#home">Home</a></li> <li><a href="#about">About</a></li> <li><a href="#services">Services</a></li> <li><a href="#projects">Projects</a></li> <li><a href="#contact">Contact</a></li> </ul> </header> <!-- Hero Section --> <section class="hero" id="home"> <div class="hero-content"> <h1>Building The Future With Innovation</h1> <p>We construct sustainable, futuristic buildings that stand the test of time with cutting-edge technology and eco-friendly materials.</p> <a href="#contact" class="btn">Get A Quote</a> </div> <div class="floating-elements"> <div class="floating-element" style="width: 100px; height: 100px; top: 20%; left: 10%; animation-delay: 0s;"></div> <div class="floating-element" style="width: 150px; height: 150px; top: 60%; left: 80%; animation-delay: 2s;"></div> <div class="floating-element" style="width: 80px; height: 80px; top: 80%; left: 20%; animation-delay: 4s;"></div> <div class="floating-element" style="width: 120px; height: 120px; top: 30%; left: 60%; animation-delay: 6s;"></div> </div> </section> <!-- About Section --> <section class="about" id="about"> <div class="section-title"> <h2>About Our Company</h2> </div> <div class="about-content"> <div class="about-text"> <h3>Pioneering Construction Since 2005</h3> <p>NexusBuild is a leader in innovative construction solutions, combining traditional craftsmanship with cutting-edge technology to deliver exceptional results.</p> <p>Our team of architects, engineers, and builders work collaboratively to create structures that are not only visually stunning but also highly functional and sustainable.</p> <p>We pride ourselves on our attention to detail, commitment to quality, and ability to deliver projects on time and within budget.</p> <a href="#services" class="btn">Our Services</a> </div> <div class="about-image"> <img src="https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80" alt="Construction Site"> </div> </div> </section> <!-- Services Section --> <section class="services" id="services"> <div class="section-title"> <h2>Our Services</h2> </div> <div class="services-grid"> <div class="service-card"> <div class="service-icon"> <i class="fas fa-drafting-compass"></i> </div> <h3>Architectural Design</h3> <p>Innovative architectural solutions tailored to your vision and needs, from concept to completion.</p> </div> <div class="service-card"> <div class="service-icon"> <i class="fas fa-home"></i> </div> <h3>Residential Construction</h3> <p>Building dream homes with quality materials and attention to every detail.</p> </div> <div class="service-card"> <div class="service-icon"> <i class="fas fa-city"></i> </div> <h3>Commercial Projects</h3> <p>Creating functional, attractive commercial spaces that enhance business operations.</p> </div> <div class="service-card"> <div class="service-icon"> <i class="fas fa-tools"></i> </div> <h3>Renovation</h3> <p>Transforming existing spaces into modern, functional areas that meet current needs.</p> </div> <div class="service-card"> <div class="service-icon"> <i class="fas fa-leaf"></i> </div> <h3>Sustainable Building</h3> <p>Eco-friendly construction methods that reduce environmental impact and operating costs.</p> </div> <div class="service-card"> <div class="service-icon"> <i class="fas fa-hard-hat"></i> </div> <h3>Project Management</h3> <p>Comprehensive oversight from planning to completion ensuring quality and efficiency.</p> </div> </div> </section> <!-- Projects Section --> <section class="projects" id="projects"> <div class="section-title"> <h2>Our Projects</h2> </div> <div class="projects-grid"> <div class="project-card"> <img src="https://images.unsplash.com/photo-1487958449943-2429e8be8625?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80" alt="Project 1"> <div class="project-overlay"> <h3>Urban Heights</h3> <p>Mixed-use development in downtown</p> </div> </div> <div class="project-card"> <img src="https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80" alt="Project 2"> <div class="project-overlay"> <h3>Lakeside Residences</h3> <p>Luxury waterfront homes</p> </div> </div> <div class="project-card"> <img src="https://images.unsplash.com/photo-1605276374104-dee2a0ed3cd6?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80" alt="Project 3"> <div class="project-overlay"> <h3>Tech Campus</h3> <p>Innovation hub for tech companies</p> </div> </div> <div class="project-card"> <img src="https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80" alt="Project 4"> <div class="project-overlay"> <h3>Green Office Complex</h3> <p>LEED-certified commercial space</p> </div> </div> <div class="project-card"> <img src="https://images.unsplash.com/photo-1600607688969-a5bfcd646154?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80" alt="Project 5"> <div class="project-overlay"> <h3>Modern Lofts</h3> <p>Urban living redefined</p> </div> </div> <div class="project-card"> <img src="https://images.unsplash.com/photo-1600566752355-35792bedcfea?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80" alt="Project 6"> <div class="project-overlay"> <h3>Community Center</h3> <p>Hub for neighborhood activities</p> </div> </div> </div> </section> <!-- Stats Section --> <section class="stats"> <div class="section-title"> <h2>By The Numbers</h2> </div> <div class="stats-grid"> <div class="stat-item"> <div class="stat-number" data-count="250">0</div> <div class="stat-text">Projects Completed</div> </div> <div class="stat-item"> <div class="stat-number" data-count="150">0</div> <div class="stat-text">Happy Clients</div> </div> <div class="stat-item"> <div class="stat-number" data-count="50">0</div> <div class="stat-text">Awards Won</div> </div> <div class="stat-item"> <div class="stat-number" data-count="100">0</div> <div class="stat-text">Expert Team Members</div> </div> </div> </section> <!-- Testimonials Section --> <section class="testimonials"> <div class="section-title"> <h2>Client Testimonials</h2> </div> <div class="testimonial-slider"> <div class="testimonial-slide active"> <p class="testimonial-text">"NexusBuild transformed our vision into reality with their innovative approach and attention to detail. The project was completed ahead of schedule and exceeded all our expectations."</p> <div class="testimonial-author"> <div class="author-image"> <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Client 1"> </div> <div class="author-info"> <h4>Michael Johnson</h4> <p>CEO, TechCorp</p> </div> </div> </div> <div class="testimonial-slide"> <p class="testimonial-text">"Working with NexusBuild was a pleasure from start to finish. Their team's professionalism and expertise made our construction project stress-free and successful."</p> <div class="testimonial-author"> <div class="author-image"> <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Client 2"> </div> <div class="author-info"> <h4>Sarah Williams</h4> <p>Director, Urban Living</p> </div> </div> </div> <div class="testimonial-slide"> <p class="testimonial-text">"The sustainable building solutions provided by NexusBuild have significantly reduced our operational costs while creating a healthier environment for our employees."</p> <div class="testimonial-author"> <div class="author-image"> <img src="https://randomuser.me/api/portraits/men/75.jpg" alt="Client 3"> </div> <div class="author-info"> <h4>David Chen</h4> <p>Founder, GreenFuture</p> </div> </div> </div> <div class="slider-nav"> <div class="slider-dot active" data-slide="0"></div> <div class="slider-dot" data-slide="1"></div> <div class="slider-dot" data-slide="2"></div> </div> </div> </section> <!-- Team Section --> <section class="team"> <div class="section-title"> <h2>Our Team</h2> </div> <div class="team-grid"> <div class="team-member"> <div class="member-image"> <img src="https://randomuser.me/api/portraits/men/42.jpg" alt="Team Member 1"> <div class="member-social"> <a href="#"><i class="fab fa-linkedin-in"></i></a> <a href="#"><i class="fab fa-twitter"></i></a> <a href="#"><i class="fab fa-facebook-f"></i></a> </div> </div> <div class="member-info"> <h3>John Anderson</h3> <p>Chief Executive Officer</p> </div> </div> <div class="team-member"> <div class="member-image"> <img src="https://randomuser.me/api/portraits/women/63.jpg" alt="Team Member 2"> <div class="member-social"> <a href="#"><i class="fab fa-linkedin-in"></i></a> <a href="#"><i class="fab fa-twitter"></i></a> <a href="#"><i class="fab fa-facebook-f"></i></a> </div> </div> <div class="member-info"> <h3>Emily Rodriguez</h3> <p>Lead Architect</p> </div> </div> <div class="team-member"> <div class="member-image"> <img src="https://randomuser.me/api/portraits/men/28.jpg" alt="Team Member 3"> <div class="member-social"> <a href="#"><i class="fab fa-linkedin-in"></i></a> <a href="#"><i class="fab fa-twitter"></i></a> <a href="#"><i class="fab fa-facebook-f"></i></a> </div> </div> <div class="member-info"> <h3>Michael Thompson</h3> <p>Construction Manager</p> </div> </div> <div class="team-member"> <div class="member-image"> <img src="https://randomuser.me/api/portraits/women/35.jpg" alt="Team Member 4"> <div class="member-social"> <a href="#"><i class="fab fa-linkedin-in"></i></a> <a href="#"><i class="fab fa-twitter"></i></a> <a href="#"><i class="fab fa-facebook-f"></i></a> </div> </div> <div class="member-info"> <h3>Lisa Chen</h3> <p>Sustainability Expert</p> </div> </div> </div> </section> <!-- Contact Section --> <section class="contact" id="contact"> <div class="section-title"> <h2>Contact Us</h2> </div> <div class="contact-container"> <div class="contact-info"> <h3>Get In Touch</h3> <div class="info-item"> <div class="info-icon"> <i class="fas fa-map-marker-alt"></i> </div> <div class="info-text"> <h4>Address</h4> <p>123 Construction Avenue, Build City, BC 12345</p> </div> </div> <div class="info-item"> <div class="info-icon"> <i class="fas fa-phone-alt"></i> </div> <div class="info-text"> <h4>Phone</h4> <p>+1 (555) 123-4567</p> </div> </div> <div class="info-item"> <div class="info-icon"> <i class="fas fa-envelope"></i> </div> <div class="info-text"> <h4>Email</h4> <p>info@nexusbuild.com</p> </div> </div> <div class="info-item"> <div class="info-icon"> <i class="fas fa-clock"></i> </div> <div class="info-text"> <h4>Working Hours</h4> <p>Monday - Friday: 8:00 AM - 6:00 PM</p> </div> </div> </div> <div class="contact-form"> <form id="contactForm"> <div class="form-group"> <label for="name">Your Name</label> <input type="text" id="name" class="form-control" required> </div> <div class="form-group"> <label for="email">Your Email</label> <input type="email" id="email" class="form-control" required> </div> <div class="form-group"> <label for="subject">Subject</label> <input type="text" id="subject" class="form-control" required> </div> <div class="form-group"> <label for="message">Your Message</label> <textarea id="message" class="form-control" required></textarea> </div> <button type="submit" class="btn">Send Message</button> </form> </div> </div> </section> <!-- Footer --> <footer> <div class="footer-content"> <div class="footer-column"> <h3>About Us</h3> <p>NexusBuild is a leading construction company specializing in innovative, sustainable building solutions for residential and commercial projects.</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-linkedin-in"></i></a> <a href="#"><i class="fab fa-instagram"></i></a> </div> </div> <div class="footer-column"> <h3>Quick Links</h3> <ul class="footer-links"> <li><a href="#home">Home</a></li> <li><a href="#about">About</a></li> <li><a href="#services">Services</a></li> <li><a href="#projects">Projects</a></li> <li><a href="#contact">Contact</a></li> </ul> </div> <div class="footer-column"> <h3>Services</h3> <ul class="footer-links"> <li><a href="#">Architectural Design</a></li> <li><a href="#">Residential Construction</a></li> <li><a href="#">Commercial Projects</a></li> <li><a href="#">Renovation</a></li> <li><a href="#">Sustainable Building</a></li> </ul> </div> <div class="footer-column"> <h3>Newsletter</h3> <p>Subscribe to our newsletter for the latest updates and projects.</p> <form class="newsletter-form"> <input type="email" placeholder="Your Email" class="form-control" required> <button type="submit" class="btn" style="width: 100%; margin-top: 10px;">Subscribe</button> </form> </div> </div> <div class="footer-bottom"> <p>© 2023 NexusBuild. All Rights Reserved.</p> </div> </footer> </body> </html>
CSS
:root { --primary: #FFD700; --primary-dark: #FFC000; --dark: #222; --light: #f9f9f9; --gray: #777; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } body { background-color: var(--light); color: var(--dark); overflow-x: hidden; } /* Header */ header { position: fixed; top: 0; left: 0; width: 100%; padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; background-color: rgba(255, 215, 0, 0.9); z-index: 1000; transition: all 0.3s ease; box-shadow: 0 5px 20px rgba(0,0,0,0.1); } header.scrolled { padding: 15px 5%; background-color: rgba(255, 215, 0, 0.95); box-shadow: 0 5px 20px rgba(0,0,0,0.2); } .logo { font-size: 28px; font-weight: 800; color: var(--dark); text-decoration: none; display: flex; align-items: center; } .logo i { margin-right: 10px; color: var(--dark); } .nav-links { display: flex; list-style: none; } .nav-links li { margin-left: 30px; } .nav-links a { text-decoration: none; color: var(--dark); font-weight: 600; font-size: 16px; transition: all 0.3s ease; position: relative; } .nav-links a:after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background-color: var(--dark); transition: width 0.3s ease; } .nav-links a:hover:after { width: 100%; } .menu-toggle { display: none; cursor: pointer; font-size: 24px; color: var(--dark); } /* Hero Section */ .hero { height: 100vh; background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover; display: flex; align-items: center; padding: 0 5%; color: white; position: relative; overflow: hidden; } .hero-content { max-width: 600px; z-index: 2; } .hero h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; transform: translateY(50px); opacity: 0; animation: slideUp 1s forwards 0.5s; } .hero p { font-size: 1.2rem; margin-bottom: 30px; transform: translateY(50px); opacity: 0; animation: slideUp 1s forwards 0.7s; } .btn { display: inline-block; padding: 12px 30px; background-color: var(--primary); color: var(--dark); text-decoration: none; font-weight: 600; border-radius: 50px; transition: all 0.3s ease; transform: translateY(50px); opacity: 0; animation: slideUp 1s forwards 0.9s; border: none; cursor: pointer; } .btn:hover { background-color: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); } .floating-elements { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 1; } .floating-element { position: absolute; background-color: var(--primary); opacity: 0.2; border-radius: 50%; animation: float 15s infinite linear; } /* About Section */ .about { padding: 100px 5%; background-color: white; } .section-title { text-align: center; margin-bottom: 60px; position: relative; } .section-title h2 { font-size: 2.5rem; color: var(--dark); margin-bottom: 15px; } .section-title:after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background-color: var(--primary); } .about-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; } .about-text { flex: 1; min-width: 300px; padding-right: 40px; } .about-text h3 { font-size: 1.8rem; margin-bottom: 20px; color: var(--dark); } .about-text p { margin-bottom: 20px; color: var(--gray); line-height: 1.6; } .about-image { flex: 1; min-width: 300px; position: relative; margin-top: 30px; } .about-image img { width: 100%; border-radius: 10px; box-shadow: 0 20px 30px rgba(0,0,0,0.1); transform: perspective(1000px) rotateY(-15deg); transition: all 0.5s ease; } .about-image:hover img { transform: perspective(1000px) rotateY(0deg); } /* Services Section */ .services { padding: 100px 5%; background-color: #f5f5f5; } .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; } .service-card { background-color: white; padding: 40px 30px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: all 0.3s ease; text-align: center; position: relative; overflow: hidden; z-index: 1; } .service-card:before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background-color: var(--primary); transition: all 0.3s ease; z-index: -1; } .service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); } .service-card:hover:before { height: 100%; } .service-icon { font-size: 50px; color: var(--primary); margin-bottom: 20px; transition: all 0.3s ease; } .service-card:hover .service-icon { color: white; } .service-card h3 { font-size: 1.5rem; margin-bottom: 15px; transition: all 0.3s ease; } .service-card:hover h3 { color: white; } .service-card p { color: var(--gray); line-height: 1.6; transition: all 0.3s ease; } .service-card:hover p { color: rgba(255,255,255,0.9); } /* Projects Section */ .projects { padding: 100px 5%; background-color: white; } .projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 50px; } .project-card { position: relative; border-radius: 10px; overflow: hidden; height: 250px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); } .project-card img { width: 100%; height: 100%; object-fit: cover; transition: all 0.5s ease; } .project-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; opacity: 0; transition: all 0.3s ease; } .project-card:hover .project-overlay { opacity: 1; } .project-card:hover img { transform: scale(1.1); } .project-overlay h3 { color: white; font-size: 1.5rem; margin-bottom: 10px; transform: translateY(20px); transition: all 0.3s ease; } .project-overlay p { color: rgba(255,255,255,0.8); transform: translateY(20px); transition: all 0.3s ease 0.1s; } .project-card:hover .project-overlay h3, .project-card:hover .project-overlay p { transform: translateY(0); } /* Stats Section */ .stats { padding: 100px 5%; background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1431540015161-0bf868a2d407?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover; color: white; text-align: center; } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-top: 50px; } .stat-item { padding: 30px; position: relative; } .stat-item:after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 50px; height: 3px; background-color: var(--primary); } .stat-number { font-size: 3rem; font-weight: 700; margin-bottom: 10px; color: var(--primary); } .stat-text { font-size: 1.2rem; } /* Testimonials Section */ .testimonials { padding: 100px 5%; background-color: #f5f5f5; } .testimonial-slider { max-width: 800px; margin: 50px auto 0; position: relative; } .testimonial-slide { background-color: white; padding: 40px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center; display: none; } .testimonial-slide.active { display: block; animation: fadeIn 0.5s ease; } .testimonial-text { font-size: 1.2rem; color: var(--gray); font-style: italic; margin-bottom: 30px; line-height: 1.6; } .testimonial-author { display: flex; align-items: center; justify-content: center; } .author-image { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; margin-right: 20px; } .author-image img { width: 100%; height: 100%; object-fit: cover; } .author-info h4 { font-size: 1.2rem; margin-bottom: 5px; } .author-info p { color: var(--gray); font-size: 0.9rem; } .slider-nav { display: flex; justify-content: center; margin-top: 30px; } .slider-dot { width: 12px; height: 12px; background-color: #ddd; border-radius: 50%; margin: 0 5px; cursor: pointer; transition: all 0.3s ease; } .slider-dot.active { background-color: var(--primary); transform: scale(1.2); } /* Team Section */ .team { padding: 100px 5%; background-color: white; } .team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px; } .team-member { background-color: #f9f9f9; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: all 0.3s ease; text-align: center; } .team-member:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); } .member-image { height: 300px; overflow: hidden; position: relative; } .member-image img { width: 100%; height: 100%; object-fit: cover; transition: all 0.5s ease; } .team-member:hover .member-image img { transform: scale(1.1); } .member-social { position: absolute; bottom: 20px; left: 0; width: 100%; display: flex; justify-content: center; opacity: 0; transform: translateY(20px); transition: all 0.3s ease; } .team-member:hover .member-social { opacity: 1; transform: translateY(0); } .member-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: var(--primary); color: var(--dark); border-radius: 50%; margin: 0 5px; text-decoration: none; transition: all 0.3s ease; } .member-social a:hover { background-color: var(--dark); color: var(--primary); } .member-info { padding: 25px 20px; } .member-info h3 { font-size: 1.3rem; margin-bottom: 5px; } .member-info p { color: var(--gray); font-size: 0.9rem; } /* Contact Section */ .contact { padding: 100px 5%; background-color: #f5f5f5; } .contact-container { display: flex; flex-wrap: wrap; justify-content: space-between; margin-top: 50px; } .contact-info { flex: 1; min-width: 300px; padding-right: 40px; } .contact-info h3 { font-size: 1.8rem; margin-bottom: 20px; } .info-item { display: flex; align-items: flex-start; margin-bottom: 25px; } .info-icon { width: 50px; height: 50px; background-color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 20px; flex-shrink: 0; color: var(--dark); font-size: 20px; } .info-text h4 { font-size: 1.2rem; margin-bottom: 5px; } .info-text p { color: var(--gray); line-height: 1.6; } .contact-form { flex: 1; min-width: 300px; background-color: white; padding: 40px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); } .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 600; } .form-control { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 5px; font-size: 16px; transition: all 0.3s ease; } .form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2); } textarea.form-control { min-height: 150px; resize: vertical; } /* Footer */ footer { background-color: var(--dark); color: white; padding: 70px 5% 30px; } .footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; margin-bottom: 50px; } .footer-column { flex: 1; min-width: 250px; margin-bottom: 30px; } .footer-column h3 { font-size: 1.3rem; margin-bottom: 20px; color: var(--primary); } .footer-column p { color: #aaa; line-height: 1.6; margin-bottom: 15px; } .footer-links { list-style: none; } .footer-links li { margin-bottom: 10px; } .footer-links a { color: #aaa; text-decoration: none; transition: all 0.3s ease; } .footer-links a:hover { color: var(--primary); padding-left: 5px; } .social-links { display: flex; } .social-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: rgba(255,255,255,0.1); border-radius: 50%; margin-right: 10px; color: white; text-decoration: none; transition: all 0.3s ease; } .social-links a:hover { background-color: var(--primary); color: var(--dark); } .footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); color: #aaa; font-size: 0.9rem; } /* Animations */ @keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } @keyframes float { 0% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(180deg); } 100% { transform: translateY(0) rotate(360deg); } } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } /* Responsive Styles */ @media (max-width: 992px) { .hero h1 { font-size: 2.8rem; } .section-title h2 { font-size: 2rem; } } @media (max-width: 768px) { .menu-toggle { display: block; } .nav-links { position: fixed; top: 80px; left: -100%; width: 100%; height: calc(100vh - 80px); background-color: var(--primary); flex-direction: column; align-items: center; justify-content: center; transition: all 0.5s ease; } .nav-links.active { left: 0; } .nav-links li { margin: 15px 0; } .hero h1 { font-size: 2.5rem; } .about-content { flex-direction: column; } .about-text { padding-right: 0; margin-bottom: 30px; } .contact-container { flex-direction: column; } .contact-info { padding-right: 0; margin-bottom: 40px; } } @media (max-width: 576px) { .hero h1 { font-size: 2rem; } .hero p { font-size: 1rem; } .btn { padding: 10px 25px; } .section-title h2 { font-size: 1.8rem; } .stats-grid { grid-template-columns: 1fr; } .footer-column { min-width: 100%; } }
JavaScript
// Mobile Menu Toggle const menuToggle = document.getElementById('menuToggle'); const navLinks = document.getElementById('navLinks'); menuToggle.addEventListener('click', () => { navLinks.classList.toggle('active'); }); // Close mobile menu when clicking on a link document.querySelectorAll('.nav-links a').forEach(link => { link.addEventListener('click', () => { navLinks.classList.remove('active'); }); }); // Header scroll effect window.addEventListener('scroll', () => { const header = document.getElementById('header'); if (window.scrollY > 50) { header.classList.add('scrolled'); } else { header.classList.remove('scrolled'); } }); // Testimonial slider const slides = document.querySelectorAll('.testimonial-slide'); const dots = document.querySelectorAll('.slider-dot'); let currentSlide = 0; function showSlide(n) { slides.forEach(slide => slide.classList.remove('active')); dots.forEach(dot => dot.classList.remove('active')); currentSlide = (n + slides.length) % slides.length; slides[currentSlide].classList.add('active'); dots[currentSlide].classList.add('active'); } dots.forEach((dot, index) => { dot.addEventListener('click', () => showSlide(index)); }); // Auto slide change setInterval(() => { showSlide(currentSlide + 1); }, 5000); // Counter animation for stats const counters = document.querySelectorAll('.stat-number'); const speed = 200; function animateCounters() { counters.forEach(counter => { const target = +counter.getAttribute('data-count'); const count = +counter.innerText; const increment = target / speed; if (count < target) { counter.innerText = Math.ceil(count + increment); setTimeout(animateCounters, 1); } else { counter.innerText = target; } }); } // Start counter animation when stats section is in view const statsSection = document.querySelector('.stats'); const observer = new IntersectionObserver((entries) => { if (entries[0].isIntersecting) { animateCounters(); observer.unobserve(statsSection); } }); observer.observe(statsSection); // Form submission const contactForm = document.getElementById('contactForm'); contactForm.addEventListener('submit', (e) => { e.preventDefault(); alert('Thank you for your message! We will get back to you soon.'); contactForm.reset(); });
Output Preview
Desktop
Mobile
Fullscreen