/* Basic Reset */
:root {
    --primary-color: #5ba6a6;
    --primary-color-05: #5ba6a6ae;
    --secondary-color: #357979;
    --secondary-color-05: #3579799c;
    --secondary-color-06: #f5deb385;
    --background-color: #f0f0f0;
    --background-color-dark: #1a1a1a;
    --background-gradiant: linear-gradient(90deg, rgba(255, 134, 21, 1) 0%, rgba(165, 153, 107, 1) 0%, rgba(100, 166, 170, 1) 100%);
    --text-color: #333333;
    --accent-color: #eceaea;
    --break-color: #bd9a0c95;
    --break-color-dark: #e8bd1195;
    --font-size-s-screen: 1.2rem;
    --font-size-l-screen: 1.5rem;
    --box-shadow: 0px 0px 9px 5px #7d7d7d25;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Source Sans 3", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: var(--background-color);
    color: #333;
    overflow-x: hidden;
    padding: 0 0.5rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-height: 5rem;
    position: sticky;
    top: 0;
    background-color: #f8f8f8;
    transition: padding 0.1s ease;
    z-index: 1000; /* Ensures the header is above other content */
    width: 100%;
}

.header-scrolled {
    padding: 1px 20px; /* Smaller padding when scrolled */
    
}





.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    z-index: 998; /* behind nav-links */
}

.nav-links {
    list-style: none;
    position: fixed;
    right: -100%; /* Start off-screen */
    top: 0;
    height: 100%;
    width: 250px;
    background-color: #f8f8f8;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 999; /* on top of overlay */
    text-align: center;
}

.nav-links li {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    display: block;
    font-size: var(--font-size-s-screen);
    /* text-decoration: underline; */
    /* text-decoration-color: red; */
    letter-spacing: 1px;
    text-wrap: nowrap;
}

.nav-links a:hover {
    transition: color 0.3s ease;
    color: var(--primary-color);
}

.close-btn {
    display:  none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 10px;
}

.hamburger {
    display: block;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color:#5b5b5b;
}

.hero {

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    background: var(--background-gradiant);

}

#heroImage{
    width: 100%;
    height: auto;
}

section {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #f8f8f8;
}

.logo {
    height: 5rem;
}

#navLogo {
    width: fit-content;
    cursor: pointer;
}

#slogan {
    height: 3.5rem;
}
.about-us {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    font-size: var(--font-size-l-screen);
    border-radius: 0.5rem;
    box-shadow: var(--box-shadow);
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: start;
    padding: 0.5rem;
   
    margin-bottom: auto;
}
.about-image img {
    max-width: 24rem;
}

.hero-offer {
    align-items: center;
    background-color: var(--secondary-color-06);
    font-size: var(--font-size-l-screen);
    align-self: center;
    padding: 3rem 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--box-shadow);
}



.btn {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--accent-color);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: var(--font-size-s-screen);
    /* transition: background-color 0.3s ease; */
    margin-top: 1rem;
    box-shadow: var(--box-shadow);
}

.btn:hover {
    background-color: var(--secondary-color);
    transition: background-color 0.5s ease;
}

.btn:active{
    background-color: var(--primary-color-05);
    transition: background-color;
}

.aboutImage {
    width: 100%;

}

.contact {
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin-top: 1.1rem;
}

.contact p {
    margin: 10px 0;
    font-size: var(--font-size-s-screen);
}

.contact a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
.email-toggle {
    align-self: center;
    border-radius: 0.5rem;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}
.email-drawer {
    display: none;
    padding: 10px 0;
}

.email-drawer form {
    display: flex;
    flex-direction: column;
}

.email-drawer label {
    margin: 5px 0;
}

.email-drawer input,
.email-drawer textarea {
    margin: 5px 0 10px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.email-drawer input[type="submit"] {
    background-color: var(--primary-color);
    color: var(--accent-color);
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.email-drawer input[type="submit"]:hover {
    background-color: var(--secondary-color);
}

#emailArrow {
    margin: 0 0.5rem;
    padding: 0 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
    outline: none;
    pointer-events: none;
}

#emailArrow:active {
    background-color: var(--primary-color-05);
    /* transition: background-color; */
}


section {
    scroll-margin-top: 60px; /* Adjust this value based on your header height */
}

textarea {
    resize: vertical; /* Allows vertical resizing only */
    -webkit-resize: vertical; /* For Safari and older versions of Chrome */
    -moz-resize: vertical; /* For Firefox */
    max-width: 100%;
    min-width: 100%;

}



.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 6fr));
    gap: 10px;
    max-width: 1000px;
    width: 100%;
}

.gallery-item {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
    place-self: center;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-image {
    max-width: 80%;
    max-height: 80%;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

.nav-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.prev, .next {
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    padding: 1.3rem;
}

.social {
    width: fit-content;
}
.social img {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem 0.5rem 0 0;

}   
 .social a {
    text-decoration: none;
 }

 #aboutProduct li {
    opacity: 0; /* Start with elements hidden */
}

#aboutProduct .animate-left-a {
    animation: slideInFromLeft 0.5s forwards;
}
#aboutProduct .animate-left-b {
    animation: slideInFromLeft 0.8s forwards;
}

#aboutProduct .animate-right-c {
    animation: slideInFromRight 1.1s forwards;
}
#aboutProduct .animate-right-d {
    animation: slideInFromRight 1.4s forwards;
}


 @keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}



@media (min-width: 1023px) {
    .hamburger, #hamburgerLogo {
        display: none;
    }
    
    nav {
        width: 30%;
    }
    
    .nav-links {
        display: flex;
        position: static;
        justify-content: flex-end;
        height: auto;
        width: auto;
        box-shadow: none;
        background-color: transparent;
    }

    #navLogo {
        width: 30%;
    }

    #contact-container {
        margin-left: 10rem;
        margin-right: 10rem;
    }
    
}

/* Media queries for larger screens */
@media (min-width: 768px) {
    
    .about-us {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        background-color: var(--break-color);

    }
    .about-text {
        display: flex;
        flex-direction: column;
        justify-content: start;
        padding: 0.5rem;
        width: 40%;
        margin-bottom: auto;
    }
}

/* Media query for smaller screens */
@media (max-width: 800px) {
    .logo {
        height: 3rem;
    }

    #slogan {
        height: 2.5rem;
    }

    header {
        padding: 3px 8px;
    }
    .nav-links li {
        padding: 0.5rem;
    }
    .hero-offer h2 {
        margin-bottom: 1rem;
        font-size: var(--font-size-l-screen);
    }
    .hero-offer p {
        margin-bottom: 1rem;
        font-size: var(--font-size-s-screen);
    }
}

/* Optional: Tweak for even larger screens if needed */
@media (min-width: 930px) {
    /* .nav-logo {
        display: flex;
        width: 25%; 
        max-width: 30%;
        max-height: 5rem;
        height: 5rem;
    } */

    .nav-links li {
        padding: 1.2rem;
    }
}


@media (max-width: 500px) {
    footer div {
        flex-direction: column;
        align-items: center;
        padding-top: 1rem 1rem;
        margin-top: 1rem;
    }
    footer {
        padding: 0.2rem;
    }
}