/* Base Reset and Styling */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f7f7f7;
    color: #333;
    padding-bottom: 60px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
}

.menu-toggle {
    display: none; /* Initially hidden */
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 10px 20px;  /* Added padding for better text space */
    text-align: center;
    width: auto;  /* Allow width to adjust based on content */
    position: absolute;  /* Position it absolutely within the navbar */
    right: 20px;  /* Align the hamburger to the right */
}

nav {
    display: flex;
    gap: 18px;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover,
nav a.active {
    background-color: #e6f0ff;
    color: #007bff;
}

/* Search Bar */
.search-bar {
    width: 100%;
    max-width: 350px;
    padding: 10px 15px;
    margin: 10px 0;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 20px;
    background-color: #fff;
    color: #333;
    transition: all 0.3s ease;
}

.search-bar:focus {
    border-color: #007bff;
    background-color: #f0f0f0;
    outline: none;
}

/* Responsive Nav */
#nav-links {
    display: none;
    flex-direction: column;
    gap: 10px;
    background-color: #fff;
    padding: 10px;
    position: absolute;
    right: 10px;
    top: 60px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

#nav-links.active {
    display: flex;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
    #nav-links {
        display: flex;
        flex-direction: row;
        background: none;
        box-shadow: none;
        position: static;
    }
    .search-bar {
        margin-left: 25px;
    }
}

/* Content Area */
.content {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Cards / Gallery */
.grid-gallery, .grid-categories, .testimonials {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 2rem;
}

.gallery-item, .category-card, .testimonial {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover, .category-card:hover, .testimonial:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.caption {
    margin-top: 0.5rem;
    font-weight: bold;
    color: #ff4343;
    text-transform: uppercase;
    text-align: center;
}

/* Contact Section */
.contact-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    margin: 15px 0;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.contact-section:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.contact-section h2 {
    border-left: 4px solid #007bff;
    padding-left: 10px;
    margin-bottom: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.contact-section p {
    margin: 4px 0 0;
    color: #666;
    font-size: 1rem;
}

/* Testimonials */
.testimonials-section {
    text-align: center;
    margin: 60px auto;
    padding: 20px;
}

.testimonials-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
}

.testimonial .stars {
    color: #ffb400;
    font-size: 1.2rem;
    margin: 10px 0;
}

.testimonial span {
    display: block;
    font-weight: bold;
    color: #555;
    margin-top: 10px;
}

/* Download Button */
.download-button {
    display: inline-block;
    margin-top: 1em;
    padding: 10px 20px;
    background-color: #0077cc;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: #005fa3;
}

/* Scroll to Top */
#scrollToTop {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: opacity 0.3s ease;
}

#scrollToTop.show {
    display: block;
}

/* Footer */
.site-footer {
    width: 100%;
    background-color: #fff;
    color: #999;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
    position: relative;
    bottom: 0;
}

/* Nav links styling */
nav a {
    text-decoration: none;
    border-bottom: none;
    color: #555;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
    text-align: center;
}

nav {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Testimonials grid: 2 per row on wide screens */
.testimonials {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-items: center;
    padding: 20px;
}

.testimonial {
    width: 100%;
    max-width: 400px;
}

/* Updated Categories CSS */
.grid-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 2rem;
}

.category-card {
    text-decoration: none;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 220px;
    text-align: center;
    color: #333;
}

.category-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.category-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 10px;
}

.category-card .caption {
    margin-top: 0.5rem;
    font-weight: bold;
    color: #ff4343;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
}

/* Media Queries */
@media (max-width: 768px) {
    .menu-toggle {
        margin-bottom: 15%;
        display: block;  /* Make it visible on mobile */
        right: 20px;  /* Keep it on the right side */
        text-align: center;
        padding: 10px 20px;  /* Ensure button has enough padding */
        width: auto;  /* Ensure width adjusts based on content */
    }

    /* Ensure navigation links are hidden by default */
    #nav-links {
        display: none;
    }

    /* Show the navigation links when active */
    #nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 10px;
        background-color: #fff;
        padding: 10px;
        position: absolute;
        top: 60px;
        right: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        border-radius: 5px;
        width: 100%;  /* Ensure it takes up the full width on mobile */
    }

    #nav-links a {
        padding: 10px 20px;
        width: 100%;
        text-align: left;
        border-radius: 0;
    }
    .search-bar{
        margin-top: 5%;
    }
    .grid-gallery,
    .grid-categories,
    .testimonials {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 16px;
        justify-content: center;
    }

    .gallery-item,
    .category-card,
    .testimonial {
        width: 100%;
        max-width: 100%;
    }

    .site-footer {
        font-size: 0.8rem;
        padding-bottom: 20px;
    }
}
