Rice Mill 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>Golden Grain Rice Mill - Premium Quality Rice</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet"> </head> <body> <!-- Header --> <header id="header"> <div class="container header-container"> <a href="#" class="logo"> <i class="fas fa-wheat"></i> <span>Golden Grain</span> </a> <ul class="nav-links"> <li><a href="#home">Home</a></li> <li><a href="#about">About</a></li> <li><a href="#products">Products</a></li> <li><a href="#process">Process</a></li> <li><a href="#gallery">Gallery</a></li> <li><a href="#contact">Contact</a></li> </ul> <div class="hamburger"> <div></div> <div></div> <div></div> </div> </div> </header> <!-- Hero Section --> <section class="hero" id="home"> <div class="hero-content"> <h1>Premium Quality Rice From Our Family To Yours</h1> <p>Golden Grain Rice Mill has been providing the finest quality rice for over 50 years, using traditional methods combined with modern technology.</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> </section> <!-- About Section --> <section class="section about" id="about"> <div class="container"> <div class="section-title"> <h2>About Our Rice Mill</h2> <p>Discover our rich heritage and commitment to quality that has made us a trusted name in rice production for generations.</p> </div> <div class="about-content"> <div class="about-img"> <img src="https://images.unsplash.com/photo-1579784340946-55a7bbd51d57?q=80&w=415&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="Rice Mill Facility"> </div> <div class="about-text"> <h3>Our Story Since 1970</h3> <p>Founded in 1970 by the Thompson family, Golden Grain Rice Mill began as a small family operation with a single mill in the heart of California's rice country. Today, we've grown into one of the region's most respected rice producers while maintaining our family values and commitment to quality.</p> <p>We take pride in every step of our process, from selecting the finest rice varieties to our meticulous milling techniques that preserve the natural goodness of each grain.</p> <div class="about-features"> <div class="feature-item"> <div class="feature-icon"> <i class="fas fa-leaf"></i> </div> <div> <h4>Natural Farming</h4> <p>We use sustainable farming practices to ensure the highest quality rice with minimal environmental impact.</p> </div> </div> <div class="feature-item"> <div class="feature-icon"> <i class="fas fa-award"></i> </div> <div> <h4>Award Winning</h4> <p>Our rice has won numerous awards for quality and taste at regional and national competitions.</p> </div> </div> </div> </div> </div> </div> </section> <!-- Products Section --> <section class="section products" id="products"> <div class="container"> <div class="section-title"> <h2>Our Premium Products</h2> <p>Explore our range of premium rice varieties, each carefully selected and processed to meet our high standards of quality.</p> </div> <div class="products-grid"> <div class="product-card"> <div class="product-img"> <img src="https://plus.unsplash.com/premium_photo-1705404738477-24fc4e77f836?q=80&w=872&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="Basmati Rice"> </div> <div class="product-info"> <h3>Golden Basmati</h3> <p>Long grain aromatic rice with a delicate flavor and fluffy texture when cooked.</p> <div class="product-price"> <span class="price">$4.99/lb</span> <a href="#" class="btn">Order Now</a> </div> </div> </div> <div class="product-card"> <div class="product-img"> <img src="https://plus.unsplash.com/premium_photo-1726072357584-b613d4134334?q=80&w=387&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="Jasmine Rice"> </div> <div class="product-info"> <h3>Golden Jasmine</h3> <p>Fragrant Thai-style rice with a slightly sticky texture perfect for Asian dishes.</p> <div class="product-price"> <span class="price">$3.99/lb</span> <a href="#" class="btn">Order Now</a> </div> </div> </div> <div class="product-card"> <div class="product-img"> <img src="https://images.unsplash.com/photo-1660491230127-159670395d39?q=80&w=881&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="Brown Rice"> </div> <div class="product-info"> <h3>Golden Brown</h3> <p>Nutritious whole grain rice with the bran layer intact for maximum health benefits.</p> <div class="product-price"> <span class="price">$5.49/lb</span> <a href="#" class="btn">Order Now</a> </div> </div> </div> </div> </div> </section> <!-- Process Section --> <section class="section process" id="process"> <div class="container"> <div class="section-title"> <h2>Our Milling Process</h2> <p>We combine traditional knowledge with modern technology to bring you the finest quality rice.</p> </div> <div class="process-steps"> <div class="step"> <div class="step-number">1</div> <h3>Harvesting</h3> <p>Our rice is harvested at peak maturity to ensure optimal flavor and texture.</p> </div> <div class="step"> <div class="step-number">2</div> <h3>Drying</h3> <p>Carefully dried to the perfect moisture content for milling and storage.</p> </div> <div class="step"> <div class="step-number">3</div> <h3>Cleaning</h3> <p>Thorough cleaning removes all impurities and foreign materials.</p> </div> <div class="step"> <div class="step-number">4</div> <h3>Milling</h3> <p>Precision milling removes the husk while preserving the grain's integrity.</p> </div> <div class="step"> <div class="step-number">5</div> <h3>Packaging</h3> <p>Packaged with care to maintain freshness from our mill to your table.</p> </div> </div> </div> </section> <!-- Gallery Section --> <section class="section gallery" id="gallery"> <div class="container"> <div class="section-title"> <h2>Our Gallery</h2> <p>A visual journey through our fields, mill, and the people behind Golden Grain Rice.</p> </div> <div class="gallery-grid"> <div class="gallery-item"> <img src="https://plus.unsplash.com/premium_photo-1705404738477-24fc4e77f836?q=80&w=872&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="Rice Fields"> <div class="gallery-overlay"> <i class="fas fa-search-plus"></i> </div> </div> <div class="gallery-item"> <img src="https://images.unsplash.com/photo-1717920954454-be67254b8758?q=80&w=387&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="Harvesting"> <div class="gallery-overlay"> <i class="fas fa-search-plus"></i> </div> </div> <div class="gallery-item"> <img src="https://images.unsplash.com/photo-1660491230127-159670395d39?q=80&w=881&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="Milling Process"> <div class="gallery-overlay"> <i class="fas fa-search-plus"></i> </div> </div> <div class="gallery-item"> <img src="https://plus.unsplash.com/premium_photo-1726072357584-b613d4134334?q=80&w=387&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="Rice Mill"> <div class="gallery-overlay"> <i class="fas fa-search-plus"></i> </div> </div> </div> </div> </section> <!-- Testimonials Section --> <section class="section testimonials"> <div class="container"> <div class="section-title"> <h2>What Our Customers Say</h2> <p>Hear from our satisfied customers who trust Golden Grain for their rice needs.</p> </div> <div class="testimonials-slider"> <div class="testimonial active"> <p class="testimonial-text">"Golden Grain's Basmati rice is the best I've ever used in my restaurant. The aroma and texture are consistently perfect, and my customers always compliment the quality."</p> <div class="testimonial-author"> <div class="author-img"> <img src="https://images.unsplash.com/photo-1560250097-0b93528c311a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80" alt="Michael Chen"> </div> <div class="author-info"> <h4>Michael Chen</h4> <p>Executive Chef, Bamboo Garden</p> </div> </div> </div> <div class="testimonial"> <p class="testimonial-text">"As a health-conscious consumer, I appreciate that Golden Grain offers organic options. Their brown rice has become a staple in my household for its nutty flavor and perfect texture."</p> <div class="testimonial-author"> <div class="author-img"> <img src="https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=688&q=80" alt="Sarah Johnson"> </div> <div class="author-info"> <h4>Sarah Johnson</h4> <p>Nutritionist & Home Cook</p> </div> </div> </div> <div class="testimonial"> <p class="testimonial-text">"We've been sourcing from Golden Grain for our grocery chain for over a decade. Their consistent quality, fair pricing, and excellent customer service make them our preferred supplier."</p> <div class="testimonial-author"> <div class="author-img"> <img src="https://images.unsplash.com/photo-1557862921-37829c790f19?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1471&q=80" alt="David Martinez"> </div> <div class="author-info"> <h4>David Martinez</h4> <p>Purchasing Manager, FreshMart</p> </div> </div> </div> <div class="slider-dots"> <div class="dot active" data-slide="0"></div> <div class="dot" data-slide="1"></div> <div class="dot" data-slide="2"></div> </div> </div> </div> </section> <!-- Team Section --> <section class="section team"> <div class="container"> <div class="section-title"> <h2>Meet Our Team</h2> <p>The dedicated people behind Golden Grain Rice Mill who ensure quality at every step.</p> </div> <div class="team-grid"> <div class="team-member"> <div class="member-img"> <img src="https://images.unsplash.com/photo-1580489944761-15a19d654956?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=761&q=80" alt="John Thompson"> </div> <div class="member-info"> <h3>John Thompson</h3> <p>Founder & CEO</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> </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=687&q=80" alt="Emily Thompson"> </div> <div class="member-info"> <h3>Emily Thompson</h3> <p>Operations Manager</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> </div> </div> </div> <div class="team-member"> <div class="member-img"> <img src="https://images.unsplash.com/photo-1568602471122-7832951cc4c5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Robert Chen"> </div> <div class="member-info"> <h3>Robert Chen</h3> <p>Head Miller</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> </div> </div> </div> </div> </div> </section> <!-- Contact Section --> <section class="section contact" id="contact"> <div class="container"> <div class="section-title"> <h2>Contact Us</h2> <p>Get in touch with us for inquiries, orders, or to visit our mill.</p> </div> <div class="contact-container"> <div class="contact-info"> <h3>Let's Talk</h3> <div class="info-item"> <div class="info-icon"> <i class="fas fa-map-marker-alt"></i> </div> <div class="info-text"> <h4>Location</h4> <p>123 Rice Farm Road, Sacramento, CA 95834</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 (916) 555-0123</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@goldengrain.com</p> </div> </div> <div class="info-item"> <div class="info-icon"> <i class="fas fa-clock"></i> </div> <div class="info-text"> <h4>Business Hours</h4> <p>Monday - Friday: 8am - 5pm</p> <p>Saturday: 9am - 1pm</p> <p>Sunday: Closed</p> </div> </div> </div> <div class="contact-form"> <form> <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> </div> </section> <!-- Footer --> <footer> <div class="container"> <div class="footer-container"> <div class="footer-col"> <h3>Golden Grain</h3> <p>Providing premium quality rice since 1970. Family owned and operated with a commitment to excellence.</p> <div class="footer-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-instagram"></i></a> <a href="#"><i class="fab fa-linkedin-in"></i></a> </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="#process">Our Process</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="#">Basmati Rice</a></li> <li><a href="#">Jasmine Rice</a></li> <li><a href="#">Brown Rice</a></li> <li><a href="#">Organic Varieties</a></li> <li><a href="#">Specialty Rice</a></li> </ul> </div> <div class="footer-col"> <h3>Newsletter</h3> <p>Subscribe to our newsletter for updates and special offers.</p> <form class="newsletter-form"> <input type="email" placeholder="Your Email" class="form-control"> <button type="submit" class="btn">Subscribe</button> </form> </div> </div> <div class="footer-bottom"> <p>© 2023 Golden Grain Rice Mill. All Rights Reserved.</p> </div> </div> </footer> <!-- Back to Top Button --> <div class="back-to-top"> <i class="fas fa-arrow-up"></i> </div> </body> </html>
CSS
:root { --primary-color: #1a73e8; --secondary-color: #0d47a1; --accent-color: #4285f4; --light-color: #e8f0fe; --dark-color: #042b61; --text-color: #333; --white: #ffffff; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Poppins', sans-serif; color: var(--text-color); line-height: 1.6; overflow-x: hidden; } a { text-decoration: none; color: inherit; } ul { list-style: none; } .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; } .btn { display: inline-block; padding: 12px 30px; background: var(--primary-color); color: var(--white); border: none; border-radius: 50px; cursor: pointer; font-weight: 500; transition: all 0.3s ease; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; } .btn:hover { background: var(--secondary-color); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); } .btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); } .btn-outline:hover { background: var(--white); color: var(--primary-color); } .section { padding: 80px 0; } .section-title { text-align: center; margin-bottom: 50px; position: relative; } .section-title h2 { font-size: 36px; font-weight: 700; color: var(--dark-color); margin-bottom: 15px; } .section-title p { font-size: 18px; color: #666; max-width: 700px; margin: 0 auto; } .section-title::after { content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 80px; height: 3px; background: var(--primary-color); } /* Header */ header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: all 0.3s ease; padding: 20px 0; } header.scrolled { background: var(--white); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); padding: 15px 0; } header.scrolled .logo { color: var(--dark-color); } header.scrolled .nav-links a { color: var(--text-color); } header.scrolled .nav-links a:hover { color: var(--primary-color); } .header-container { display: flex; justify-content: space-between; align-items: center; } .logo { font-size: 28px; font-weight: 700; color: var(--white); display: flex; align-items: center; } .logo i { margin-right: 10px; color: var(--primary-color); } .nav-links { display: flex; } .nav-links li { margin-left: 30px; } .nav-links a { font-size: 16px; font-weight: 500; color: var(--white); transition: color 0.3s ease; position: relative; } .nav-links a:hover { color: var(--light-color); } .nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--light-color); transition: width 0.3s ease; } .nav-links a:hover::after { width: 100%; } .hamburger { display: none; cursor: pointer; } .hamburger div { width: 25px; height: 3px; background: var(--white); margin: 5px; transition: all 0.3s ease; } header.scrolled .hamburger div { background: var(--dark-color); } /* 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-1579784340946-55a7bbd51d57?q=80&w=415&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover; display: flex; align-items: center; text-align: center; color: var(--white); position: relative; overflow: hidden; } .hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(13, 71, 161, 0.3); z-index: 0; } .hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 0 20px; animation: fadeInUp 1s ease; } .hero-content h1 { font-size: 48px; font-weight: 700; margin-bottom: 20px; line-height: 1.2; } .hero-content p { font-size: 20px; margin-bottom: 30px; } .hero-btns { display: flex; justify-content: center; gap: 20px; } /* About Section */ .about { background: var(--light-color); } .about-content { display: flex; align-items: center; flex-wrap: wrap; gap: 40px; } .about-img { flex: 1; min-width: 300px; border-radius: 10px; overflow: hidden; box-shadow: 0 15px 30px 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-text { flex: 1; min-width: 300px; animation: fadeInRight 1s ease; } .about-text h3 { font-size: 32px; color: var(--dark-color); margin-bottom: 20px; } .about-text p { margin-bottom: 20px; } .about-features { margin-top: 30px; } .feature-item { display: flex; align-items: flex-start; margin-bottom: 20px; } .feature-icon { font-size: 24px; color: var(--primary-color); margin-right: 15px; margin-top: 5px; } /* Products Section */ .products { background: var(--white); } .products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; } .product-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; animation: fadeInUp 0.5s ease; } .product-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); } .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-info { padding: 20px; } .product-info h3 { font-size: 20px; margin-bottom: 10px; color: var(--dark-color); } .product-info p { margin-bottom: 15px; color: #666; } .product-price { display: flex; justify-content: space-between; align-items: center; } .price { font-size: 22px; font-weight: 700; color: var(--primary-color); } /* Process Section */ .process { background: var(--light-color); } .process-steps { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-top: 50px; } .step { flex: 1; min-width: 250px; text-align: center; padding: 30px 20px; background: var(--white); border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; position: relative; animation: fadeInUp 0.5s ease; } .step:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); } .step-number { width: 60px; height: 60px; background: var(--primary-color); color: var(--white); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 24px; font-weight: 700; margin: 0 auto 20px; position: relative; z-index: 1; } .step-number::before { content: ''; position: absolute; width: 80px; height: 80px; background: rgba(26, 115, 232, 0.2); border-radius: 50%; z-index: -1; } .step h3 { font-size: 22px; margin-bottom: 15px; color: var(--dark-color); } /* Gallery Section */ .gallery { background: var(--white); } .gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; } .gallery-item { position: relative; border-radius: 10px; 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: rgba(13, 71, 161, 0.7); display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; } .gallery-item:hover .gallery-overlay { opacity: 1; } .gallery-overlay i { color: var(--white); font-size: 40px; } /* Testimonials Section */ .testimonials { background: var(--light-color); } .testimonials-slider { max-width: 800px; margin: 0 auto; position: relative; } .testimonial { background: var(--white); padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); text-align: center; margin: 20px; display: none; animation: fadeIn 0.5s ease; } .testimonial.active { display: block; } .testimonial-text { font-size: 18px; font-style: italic; margin-bottom: 20px; color: #555; } .testimonial-author { display: flex; align-items: center; justify-content: 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: 18px; color: var(--dark-color); margin-bottom: 5px; } .author-info p { font-size: 14px; color: #777; } .slider-dots { display: flex; justify-content: center; margin-top: 30px; } .dot { width: 12px; height: 12px; background: #ccc; border-radius: 50%; margin: 0 5px; cursor: pointer; transition: background 0.3s ease; } .dot.active { background: var(--primary-color); } /* Team Section */ .team { background: var(--white); } .team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; } .team-member { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; text-align: center; animation: fadeInUp 0.5s ease; } .team-member:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); } .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; } .member-info h3 { font-size: 22px; margin-bottom: 5px; color: var(--dark-color); } .member-info p { color: var(--primary-color); margin-bottom: 15px; } .social-links { display: flex; justify-content: center; gap: 15px; } .social-links a { width: 35px; height: 35px; background: var(--light-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: var(--primary-color); transition: all 0.3s ease; } .social-links a:hover { background: var(--primary-color); color: var(--white); } /* Contact Section */ .contact { background: var(--light-color); } .contact-container { display: flex; flex-wrap: wrap; gap: 40px; } .contact-info { flex: 1; min-width: 300px; animation: fadeInLeft 1s ease; } .contact-info h3 { font-size: 28px; color: var(--dark-color); margin-bottom: 20px; } .info-item { display: flex; align-items: flex-start; margin-bottom: 25px; } .info-icon { font-size: 24px; color: var(--primary-color); margin-right: 15px; margin-top: 5px; } .info-text h4 { font-size: 18px; margin-bottom: 5px; color: var(--dark-color); } .contact-form { flex: 1; min-width: 300px; background: var(--white); padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); animation: fadeInRight 1s ease; } .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 500; } .form-control { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 5px; font-family: 'Poppins', sans-serif; transition: border 0.3s ease; } .form-control:focus { border-color: var(--primary-color); outline: none; } textarea.form-control { min-height: 150px; resize: vertical; } /* Footer */ footer { background: var(--dark-color); color: var(--white); padding: 60px 0 20px; } .footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; } .footer-col h3 { font-size: 22px; margin-bottom: 20px; position: relative; padding-bottom: 10px; } .footer-col h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 2px; background: var(--primary-color); } .footer-col p { margin-bottom: 20px; opacity: 0.8; } .footer-links li { margin-bottom: 10px; } .footer-links a { opacity: 0.8; transition: opacity 0.3s ease; } .footer-links a:hover { opacity: 1; color: var(--primary-color); } .footer-social { display: flex; gap: 15px; margin-top: 20px; } .footer-social a { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: all 0.3s ease; } .footer-social a:hover { background: var(--primary-color); transform: translateY(-5px); } .footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); opacity: 0.8; } /* Back to Top Button */ .back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--primary-color); color: var(--white); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 999; } .back-to-top.active { opacity: 1; visibility: visible; } .back-to-top:hover { background: var(--secondary-color); transform: translateY(-5px); } /* 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) { .section { padding: 60px 0; } .section-title h2 { font-size: 32px; } .hero-content h1 { font-size: 42px; } .hero-content p { font-size: 18px; } } @media (max-width: 768px) { .nav-links { position: absolute; top: 80px; left: 0; width: 100%; background: var(--white); flex-direction: column; align-items: center; padding: 20px 0; box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); transform: translateY(-150%); transition: transform 0.3s ease; z-index: 999; } .nav-links.active { transform: translateY(0); } .nav-links li { margin: 15px 0; } .nav-links a { color: var(--text-color); } .hamburger { display: block; } .hamburger.active div:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); } .hamburger.active div:nth-child(2) { opacity: 0; } .hamburger.active div:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); } header.scrolled .nav-links { top: 70px; } .hero-content h1 { font-size: 36px; } .hero-btns { flex-direction: column; gap: 15px; } .btn { width: 100%; } .section-title h2 { font-size: 28px; } .process-steps { flex-direction: column; } } @media (max-width: 576px) { .section { padding: 50px 0; } .section-title h2 { font-size: 24px; } .hero-content h1 { font-size: 32px; } .hero-content p { font-size: 16px; } .about-img, .about-text { min-width: 100%; } .contact-info, .contact-form { min-width: 100%; } }
JavaScript
// Mobile Navigation const hamburger = document.querySelector('.hamburger'); const navLinks = document.querySelector('.nav-links'); const links = document.querySelectorAll('.nav-links li'); hamburger.addEventListener('click', () => { navLinks.classList.toggle('active'); hamburger.classList.toggle('active'); }); links.forEach(link => { link.addEventListener('click', () => { navLinks.classList.remove('active'); hamburger.classList.remove('active'); }); }); // Sticky Header window.addEventListener('scroll', () => { const header = document.querySelector('header'); header.classList.toggle('scrolled', window.scrollY > 0); }); // Testimonial Slider const testimonials = document.querySelectorAll('.testimonial'); const dots = document.querySelectorAll('.dot'); dots.forEach((dot, index) => { dot.addEventListener('click', () => { testimonials.forEach(testimonial => testimonial.classList.remove('active')); dots.forEach(d => d.classList.remove('active')); testimonials[index].classList.add('active'); dot.classList.add('active'); }); }); // Auto Slide Testimonials let currentSlide = 0; function showSlide(index) { testimonials.forEach(testimonial => testimonial.classList.remove('active')); dots.forEach(dot => dot.classList.remove('active')); testimonials[index].classList.add('active'); dots[index].classList.add('active'); } function nextSlide() { currentSlide = (currentSlide + 1) % testimonials.length; showSlide(currentSlide); } setInterval(nextSlide, 5000); // Back to Top Button const backToTopBtn = document.querySelector('.back-to-top'); window.addEventListener('scroll', () => { if (window.pageYOffset > 300) { backToTopBtn.classList.add('active'); } else { backToTopBtn.classList.remove('active'); } }); backToTopBtn.addEventListener('click', () => { window.scrollTo({ top: 0, behavior: 'smooth' }); }); // Smooth Scrolling for Navigation Links document.querySelectorAll('a[href^="#"]').forEach(anchor => { anchor.addEventListener('click', function(e) { e.preventDefault(); const targetId = this.getAttribute('href'); const targetElement = document.querySelector(targetId); if (targetElement) { window.scrollTo({ top: targetElement.offsetTop - 80, behavior: 'smooth' }); } }); }); // Animation on Scroll function animateOnScroll() { const elements = document.querySelectorAll('.about-img, .about-text, .product-card, .step, .gallery-item, .team-member, .contact-info, .contact-form'); 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 animatedElements = document.querySelectorAll('.about-img, .about-text, .product-card, .step, .gallery-item, .team-member, .contact-info, .contact-form'); animatedElements.forEach(element => { element.style.opacity = '0'; element.style.transition = 'opacity 0.5s ease, transform 0.5s ease'; if (element.classList.contains('about-img') || element.classList.contains('contact-info')) { element.style.transform = 'translateX(-30px)'; } else if (element.classList.contains('about-text') || element.classList.contains('contact-form')) { element.style.transform = 'translateX(30px)'; } else { element.style.transform = 'translateY(30px)'; } }); // Initial check in case elements are already in view animateOnScroll(); }); window.addEventListener('scroll', animateOnScroll);
Output Preview
Desktop
Mobile
Fullscreen