Premium Egg Products 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>Egg Corner - Premium Egg Products</title> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet"> <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"> <div class="container header-container"> <a href="#" class="logo"> <i class="fas fa-egg"></i> <span>Egg Corner</span> </a> <button class="mobile-menu-btn" id="mobileMenuBtn"> <i class="fas fa-bars"></i> </button> <ul class="nav-links" id="navLinks"> <li><a href="#home">Home</a></li> <li><a href="#about">About</a></li> <li><a href="#products">Products</a></li> <li><a href="#services">Services</a></li> <li><a href="#gallery">Gallery</a></li> <li><a href="#contact">Contact</a></li> </ul> </div> </header> <!-- Hero Section --> <section class="hero" id="home"> <div class="container"> <div class="hero-content"> <h1>Premium Quality Eggs From Happy Hens</h1> <p>At Egg Corner, we deliver farm-fresh, organic eggs straight to your doorstep. Our hens are free-range and fed with the finest natural ingredients.</p> <div class="hero-btns"> <a href="#products" class="btn">Our Products</a> <a href="#contact" class="btn btn-outline">Contact Us</a> </div> </div> </div> </section> <!-- About Section --> <section class="section about" id="about"> <div class="container"> <div class="about-container"> <div class="about-img"> <img src="https://plus.unsplash.com/premium_photo-1682126481562-9351c1a5d3c1?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="Farm fresh eggs"> <a href="https://unsplash.com/photos/brown-eggs-on-brown-woven-basket-during-daytime-QvXy2mHhX_s" style="display:none;" target="_blank">Photo by Unsplash</a> </div> <div class="about-content"> <h2 class="section-title">About Our Farm</h2> <p>Egg Corner was founded in 2010 with a simple mission: to provide the highest quality eggs while maintaining ethical farming practices.</p> <p>Our hens roam freely in spacious, open-air barns and pastures, resulting in eggs that are not only delicious but also packed with nutrients.</p> <div class="about-features"> <div class="about-feature"> <i class="fas fa-leaf"></i> <div> <h3>Organic Feed</h3> <p>Our hens are fed with 100% organic, non-GMO feed with no antibiotics or hormones.</p> </div> </div> <div class="about-feature"> <i class="fas fa-heart"></i> <div> <h3>Animal Welfare</h3> <p>We prioritize the health and happiness of our hens with spacious living conditions.</p> </div> </div> <div class="about-feature"> <i class="fas fa-award"></i> <div> <h3>Certified Quality</h3> <p>Our farm is certified organic and meets all USDA and local food safety standards.</p> </div> </div> </div> </div> </div> </div> </section> <!-- Products Section --> <section class="section products" id="products"> <div class="container"> <div class="text-center"> <h2 class="section-title">Our Products</h2> <p class="section-subtitle">Choose from our wide variety of premium egg products, each carefully packed to ensure freshness and quality.</p> </div> <div class="products-grid"> <div class="product-card"> <div class="product-img"> <img src="https://images.unsplash.com/photo-1587486913049-53fc88980cfc?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80" alt="Classic White Eggs"> <a href="https://unsplash.com/photos/brown-eggs-on-brown-woven-basket-during-daytime-QvXy2mHhX_s" style="display:none;" target="_blank">Photo by Unsplash</a> </div> <div class="product-content"> <h3 class="product-title">Classic White Eggs</h3> <div class="product-price">$4.99 / dozen</div> <p class="product-desc">Our signature white eggs from happy, free-range hens with rich, golden yolks.</p> <a href="#" class="btn">Add to Cart</a> </div> </div> <div class="product-card"> <div class="product-img"> <img src="https://images.unsplash.com/photo-1559738928-5d5dc5c2458d?q=80&w=580&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="Brown Organic Eggs"> <a href="https://unsplash.com/photos/white-egg-on-brown-woven-basket-IXMR6FvZ3jQ" style="display:none;" target="_blank">Photo by Unsplash</a> </div> <div class="product-content"> <h3 class="product-title">Brown Organic Eggs</h3> <div class="product-price">$5.99 / dozen</div> <p class="product-desc">Certified organic brown eggs with superior taste and nutritional value.</p> <a href="#" class="btn">Add to Cart</a> </div> </div> <div class="product-card"> <div class="product-img"> <img src="https://images.unsplash.com/photo-1587486913049-53fc88980cfc?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80" alt="Pasture Raised Eggs"> <a href="https://unsplash.com/photos/white-egg-near-brown-egg-on-brown-woven-basket-4_jhDO54BYg" style="display:none;" target="_blank">Photo by Unsplash</a> </div> <div class="product-content"> <h3 class="product-title">Pasture Raised Eggs</h3> <div class="product-price">$6.99 / dozen</div> <p class="product-desc">From hens that roam freely on pasture, resulting in eggs with deep orange yolks.</p> <a href="#" class="btn">Add to Cart</a> </div> </div> </div> </div> </section> <!-- Services Section --> <section class="section services" id="services"> <div class="container"> <div class="text-center"> <h2 class="section-title">Our Services</h2> <p class="section-subtitle">We go beyond just selling eggs. Explore our additional services designed to make your experience better.</p> </div> <div class="services-grid"> <div class="service-card"> <div class="service-icon"> <i class="fas fa-truck"></i> </div> <h3 class="service-title">Home Delivery</h3> <p class="service-desc">Fresh eggs delivered to your doorstep weekly or bi-weekly with our subscription service.</p> </div> <div class="service-card"> <div class="service-icon"> <i class="fas fa-store"></i> </div> <h3 class="service-title">Farm Store</h3> <p class="service-desc">Visit our farm store for fresh eggs, local honey, and other farm products.</p> </div> <div class="service-card"> <div class="service-icon"> <i class="fas fa-school"></i> </div> <h3 class="service-title">Farm Tours</h3> <p class="service-desc">Educational tours to see how we raise our hens and produce high-quality eggs.</p> </div> </div> </div> </section> <!-- Testimonials Section --> <section class="section testimonials"> <div class="container"> <div class="text-center"> <h2 class="section-title">What Our Customers Say</h2> <p class="section-subtitle">Don't just take our word for it. Here's what our satisfied customers have to say about Egg Corner.</p> </div> <div class="testimonials-slider"> <div class="testimonial-slide"> <p class="testimonial-content">"The difference in taste between Egg Corner's eggs and supermarket eggs is night and day. The yolks are so rich and flavorful, and I love knowing the hens are treated humanely."</p> <div class="testimonial-author"> <div class="author-img"> <img src="https://images.unsplash.com/photo-1438761681033-6461ffad8d80?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80" alt="Sarah Johnson"> <a href="https://unsplash.com/photos/woman-in-white-tank-top-smiling-7jCY3EjOjDc" style="display:none;" target="_blank">Photo by Unsplash</a> </div> <div class="author-info"> <h4>Sarah Johnson</h4> <p>Regular Customer</p> </div> </div> </div> <div class="testimonial-slide"> <p class="testimonial-content">"As a chef, I'm extremely particular about ingredients. Egg Corner provides the most consistent, high-quality eggs I've found. My customers can taste the difference!"</p> <div class="testimonial-author"> <div class="author-img"> <img src="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1974&q=80" alt="Michael Chen"> <a href="https://unsplash.com/photos/man-in-black-crew-neck-t-shirt-smiling-7jCY3EjOjDc" style="display:none;" target="_blank">Photo by Unsplash</a> </div> <div class="author-info"> <h4>Michael Chen</h4> <p>Restaurant Owner</p> </div> </div> </div> <div class="testimonial-slide"> <p class="testimonial-content">"The home delivery service is so convenient, and the eggs always arrive in perfect condition. My family loves the farm tours too - great educational experience for kids!"</p> <div class="testimonial-author"> <div class="author-img"> <img src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1974&q=80" alt="Emily Rodriguez"> <a href="https://unsplash.com/photos/woman-in-white-shirt-smiling-7jCY3EjOjDc" style="display:none;" target="_blank">Photo by Unsplash</a> </div> <div class="author-info"> <h4>Emily Rodriguez</h4> <p>Subscription Member</p> </div> </div> </div> </div> </div> </section> <!-- Gallery Section --> <section class="section gallery" id="gallery"> <div class="container"> <div class="text-center"> <h2 class="section-title">Our Farm Gallery</h2> <p class="section-subtitle">Take a peek at our farm operations and happy hens that produce your favorite eggs.</p> </div> <div class="gallery-grid"> <div class="gallery-item"> <img src="https://plus.unsplash.com/premium_photo-1682126481562-9351c1a5d3c1?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="Hen House"> <a href="https://unsplash.com/photos/chicken-coop-near-trees-during-daytime-7jCY3EjOjDc" style="display:none;" target="_blank">Photo by Unsplash</a> <div class="gallery-overlay"> <i class="fas fa-search-plus"></i> </div> </div> <div class="gallery-item"> <img src="https://images.unsplash.com/photo-1559738928-5d5dc5c2458d?q=80&w=580&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="Free Range Hens"> <a href="https://unsplash.com/photos/chickens-on-grass-field-during-daytime-7jCY3EjOjDc" style="display:none;" target="_blank">Photo by Unsplash</a> <div class="gallery-overlay"> <i class="fas fa-search-plus"></i> </div> </div> <div class="gallery-item"> <img src="https://images.unsplash.com/photo-1648141499246-97a0eb56c2fd?q=80&w=435&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="Egg Collection"> <a href="https://unsplash.com/photos/person-holding-brown-eggs-7jCY3EjOjDc" style="display:none;" target="_blank">Photo by Unsplash</a> <div class="gallery-overlay"> <i class="fas fa-search-plus"></i> </div> </div> <div class="gallery-item"> <img src="https://images.unsplash.com/photo-1587486913049-53fc88980cfc?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80" alt="Farm Store"> <a href="https://unsplash.com/photos/wooden-shelves-with-vegetables-and-eggs-7jCY3EjOjDc" style="display:none;" target="_blank">Photo by Unsplash</a> <div class="gallery-overlay"> <i class="fas fa-search-plus"></i> </div> </div> </div> </div> </section> <!-- Team Section --> <section class="section team"> <div class="container"> <div class="text-center"> <h2 class="section-title">Meet Our Team</h2> <p class="section-subtitle">The passionate people behind Egg Corner who work hard to bring you the freshest eggs.</p> </div> <div class="team-grid"> <div class="team-member"> <div class="member-img"> <img src="https://images.unsplash.com/photo-1560250097-0b93528c311a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=987&q=80" alt="John Peterson"> <a href="https://unsplash.com/photos/man-in-blue-button-up-shirt-smiling-7jCY3EjOjDc" style="display:none;" target="_blank">Photo by Unsplash</a> </div> <div class="member-info"> <h3 class="member-name">John Peterson</h3> <p class="member-position">Founder & Farm Manager</p> <div class="member-social"> <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> </div> </div> </div> <div class="team-member"> <div class="member-img"> <img src="https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=988&q=80" alt="Maria Garcia"> <a href="https://unsplash.com/photos/woman-in-gray-blazer-holding-tablet-computer-7jCY3EjOjDc" style="display:none;" target="_blank">Photo by Unsplash</a> </div> <div class="member-info"> <h3 class="member-name">Maria Garcia</h3> <p class="member-position">Operations Director</p> <div class="member-social"> <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> </div> </div> </div> <div class="team-member"> <div class="member-img"> <img src="https://images.unsplash.com/photo-1551836022-d5d88e9218df?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=987&q=80" alt="David Kim"> <a href="https://unsplash.com/photos/man-in-black-suit-jacket-standing-7jCY3EjOjDc" style="display:none;" target="_blank">Photo by Unsplash</a> </div> <div class="member-info"> <h3 class="member-name">David Kim</h3> <p class="member-position">Head of Distribution</p> <div class="member-social"> <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> </div> </div> </div> <div class="team-member"> <div class="member-img"> <img src="https://images.unsplash.com/photo-1573497019940-1c28c88b4f3e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=987&q=80" alt="Sarah Williams"> <a href="https://unsplash.com/photos/woman-in-black-blazer-holding-silver-laptop-computer-7jCY3EjOjDc" style="display:none;" target="_blank">Photo by Unsplash</a> </div> <div class="member-info"> <h3 class="member-name">Sarah Williams</h3> <p class="member-position">Customer Relations</p> <div class="member-social"> <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> </div> </div> </div> </div> </div> </section> <!-- Stats Section --> <section class="section stats"> <div class="container"> <div class="text-center"> <h2 class="section-title">Our Numbers Speak</h2> <p class="section-subtitle">We take pride in our achievements and the positive impact we've made in our community.</p> </div> <div class="stats-grid"> <div class="stat-item"> <div class="stat-number">10,000+</div> <div class="stat-title">Happy Hens</div> </div> <div class="stat-item"> <div class="stat-number">50,000+</div> <div class="stat-title">Eggs Daily</div> </div> <div class="stat-item"> <div class="stat-number">5,000+</div> <div class="stat-title">Satisfied Customers</div> </div> <div class="stat-item"> <div class="stat-number">12</div> <div class="stat-title">Years of Experience</div> </div> </div> </div> </section> <!-- Contact Section --> <section class="section contact" id="contact"> <div class="container"> <div class="text-center"> <h2 class="section-title">Get In Touch</h2> <p class="section-subtitle">Have questions or want to place an order? Reach out to us through any of these channels.</p> </div> <div class="contact-container"> <div class="contact-info"> <h3>Contact Information</h3> <div class="contact-details"> <div class="contact-item"> <div class="contact-icon"> <i class="fas fa-map-marker-alt"></i> </div> <div class="contact-text"> <h4>Address</h4> <p>123 Farm Road, Countryside, CA 90210</p> </div> </div> <div class="contact-item"> <div class="contact-icon"> <i class="fas fa-phone-alt"></i> </div> <div class="contact-text"> <h4>Phone</h4> <p>(555) 123-4567</p> </div> </div> <div class="contact-item"> <div class="contact-icon"> <i class="fas fa-envelope"></i> </div> <div class="contact-text"> <h4>Email</h4> <p>info@eggcorner.com</p> </div> </div> <div class="contact-item"> <div class="contact-icon"> <i class="fas fa-clock"></i> </div> <div class="contact-text"> <h4>Hours</h4> <p>Monday - Friday: 9am - 5pm<br>Saturday: 10am - 4pm</p> </div> </div> </div> <h3>Follow Us</h3> <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-youtube"></i></a> </div> </div> <div class="contact-form"> <form> <div class="form-group"> <input type="text" class="form-control" placeholder="Your Name" required> </div> <div class="form-group"> <input type="email" class="form-control" placeholder="Your Email" required> </div> <div class="form-group"> <input type="text" class="form-control" placeholder="Subject"> </div> <div class="form-group"> <textarea class="form-control" placeholder="Your Message" required></textarea> </div> <button type="submit" class="btn">Send Message</button> </form> </div> </div> </div> </section> <!-- Footer --> <footer> <div class="container"> <div class="footer-container"> <div class="footer-col"> <h3>Egg Corner</h3> <p>Providing farm-fresh, organic eggs from happy, free-range hens since 2010.</p> <div class="footer-contact-item"> <i class="fas fa-map-marker-alt"></i> <span>123 Farm Road, Countryside, CA 90210</span> </div> <div class="footer-contact-item"> <i class="fas fa-phone-alt"></i> <span>(555) 123-4567</span> </div> <div class="footer-contact-item"> <i class="fas fa-envelope"></i> <span>info@eggcorner.com</span> </div> </div> <div class="footer-col"> <h3>Quick Links</h3> <ul class="footer-links"> <li><a href="#home">Home</a></li> <li><a href="#about">About Us</a></li> <li><a href="#products">Products</a></li> <li><a href="#services">Services</a></li> <li><a href="#gallery">Gallery</a></li> <li><a href="#contact">Contact</a></li> </ul> </div> <div class="footer-col"> <h3>Products</h3> <ul class="footer-links"> <li><a href="#">Classic White Eggs</a></li> <li><a href="#">Brown Organic Eggs</a></li> <li><a href="#">Pasture Raised Eggs</a></li> <li><a href="#">Jumbo Eggs</a></li> <li><a href="#">Egg Subscriptions</a></li> <li><a href="#">Gift Boxes</a></li> </ul> </div> <div class="footer-col footer-newsletter"> <h3>Newsletter</h3> <p>Subscribe to our newsletter for updates, promotions, and farm news.</p> <form class="newsletter-form"> <input type="email" class="newsletter-input" placeholder="Your Email" required> <button type="submit" class="newsletter-btn">Subscribe</button> </form> </div> </div> <div class="footer-bottom"> <p>© 2023 Egg Corner. All Rights Reserved. | Designed with <i class="fas fa-heart"></i> by Egg Corner Team</p> </div> </div> </footer> </body> </html>
CSS
:root { --primary-blue: #1a73e8; --dark-blue: #0d47a1; --light-blue: #e8f0fe; --accent-yellow: #ffd600; --text-dark: #202124; --text-light: #5f6368; --white: #ffffff; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Poppins', sans-serif; color: var(--text-dark); overflow-x: hidden; line-height: 1.6; } a { text-decoration: none; color: inherit; } ul { list-style: none; } img { max-width: 100%; height: auto; } .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; } .btn { display: inline-block; padding: 12px 30px; background-color: var(--primary-blue); color: var(--white); border-radius: 30px; font-weight: 500; transition: all 0.3s ease; border: none; cursor: pointer; font-size: 16px; } .btn:hover { background-color: var(--dark-blue); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); } .btn-outline { background-color: transparent; border: 2px solid var(--primary-blue); color: var(--primary-blue); } .btn-outline:hover { background-color: var(--primary-blue); color: var(--white); } .section { padding: 80px 0; } .section-title { font-size: 2.5rem; margin-bottom: 20px; color: var(--dark-blue); position: relative; display: inline-block; } .section-title::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 70px; height: 4px; background-color: var(--accent-yellow); border-radius: 2px; } .section-subtitle { font-size: 1.1rem; color: var(--text-light); margin-bottom: 40px; /* max-width: 700px; */ } .text-center { text-align: center; } .text-center .section-title::after { left: 50%; transform: translateX(-50%); } /* Header */ header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: all 0.3s ease; padding: 20px 0; } header.scrolled { background-color: var(--white); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); padding: 15px 0; } .header-container { display: flex; justify-content: space-between; align-items: center; } .logo { font-size: 1.8rem; font-weight: 700; color: var(--white); display: flex; align-items: center; } header.scrolled .logo { color: var(--primary-blue); } .logo i { margin-right: 10px; color: var(--accent-yellow); } .nav-links { display: flex; } .nav-links li { margin-left: 30px; } .nav-links a { color: var(--white); font-weight: 500; transition: color 0.3s ease; position: relative; } header.scrolled .nav-links a { color: var(--text-dark); } .nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background-color: var(--accent-yellow); transition: width 0.3s ease; } .nav-links a:hover::after { width: 100%; } .nav-links a:hover { color: var(--accent-yellow); } .mobile-menu-btn { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; } header.scrolled .mobile-menu-btn { color: var(--primary-blue); } /* Hero Section */ .hero { height: 100vh; background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1587486913049-53fc88980cfc?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center/cover; display: flex; align-items: center; color: var(--white); text-align: center; position: relative; } .hero::before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 100px; background: linear-gradient(to top, var(--light-blue), transparent); } .hero-content { max-width: 800px; margin: 0 auto; animation: fadeInUp 1s ease; } .hero h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; } .hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; } .hero-btns { display: flex; justify-content: center; gap: 20px; } /* About Section */ .about { background-color: var(--light-blue); } .about-container { display: flex; align-items: center; gap: 50px; } .about-img { flex: 1; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); animation: fadeInLeft 1s ease; } .about-img img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; } .about-img:hover img { transform: scale(1.05); } .about-content { flex: 1; animation: fadeInRight 1s ease; } .about-content h2 { margin-bottom: 20px; } .about-content p { margin-bottom: 20px; color: var(--text-light); } .about-features { margin-top: 30px; } .about-feature { display: flex; align-items: flex-start; margin-bottom: 20px; } .about-feature i { font-size: 1.5rem; color: var(--primary-blue); margin-right: 15px; margin-top: 5px; } /* Products Section */ .products { background-color: var(--white); } .products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; } .product-card { background-color: var(--white); border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); transition: all 0.3s ease; animation: fadeInUp 0.5s ease; } .product-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); } .product-img { height: 250px; overflow: hidden; } .product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; } .product-card:hover .product-img img { transform: scale(1.1); } .product-content { padding: 20px; } .product-title { font-size: 1.3rem; margin-bottom: 10px; color: var(--dark-blue); } .product-price { font-size: 1.2rem; font-weight: 600; color: var(--primary-blue); margin-bottom: 15px; } .product-desc { color: var(--text-light); margin-bottom: 20px; } /* Services Section */ .services { background-color: var(--light-blue); } .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; } .service-card { background-color: var(--white); border-radius: 15px; padding: 40px 30px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); transition: all 0.3s ease; animation: fadeInUp 0.5s ease; } .service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); } .service-icon { width: 80px; height: 80px; background-color: var(--primary-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; color: var(--white); font-size: 1.8rem; transition: all 0.3s ease; } .service-card:hover .service-icon { background-color: var(--dark-blue); transform: rotateY(180deg); } .service-title { font-size: 1.3rem; margin-bottom: 15px; color: var(--dark-blue); } .service-desc { color: var(--text-light); } /* Testimonials Section */ .testimonials .section-subtitle { max-width: 800px; margin-left: auto; margin-right: auto; } .testimonials-slider { margin-top: 50px; position: relative; overflow: hidden; } .testimonial-slide { background-color: var(--white); border-radius: 15px; padding: 30px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); margin: 0 15px; position: relative; } .testimonial-slide::before { content: '\201C'; font-size: 5rem; color: var(--primary-blue); opacity: 0.1; position: absolute; top: 10px; left: 20px; font-family: serif; } .testimonial-content { position: relative; z-index: 1; margin-bottom: 20px; color: var(--text-light); font-style: italic; } .testimonial-author { display: flex; align-items: center; } .author-img { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; margin-right: 15px; } .author-img img { width: 100%; height: 100%; object-fit: cover; } .author-info h4 { font-size: 1.1rem; color: var(--dark-blue); margin-bottom: 5px; } .author-info p { color: var(--text-light); font-size: 0.9rem; } /* Gallery Section */ .gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 50px; } .gallery-item { position: relative; border-radius: 15px; overflow: hidden; height: 250px; animation: fadeIn 0.5s ease; } .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; } .gallery-item:hover img { transform: scale(1.1); } .gallery-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; } .gallery-item:hover .gallery-overlay { opacity: 1; } .gallery-overlay i { color: var(--white); font-size: 2rem; } /* Team Section */ .team { background-color: var(--light-blue); } .team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px; } .team-member { background-color: var(--white); border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); transition: all 0.3s ease; animation: fadeInUp 0.5s ease; } .team-member:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); } .member-img { height: 300px; overflow: hidden; } .member-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; } .team-member:hover .member-img img { transform: scale(1.1); } .member-info { padding: 20px; text-align: center; } .member-name { font-size: 1.2rem; margin-bottom: 5px; color: var(--dark-blue); } .member-position { color: var(--primary-blue); margin-bottom: 15px; font-size: 0.9rem; } .member-social { display: flex; justify-content: center; gap: 15px; } .member-social a { width: 35px; height: 35px; border-radius: 50%; background-color: var(--light-blue); display: flex; align-items: center; justify-content: center; color: var(--primary-blue); transition: all 0.3s ease; } .member-social a:hover { background-color: var(--primary-blue); color: var(--white); } /* Stats Section */ .stats { background: linear-gradient(rgba(26, 115, 232, 0.9), rgba(26, 115, 232, 0.9)), url('https://images.unsplash.com/photo-1550583724-b2692b85b150?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center/cover; color: var(--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 20px; background-color: rgba(255, 255, 255, 0.1); border-radius: 10px; backdrop-filter: blur(5px); transition: all 0.3s ease; animation: fadeIn 0.5s ease; } .stat-item:hover { transform: translateY(-10px); background-color: rgba(255, 255, 255, 0.2); } .stat-number { font-size: 2.5rem; font-weight: 700; margin-bottom: 10px; } .stat-title { font-size: 1.1rem; opacity: 0.9; } /* Contact Section */ .contact-container { display: flex; gap: 50px; } .contact-info { flex: 1; animation: fadeInLeft 1s ease; } .contact-form { flex: 1; animation: fadeInRight 1s ease; } .contact-info h3 { font-size: 1.5rem; margin-bottom: 20px; color: var(--dark-blue); } .contact-details { margin-bottom: 30px; } .contact-item { display: flex; align-items: flex-start; margin-bottom: 20px; } .contact-icon { width: 50px; height: 50px; background-color: var(--light-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-blue); font-size: 1.2rem; margin-right: 15px; flex-shrink: 0; } .contact-text h4 { font-size: 1.1rem; margin-bottom: 5px; color: var(--dark-blue); } .contact-text p { color: var(--text-light); } .social-links { display: flex; gap: 15px; } .social-links a { width: 45px; height: 45px; border-radius: 50%; background-color: var(--light-blue); display: flex; align-items: center; justify-content: center; color: var(--primary-blue); font-size: 1.2rem; transition: all 0.3s ease; } .social-links a:hover { background-color: var(--primary-blue); color: var(--white); transform: translateY(-5px); } .form-group { margin-bottom: 20px; } .form-control { width: 100%; padding: 15px 20px; border: 1px solid #ddd; border-radius: 10px; font-family: 'Poppins', sans-serif; font-size: 1rem; transition: all 0.3s ease; } .form-control:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2); outline: none; } textarea.form-control { min-height: 150px; resize: vertical; } /* Footer */ footer { background-color: var(--dark-blue); color: var(--white); padding: 80px 0 30px; } .footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 50px; } .footer-col h3 { font-size: 1.3rem; margin-bottom: 25px; position: relative; display: inline-block; } .footer-col h3::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 50px; height: 3px; background-color: var(--accent-yellow); } .footer-col p { margin-bottom: 20px; opacity: 0.8; } .footer-links li { margin-bottom: 15px; } .footer-links a { opacity: 0.8; transition: all 0.3s ease; display: inline-block; } .footer-links a:hover { opacity: 1; color: var(--accent-yellow); transform: translateX(5px); } .footer-contact-item { display: flex; align-items: flex-start; margin-bottom: 15px; } .footer-contact-item i { margin-right: 10px; color: var(--accent-yellow); } .footer-newsletter p { margin-bottom: 20px; } .newsletter-form { display: flex; } .newsletter-input { flex: 1; padding: 12px 15px; border: none; border-radius: 30px 0 0 30px; font-family: 'Poppins', sans-serif; } .newsletter-btn { padding: 12px 20px; background-color: var(--accent-yellow); color: var(--text-dark); border: none; border-radius: 0 30px 30px 0; font-weight: 600; cursor: pointer; transition: all 0.3s ease; } .newsletter-btn:hover { background-color: var(--white); } .footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); } .footer-bottom p { opacity: 0.7; font-size: 0.9rem; } /* Animations */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } } @keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } } /* Responsive Styles */ @media (max-width: 992px) { .about-container, .contact-container { flex-direction: column; } .about-img, .about-content, .contact-info, .contact-form { width: 100%; } .about-img { margin-bottom: 30px; } .section-title { font-size: 2rem; } .hero h1 { font-size: 2.8rem; } } @media (max-width: 768px) { .nav-links { position: fixed; top: 0; right: -100%; width: 80%; max-width: 300px; height: 100vh; background-color: var(--white); flex-direction: column; align-items: center; justify-content: center; transition: all 0.5s ease; box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1); z-index: 1001; } .nav-links.active { right: 0; } .nav-links li { margin: 15px 0; } .nav-links a { color: var(--text-dark); font-size: 1.2rem; } .mobile-menu-btn { display: block; z-index: 1002; } .hero h1 { font-size: 2.2rem; } .hero p { font-size: 1rem; } .hero-btns { flex-direction: column; gap: 15px; } .btn { width: 100%; } .section { padding: 60px 0; } } @media (max-width: 576px) { .section-title { font-size: 1.8rem; } .section-subtitle { font-size: 1rem; } .hero h1 { font-size: 1.8rem; } .newsletter-form { flex-direction: column; } .newsletter-input { border-radius: 30px; margin-bottom: 10px; } .newsletter-btn { border-radius: 30px; } }
JavaScript
// Mobile Menu Toggle const mobileMenuBtn = document.getElementById('mobileMenuBtn'); const navLinks = document.getElementById('navLinks'); mobileMenuBtn.addEventListener('click', () => { navLinks.classList.toggle('active'); mobileMenuBtn.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', () => { navLinks.classList.remove('active'); mobileMenuBtn.innerHTML = '<i class="fas fa-bars"></i>'; }); }); // 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(); const targetId = this.getAttribute('href'); if (targetId === '#') return; const targetElement = document.querySelector(targetId); if (targetElement) { window.scrollTo({ top: targetElement.offsetTop - 80, behavior: 'smooth' }); } }); }); // Animation on scroll const animateOnScroll = () => { const elements = document.querySelectorAll('.product-card, .service-card, .team-member, .stat-item, .gallery-item'); elements.forEach(element => { const elementPosition = element.getBoundingClientRect().top; const windowHeight = window.innerHeight; if (elementPosition < windowHeight - 100) { element.style.opacity = '1'; element.style.transform = 'translateY(0)'; } }); }; // Initialize elements with opacity 0 for animation document.addEventListener('DOMContentLoaded', () => { const elementsToAnimate = document.querySelectorAll('.product-card, .service-card, .team-member, .stat-item, .gallery-item'); elementsToAnimate.forEach(element => { element.style.opacity = '0'; element.style.transform = 'translateY(30px)'; element.style.transition = 'all 0.5s ease'; }); // Initial check in case elements are already in view animateOnScroll(); }); window.addEventListener('scroll', animateOnScroll); // Simple testimonial slider let currentTestimonial = 0; const testimonials = document.querySelectorAll('.testimonial-slide'); function showTestimonial(index) { testimonials.forEach((testimonial, i) => { testimonial.style.display = i === index ? 'block' : 'none'; }); } function nextTestimonial() { currentTestimonial = (currentTestimonial + 1) % testimonials.length; showTestimonial(currentTestimonial); } // Initialize showTestimonial(0); setInterval(nextTestimonial, 5000);
Output Preview
Desktop
Mobile
Fullscreen