/* -------------------------------------------------------------------------------------------------- */
html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.fa-instagram {
    color: #e1306c;
}
.fa-facebook {
    color: #1877F2;
}
.fa-whatsapp {
    color: #075E54;
}

/* social-media icon */
.fa-whatsapp,
.fa-envelope,
.fa-instagram,
.fa-facebook {
    font-size: 25px;
}

.fa-whatsapp:hover,
.fa-envelope:hover,
.fa-instagram:hover,
.fa-facebook:hover {
    animation: iconAnimation 1s infinite alternate;
}

@keyframes iconAnimation {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    background-color: black;
    color: #f0f0f0;
}

/* Navigation Styles */
nav {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.219) 15%, rgba(0, 0, 0, 0.25) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 10;
}

#open-button {
    padding: 10px 20px;
    font-size: 1.2rem;
    background-color: #222; /* Dark background color */
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.dealer button {
    padding: 12px 20px; /* Adjust the padding */
    font-size: 1rem;
    background-color: #222;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.menu {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    align-items: center;
    margin-left: 50px;
}

.dealer {
    display: flex;
    align-items: center;
    font-size: 10px; /* Decrease the font size */
    padding: 5px 45px; /* Adjust the padding */
}

#overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Semi-transparent black background */
    transition: left 0.5s;
    z-index: 9;
}

#overlay.open {
    left: 0;
}

#menu-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: center;
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#menu-content ul {
    font-size: 1.8rem;
    line-height: 2.5;
}

#menu-content ul li {
    font-size: 1.5rem;
    line-height: 1.875;
    text-transform: uppercase;
    padding-bottom: 20px;
    transition: color 0.4s, opacity 0.4s;
}

#menu-content ul li:hover {
    color: white;
    transform: translateX(10px);
    transition: color 0.4s, transform 0.4s;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay-text {
    text-align: center;
    color: white;
}

.hidden {
    display: none;
}

.service-menu {
    text-align: center;
    margin: 30px auto;
    max-width: 700px;
}

.service-item {
    border-bottom: 1px solid #ccc;
    padding: 20px 0;
}

.service-item h3 {
    color: whitesmoke;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.service-item p {
    color: #555;
    font-size: 1em;
    margin-bottom: 10px;
}

.service-item .price {
    font-size: 1.2em;
    color: #74C0FC;
    font-weight: bold;
}

#toggle-menu {
    background-color:blue;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-bottom: 20px;
}

#toggle-menu:hover {
    background-color: #5ca3e1;
}

/* Improved Footer Styles */
footer {
    background-color: #222;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

footer .business_card {
    margin-bottom: 20px;
}

footer .footer-links {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

footer .footer-links ul {
    list-style: none;
    padding: 0;
}

footer .footer-links ul a {
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: large;
    color:white;
    text-decoration: none;
    margin: 5px 0;
    transition: color 0.3s;
}

footer .footer-links ul li:hover {
    text-decoration: underline;
}


footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

footer .social-icons img {
    width: 30px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.3s, transform 0.3s;
}

footer .social-icons img:hover {
    filter: brightness(0.8) invert(1);
    transform: scale(1.1);
}

/* Improved Transparent Button Styles */
button,
.hover-button {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    color: #f0f0f0;
    background: transparent;
    border: 2px solid #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

button:hover,
.hover-button:hover {
    background: rgba(240, 240, 240, 0.1);
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

button:active,
.hover-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* footer image business car */
.business_card img {
    width: 35%; /* Adjust the width of the business card*/
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensure block-level display */
    margin: 0 auto; /* Center the icon horizontally */
    box-shadow: 1px 1px 15px blue;
}

/* Service menu animation */
/* CSS: Updated Styles */

/* Service menu animation */
.menu-items.hidden {
    max-height: 0;
    overflow:hidden;
    transition: max-height 0.5s ease-out;
}

.menu-items {
    max-height: 700px; /* Adjust this height based on the item size */
    overflow-y:scroll; /* Enable vertical scrolling */
    transition: max-height 0.5s ease-in;
}


/* Responsive Styles for Mobile Phones */
@media screen and (max-width: 599px) {
    html, body {
        overflow-x: hidden;
    }

    nav {
        height: 50px; /* Adjust height of the navigation bar */
    }
    
    .logo img {
        height: 30px; /* Decrease logo size */
        max-width: 50px;
        margin-right: 40px;
    }
    
    .dealer {
        font-size: 8px; /* Decrease font size */
        padding: 5px 10px; /* Adjust padding */
    }
    
    .dealer button {
        margin-right: 22px;
    }

    #overlay {
        width: 100%; /* Full width */
        left: -100%; /* Initially off-screen */
    }
    
    #overlay.open {
        left: 0; /* Slide in from the left */
    }

    .business_card img {
        width: 100%;
    }
    
    #menu-content {
        width: 90%; /* Adjust width */
        padding: 10px; /* Adjust padding */
        font-size: 1.0rem; /* Decrease font size */
    }
    
    .hover-button {
        padding: 8px 12px; /* Adjust padding */
    }

    /* service menu animation */
    .service-menu {
        text-align: center;
        margin: 30px auto;
        max-width: 300px;
    }

    .menu-items.hidden {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
    }
    .menu-items {
        max-height: 1000px; /* large enough to contain content */
        transition: max-height 0.5s ease-in;
    }


    /* underline link when hover */
    footer .footer-links ul li:hover {
        text-decoration: underline;
    }
    
    
}
