/* Global styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* Overhead Navbar styles */
#navbar {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

#navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#navbar ul li {
    display: inline;
    margin: 0 15px;
}

#navbar ul li a {
    position: relative;
    color: #fff; /* Default link color */
    text-decoration: none;
    font-size: 18px;
    padding-bottom: 5px;
    transition: color 0.3s ease, text-shadow 0.3s ease; /* Smooth transitions */
}

#navbar ul li a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#navbar ul li a:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

#navbar ul li a:hover {
    color: #fff; /* Keep the color white */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 0, 0, 0.5); /* Darker gray/black glow effect */
}
/* Hero section styles */
.hero {
    height: 100vh;
    background-color: #e0e0e0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    overflow: hidden;
}

.logo-container {
    position: relative;
    width: 1000px;
    height: 500px;
    max-width: 100%;
    max-height: 100%;
}

.logo-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.cta-button {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    margin-top: 20px;
    border-radius: 5px;
}

.cta-button:hover {
    background-color: #333;
}


/* Product grid container */
.product-grid-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px; /* Padding for top, bottom, left, and right */
    overflow: hidden; /* Prevent horizontal overflow */
}

/* Product grid with horizontal scrolling */
.product-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto; /* Allow horizontal scrolling */
    gap: 40px;
    width: 100%;
    padding: 0 50px;
    scrollbar-width: none; /* Hide scrollbar */
}

.product-grid::-webkit-scrollbar {
    display: none;
}

/* Product grid container */
.product-grid-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px; /* Increased padding for top and bottom */
    overflow: hidden; /* Hide overflow on the left and right */
}

/* Product grid with horizontal scrolling */
.product-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto; /* Horizontal scrolling */
    gap: 40px;
    width: 100%;
    padding: 0 50px;
    scrollbar-width: none; /* Hide scrollbar */
}

.product-grid::-webkit-scrollbar {
    display: none;
}

/* Product boxes with black glass effect */
.product {
    flex: 0 0 300px;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    color: #fff;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
    z-index: 1;
    overflow: visible; /* Ensure zoom overflow on top and bottom */
}

/* Ensure zoom on top and bottom is fully visible */
.product:hover {
    transform: scale(1.001); /* Hover zoom */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    z-index: 10; /* Bring product to the front when zoomed */
    padding-top: 10px; /* Extra top padding */
    padding-bottom: 15px; /* Extra bottom padding */
    overflow: visible; /* Ensure no clipping */
}

/* Product image */
.product img {
    width: 100%;
    height: 225px;
    object-fit: cover;
    border-radius: 5px;
}

/* Product headings and text */
.product h3, .product p {
    color: #fff;
}
/* Hovering Scroll Buttons styled like Shop Now button */
.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-5%); /* Keeping your adjusted value */
    background-color: rgba(0, 0, 0, .8); /* Transparent background */
    color: rgba(255, 255, 255, 1); /* Semi-transparent white for the arrow */
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 100;
    font-size: 24px;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.scroll-button.left {
    left: 10px;
}

.scroll-button.right {
    right: 10px;
}

.scroll-button:hover {
    background-color: rgba(0, 0, 0, 0.7); /* Darker transparent background on hover */
    color: #fff; /* Make the arrow fully white on hover */
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}
/* Carousel styles */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 5px;
    z-index: 1000;
    transition: background 0.3s ease;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.9);
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

/* Footer */
footer {
    padding: 20px;
    text-align: center;
    background-color: #000;
    color: #fff;
}

footer .social-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

footer .social-links a:hover {
    color: #999;
}


/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #333;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Form styles inside modal */
.modal-content form {
    display: flex;
    flex-direction: column;
}

.modal-content form label {
    margin-bottom: 5px;
    text-align: left;
}

.modal-content form input,
.modal-content form textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal-content form textarea {
    resize: vertical;
}

.modal-content form button {
    background-color: #000;
    color: #fff;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}

.modal-content form button:hover {
    background-color: #333;
}
/* Center the About Us section */
.centered-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    text-align: center;
    background-color: #fff;
}

.centered-section p {
    max-width: 800px;
    line-height: 1.6;
}

/* Newsletter Section */
.newsletter-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    text-align: center;
    background-color: #f8f8f8;
}

.newsletter-section h2 {
    margin-bottom: 20px;
}

.newsletter-section form {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.newsletter-section input {
    height: 10;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    outline: none;
    height: 15px;
    width: 250px;
}

/* Subscribe button styled like Shop Now button */
.newsletter-section button {
    position: absolute;
    top: 145px; /* Adjust this value to control vertical positioning */
    left: 61%; /* Centers the button horizontally */
    transform: translateX(-50%);
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.newsletter-section button:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4); /* Matching glow effect */
}

#subscriptionMessage {
    color: #28a745;
    font-size: 18px;
}
/* Spray Can Container */
.spray-can-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
	z-index: 1000;
}

#sprayCanIcon {
    transition: transform 0.2s ease-in-out;
}

#sprayCanIcon:hover {
    animation: shake 0.5s;
    animation-iteration-count: infinite;
}

/* Keyframes for shake animation */
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* Scroll Buttons */
.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-30%);
    background-color: #000;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 100;
    font-size: 10px;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.scroll-button.left {
    left: 10px;
}

.scroll-button.right {
    right: 10px;
}

.scroll-button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}
/* Overlay for the contact form */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Black glass effect for the contact popup */
/* Black glass effect for the contact popup */
.contact-popup {
    background: rgba(0, 0, 0, 0.6); /* Black glass effect */
    backdrop-filter: blur(10px); /* Blur effect for the glassy look */
    padding: 20px;
    border-radius: 10px;
    width: 520px; /* Adjusted width for form fields */
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6); /* Dark shadow for depth */
}

/* Styling for the close button (X) */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #fff; /* White color to stand out on black glass */
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover effect: Spin and change color */
.close-btn:hover {
    transform: rotate(360deg); /* Spin the X when hovered */
    color: red; /* Change color to red on hover */
}

/* Adjust the input fields to match the black glass theme */
.contact-popup input, .contact-popup textarea {
    background: rgba(255, 255, 255, 0.2); /* Transparent white background */
    color: white; /* White text color */
    border: 1px solid rgba(255, 255, 255, 0.5); /* Light border */
    padding: 10px; /* Padding inside input boxes */
    margin-bottom: 15px; /* Space between form fields */
    width: 100%; /* Make sure inputs take up full width */
    box-sizing: border-box; /* Ensure padding is included in width */
}

/* White label text for the form */
.contact-popup label {
    color: white; /* White text for labels */
    margin-bottom: 5px; /* Space between labels and input fields */
    display: block; /* Ensure labels are on their own line */
}

/* Placeholder text color */
.contact-popup input::placeholder, .contact-popup textarea::placeholder {
    color: rgba(255, 255, 255, 0.7); /* Placeholder text color */
}
/* Custom Scrollbar for the textarea */
.contact-popup textarea::-webkit-scrollbar {
    width: 8px; /* Set the width of the scrollbar */
}

.contact-popup textarea::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2); /* Light background for scrollbar track */
    border-radius: 10px; /* Rounded edges for the track */
}

.contact-popup textarea::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5); /* Lighter scrollbar thumb */
    border-radius: 10px; /* Rounded edges for the thumb */
}

.contact-popup textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8); /* Lighter thumb on hover */
}

/* Firefox scrollbar styling */
.contact-popup textarea {
    scrollbar-width: thin; /* Thin scrollbar */
    scrollbar-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.2); /* Thumb and track color */
}
/* Spray can icon positioning */
.spray-can-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
}

/* Spray Options Menu - Black Glass Effect */
.spray-options {
    position: fixed;
    top: 100px;  /* Adjust position */
    left: 20px;
    background-color: rgba(0, 0, 0, 0.6); /* Black glass effect */
    backdrop-filter: blur(10px); /* Blur effect for the glassy look */
    padding: 15px;
    border-radius: 10px;
    z-index: 2000; /* Ensure it's above the canvas and other elements */
    display: none; /* Hidden initially */
    flex-direction: column;
    gap: 15px; /* Space between menu items */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Shadow for depth */
}

/* Menu Item Styling */
.spray-options div {
    padding: 10px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent background */
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.spray-options div:hover {
    background-color: rgba(255, 255, 255, 0.4); /* Lighter hover effect */
    color: #f0f0f0;
}

/* Menu text and icons will appear more sleek */
.spray-options div::before {
    font-size: 20px;
    margin-right: 10px;
}
.sub-menu {
    position: fixed;
    top: 100px; /* Adjust this value to move the menu vertically */
    left: 130px; /* Adjust this value to move the menu horizontally */
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px;
    border-radius: 5px;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Add some shadow for depth */
}
.tool-icon {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 1px;
    border-radius: 1px;
    cursor: pointer;
    margin-bottom: -5px;
    text-align: center;
    font-size: 24px; 
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tool-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #f0f0f0;
}
/* Add a highlight or border when the tool is selected */
.tool-icon.selected {
    background-color: rgba(255, 255, 255, 0.4); /* Lighter color for selected tool */
    border: 2px solid white; /* White border to indicate selection */
}

document.getElementById('saveCanvas').addEventListener('click', () => {
    const link = document.createElement('a');
    link.download = 'canvas.png';
    link.href = canvas.toDataURL();
    link.click();
});
#sprayCanvas {
    cursor: url('sprayCursor.png'), auto;
}
