/* Preloader styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it is on top of all other content */
}

.preloader-image {
    width: 300px; /* Adjust the initial size as needed */
    height: 300px; /* Adjust the initial size as needed */
    animation: zoomIn 3s ease-in-out infinite; /* Add zoom-in animation */
}

/* Zoom-in animation */
@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5); /* Adjust the scale value as needed */
    }
    100% {
        transform: scale(1);
    }
}

/* Reset some default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
	background-color: #f4f5d7;
}

/* Add a class for animating elements */
.animated {
    opacity: 0;
    transform: translateY(50px); /* Initial position */
    transition: opacity 0.6s, transform 0.6s;
}

/* Header styles */
header {
    background: #c4c16a; /* #c2bf63;  Change background color to green */
    color: #fff;
    padding: 5px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.header-logo {
    height: 50px; /* Adjust the height as needed */
}

.header-text {
    font-size: 1.5em;
    flex-grow: 1;
    text-align: center;
    margin-left: 8em; /* Adjust this value as needed for 10 tab spaces */
}

/* Image box styles */
.image-box {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #333;
    padding: 10px;
    margin: 20px 0;
    background-color: #f9f9f9;
}

.image-box img {
    max-width: 100%;
    height: auto;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end; /* Shift to the extreme right */
    padding-left: 20px; /* Add some padding to the left */
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover {
    color: #fff; /* Change color on hover */
    border-bottom: 2px solid #fff; /* Add underline on hover */
}

/* Main content styles */
main {
    padding: 20px;
	margin-bottom: 20px; /* Add margin at the bottom to create space */
}

section {
    margin-bottom: 20px;
    padding: 20px;
	font-size: 1.35em;
	background-color: #f4f5d7;
	
}

#home {
    height: 90vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px; /* Adjust as needed */
}

#home button {
    margin-top: 10px; /* Space above the button */
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background-color: #333; /* Button background color */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#home button:hover {
    background-color: #555; /* Darker shade on hover */
}

#home img {
    max-width: 100%;
    height: auto;
}


#products {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ccc;
	text-align: center;
}

/* Products grid styles */
.products-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Space between images */
    flex-wrap: wrap; /* Allow images to wrap onto the next row */
    margin: 20px 0;
}

.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0);
    color: #fff;
    text-align: center;
    padding: 10px;
    transform: translateY(100%); /* Hide text initially */
    transition: transform 0.3s; /* Add transition for text animation */
}
	
@keyframes imageLoop {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.product-item {
    position: relative;
    width: 30%; /* Default width for larger screens */
    height: 350px; /* Fixed height */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px; /* Space between product items */
}

/* Style for images */
.product-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.product-item img:first-child {
    opacity: 1;
}

.product-item:hover img:nth-child(2) {
    animation-delay: 2s;
	animation: imageLoop 8s infinite; /* Apply loop animation */
}

.product-item:hover img:nth-child(3) {
    animation-delay: 4s; /* Delay the second image */
	animation: imageLoop 8s infinite; /* Apply loop animation */
}

.product-item:hover {
    transform: scale(1.05); /* Scale up the product item on hover */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3); /* Add a shadow on hover */
}

.product-item:hover img {
    transform: scale(1.1); /* Scale up the image slightly more on hover */
}

.product-item:hover .product-info {
    transform: translateY(0); /* Slide up the text on hover */
}

.product-item:hover img.hidden {
            opacity: 0;
}

/* Media queries for responsive design */
@media only screen and (max-width: 1024px) {
    .product-item {
        width: 45%; /* Adjust width for tablets */
    }
}

@media only screen and (max-width: 768px) {
    .product-item {
        width: 48%; /* Adjust width for small tablets */
    }
}

@media only screen and (max-width: 480px) {
    .product-item {
        width: 100%; /* Full width for mobile */
    }
}

/* Body Text Improvements */
.message {
    font-size: 1.1em; /* Slightly larger font size for better readability */
    line-height: 1.8; /* Increased line height for better text spacing */
    margin: 15px 0; /* Margin between paragraphs */
    padding: 0 20px; /* Add horizontal padding for better spacing */
    color: #333; /* Dark text color for good contrast */
    text-align: justify; /* Justify text for a neat appearance */
    max-width: 800px; /* Limit width for better control on larger screens */
    margin-left: auto; /* Center text container */
    margin-right: auto; /* Center text container */
}

/* Mobile Adjustments for Body Text */
@media (max-width: 768px) {
    .message {
        font-size: 1.2em; /* Slightly larger text on mobile for better readability */
        line-height: 1.6; /* Adjust line height for smaller screens */
        padding: 0 15px; /* Adjust padding on smaller screens */
        max-width: 90%; /* Allow text to take up more space on small screens */
    }
}


/* Basic footer styling */
footer {
    background: #c4c16a;
    color: #050505;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

/* Container for footer sections */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center; /* Ensure text is centered in the footer */
}

/* Left section (Contact Info) */
.footer-left {
    margin-bottom: 10px;
    flex: 1; /* Ensures it takes up equal space */
}

.footer-left a {
    color: #050505;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-left a:hover {
    color: #fff;
    border-bottom: 2px solid #fff;
}

/* Center section (Copyright) */
.footer-center {
    margin-bottom: 10px;
    flex: 1; /* Ensures it takes up equal space */
    display: flex;
    justify-content: center; /* Horizontally center content */
	color: #050505;
}

/* Right section (Social Links) */
.footer-right {
    margin-bottom: 10px;
    flex: 1; /* Ensures it takes up equal space */
}

.social-links a {
    color: #050505;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fff;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        width: 100%;
        margin-bottom: 10px;
    }

    .social-links {
        display: flex;
        justify-content: center;
    }

    .social-links a {
        margin: 0 15px;
    }
}


/* Media queries for responsive design */
@media only screen and (max-width: 768px) {
    .header-text {
        margin-left: 0; /* Reset margin for smaller screens */
        text-align: center; /* Center align text */
		font-size: 1.2em; /* Decrease font size for smaller screens */
		text-align: center; /* Center align text */
    }

    nav ul {
        justify-content: center; /* Center align navigation links */
        padding-left: 0; /* Remove left padding */
    }

    nav ul li {
        margin: 0 10px; /* Adjust margin for smaller screens */
    }
}

@media only screen and (max-width: 600px) {
    .header-text {
        font-size: 1.2em; /* Decrease font size for smaller screens */
    }
}

@media only screen and (max-width: 480px) {
    .header-logo {
        height: 40px; /* Adjust logo size for smaller screens */
    }
}

#moveToTopBtn {
    display: none;
    position: fixed;
    bottom: 10px;
    right: 20px;
    z-index: 9999;
    width: 55px; /* Adjust width and height for circular shape */
    height: 55px; /* Adjust width and height for circular shape */
    border-radius: 55%; /* Make it circular */
    background-color: #c4c16a; /* Background color */
    color: #fff; /* Text color */
    border: none;
    cursor: pointer;
    background-image: url('up.png'); /* Replace with your image path */
    background-size: cover; /* Adjust background image size as needed */
    background-position: center; /* Center the background image */
    /* Add any other styles as needed */
}


