/* Global Styles */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f0f8ff, #d1e0ff);
    color: #333;
    overflow-x: hidden;
}

/* Header Styling */
header {
    position: relative;
    text-align: center;
}

header img {
    width: 100%;
    height: auto;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    object-fit: cover;
}

header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    /* Overlay */
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

/* Products Section */
#products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(50px);
}

.product img {
    height: 120px;
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.product h2 {
    font-size: 1.6rem;
    color: #0056b3;
    margin-bottom: 10px;
}

.product p {
    font-size: 1rem;
    color: #666;
}

.product:hover {
    transform: scale(1.05);
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.2);
}

/* Footer Section */
footer {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(45deg, #003f87, #002147);
    color: white;
}

footer p {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    background-color: #555;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.icon:hover {
    transform: scale(1.2);
    background-color: #333;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.show {
    animation: fadeInUp 0.5s ease-in-out forwards;
}

/* Responsive Styles */
@media (max-width: 768px) {
    #products {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

/*<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Embroidery Machines</title>
    <!-- Google Fonts for a sleek typography -->
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
    <!-- Font Awesome for social media icons -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <link rel="stylesheet" href="style.css">
</head>
<body>

    <header>
        <img src="assets/banner2.jpg">
    </header>

    <section id="products">
        <!-- Repeatable Product Cards -->
        <div class="product">
            <img src="assets/product1.png" alt="Embroidery Machine 1">
            <h2>923+1x400</h2>
            <p>High-quality machine for professionals.</p>
        </div>
        <div class="product">
            <img src="assets/joint.jpg" alt="Embroidery Machine 2">
            <h2>Good quality safting joint</h2>
            <p>Great machine for all your embroidery needs.</p>
        </div>
        <div class="product">
            <img src="assets/banner.jpg" alt="Embroidery Machine 2">
            <h2>A-18 Original dhaho computer</h2>
            <p>Great machine for all your embroidery needs.</p>
        </div>
        <div class="product">
            <img src="assets/machine1.jpg" alt="Embroidery Machine 2">
            <h2>All Saft 20 and 22 mm</h2>
            <p>Great machine for all your embroidery needs.</p>
        </div>
        <div class="product">
            <img src="assets/uBaring.jpg" alt="Embroidery Machine 2">
            <h2>Bearing 8 and belt 50 mm</h2>
            <p>Great machine for all your embroidery needs.</p>
        </div>
        <div class="product">
            <img src="assets/chainMachine.jpg" alt="Embroidery Machine 2">
            <h2>Chain Stitch Embroidery Machine</h2>
            <p>Great machine for all your embroidery needs.</p>
        </div>
        <div class="product">
            <img src="assets/LSupport.jpg" alt="Embroidery Machine 2">
            <h2>L Support 4 piece 250 x 300</h2>
            <p>Great machine for all your embroidery needs.</p>
        </div>
        <div class="product">
            <img src="assets/ad.jpg" alt="Embroidery Machine 2">
            <h2>NV Enterprise</h2>
            <p>Great machine for all your embroidery needs.</p>
        </div>
        <div class="product">
            <img src="assets/timingBelt.jpg" alt="Embroidery Machine 2">
            <h2>Duel Timing Belt and fats colour change</h2>
            <p>Great machine for all your embroidery needs.</p>
        </div>
        <div class="product">
            <img src="assets/fullMachine.jpg" alt="Embroidery Machine 2">
            <h2>1223+1x400</h2>
            <p>Great machine for all your embroidery needs.</p>
        </div>
        <div class="product">
            <img src="assets/product10.jpg" alt="Embroidery Machine 2">
            <h2>Tween Sequence Embroidery Machine</h2>
            <p>Great machine for all your embroidery needs.</p>
        </div>
        <div class="product">
            <img src="assets/singleHead.jpg" alt="Embroidery Machine 2">
            <h2>Single Head Embroidery Machine</h2>
            <p>Great machine for all your embroidery needs.</p>
        </div>
        <div class="product">
            <img src="assets/flatMachine.jpg" alt="Embroidery Machine 2">
            <h2>1223+1 Flat Embroidery Machine</h2>
            <p>Great machine for all your embroidery needs.</p>
        </div>
        <div class="product">
            <img src="assets/highSpeed.jpg" alt="Embroidery Machine 2">
            <h2>High Speed & Digital Colour Change Box</h2>
            <p>Great machine for all your embroidery needs.</p>
        </div>
        <div class="product">
            <img src="assets/body400.jpg" alt="Embroidery Machine 2">
            <h2>400x400 Heavy Body</h2>
            <p>Great machine for all your embroidery needs.</p>
        </div>
        <div class="product">
            <img src="assets/device.png" alt="Embroidery Machine 2">
            <h2>Good quality sequence device</h2>
            <p>Great machine for all your embroidery needs.</p>
        </div>
        <div class="product">
            <img src="assets/product16.jpg" alt="Embroidery Machine 2">
            <h2>1223x400 with sequence</h2>
            <p>Great machine for all your embroidery needs.</p>
        </div>
    </section>

    <footer>
        <div class="social-links">
            <a href="https://www.instagram.com/vishal.prajapati.1234/" target="_blank" class="icon instagram" aria-label="Instagram">
                <i class="fab fa-instagram"></i>
            </a>
            <a href="https://wa.me/9574621234" target="_blank" class="icon whatsapp" aria-label="WhatsApp">
                <i class="fab fa-whatsapp"></i>
            </a>
            <a href="mailto:prajapati.vishal02@gmail.com" class="icon gmail" aria-label="Gmail">
                <i class="fas fa-envelope"></i>
            </a>
        </div>
        <p>&copy; 2024 Embroidery Machines</p>
    </footer>

    <script src="script.js"></script>
</body>
</html>
/* Global Styles */
/* body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f4f4f4, #e6f0ff);
    color: #333;
}
header {
    text-align: center;
    background: linear-gradient(45deg, #0073e6, #005bb5);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

header img{
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
} 

/* header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: slideInDown 1s ease-out;
} 

header p {
    font-size: 1.2rem;
    margin-top: 0;
    font-weight: 400;
    opacity: 0.8;
}

#products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-in;
}

.product {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.product img {
    height: 100px;
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.product h2 {
    font-size: 1.6rem;
    color: #0073e6;
    margin-bottom: 10px;
}

.product p {
    font-size: 1rem;
    color: #666;
}

.product:hover {
    transform: scale(1.05);
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.2);
}
footer {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(45deg, #005bb5, #003f87);
    color: white;
    position: relative;
}

footer p {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.icon {
    display: inline-flex; 
    justify-content: center;
    align-items: center;
    width: 50px; 
    height: 50px;
    border-radius: 50%; 
    color: white;
    font-size: 24px;
    background-color: #555;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.instagram {
    background: linear-gradient(45deg, #f09433, #dc2743, #cc2366, #bc1888);
}

.whatsapp {
    background-color: #25D366;
}

.gmail {
    background-color: #DB4437;
}

.icon i {
    font-size: 24px;
}

.icon:hover {
    transform: scale(1.2);
    background-color: #333;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 1rem;
    }

    #products {
        padding: 20px;
        grid-template-columns: 1fr;
    }
}
// Smooth scrolling for social icons
const socialIcons = document.querySelectorAll('.icon');

socialIcons.forEach(icon => {
    icon.addEventListener('click', (e) => {
        e.preventDefault();
        window.scrollTo({ top: 0, behavior: 'smooth' });
        setTimeout(() => {
            window.open(icon.href, '_blank');
        }, 600);
    });
});

// Adding scroll reveal effect for product cards
const products = document.querySelectorAll('.product');

function revealProducts() {
    const triggerBottom = window.innerHeight / 1.2;
    products.forEach(product => {
        const productTop = product.getBoundingClientRect().top;
        if (productTop < triggerBottom) {
            product.classList.add('show');
        } else {
            product.classList.remove('show');
        }
    });
}

window.addEventListener('scroll', revealProducts);
revealProducts();
*/
