/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eee5e5;
    transition: background-color 0.3s ease;
    overflow-x: hidden;
}

header {
    background-color: #e2e7ec;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
}
.dropdown {
    visibility: hidden;
}
#nav-bar {
    font: 16px montserrat, sans-serif;
    font-weight: bold;
    height: 75px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    color: black;
    transition: background-color 0.3s ease, height 0.3s ease;
}

#nav-bar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    transition: opacity 0.3s ease;
}

#nav-bar li {
    margin: 0 15px;
    align-self: center;
    transition: opacity 0.3s ease;
}

#nav-bar a {
    text-decoration: none;
    color: black;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: auto;
}

#nav-bar a:hover {
    color: rgb(212, 120, 0);
}

#logo {
    height: 100x;
    width: 200px;
    vertical-align: middle;
    filter: drop-shadow(5px 5px 2px rgb(66, 64, 64));
}

#contactbtn {
    background-color: rgb(212, 120, 0);
    color: white;
    border: none;
    border-radius: 10px;
    height: 30px;
    transform: translate(0, 0);
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.266);
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.main-app{
    background-color: rgb(212, 120, 0);
    color: white;
    border: none;
    border-radius: 10px;
    height: 30px;
    transform: translate(0, 0);
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.266);
    transition: transform 0.3s ease, background-color 0.3s ease;
}
#dropContact{
    background-color: rgb(255, 145, 2);
    color: white !important;
    height: auto !important;
    transform: translate(0, 0) !important;
    font-size: 22px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.266) !important;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin: 2vw !important;
    padding: 0 !important;
    padding-right: 1px !important;
    width: fit-content;
}
#contactbtn:hover {
    transform: translate(0, 0) scale(1.1);
    transform-origin: center;
}

/* Add transition for menu bar and cross icon */
.fa-bars, .fa-xmark {
    transition: transform 0.3s ease;
}

/* .................................Responsive Design .......................................*/
@media (max-width: 767px) {
    .HideWhenResponsive {
        display: none;
    }
    #nav-bar ul {
        flex-direction: row;
        position: absolute;
        left: 0;
    }

    #nav-bar li {
        margin: 10px 0;
    }
    /* Dropdown Button */
    .dropbtn {
        padding: 20px;
        font-size: 20px;
        border: none;
        cursor: pointer;
    }

    /* The container <div> - needed to position the dropdown content */
    #nav-bar .dropdown {
        position: absolute;
        display: inline-block;
        right: 0;
        visibility:visible;
    }

    /* Dropdown Content (Hidden by Default) */
    .dropdown-content {
        display: none;
        position: absolute;
        background-color: inherit;
        min-width: 160px;
        z-index: 1;
        right: 0;
        transition: opacity 0.5s ease, visibility 0.3s ease;
        font-size: 25px;
        font-weight: 300;
    }

    /* Links inside the dropdown */
    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        opacity: 0;
        transform: translateY(-20px); /* Start the items above their final position */
        animation: slideDown 0.5s ease forwards; /* Apply the slide-down animation */
    }

    /* Change color of dropdown links on hover */
    .dropdown-content a:hover {
        background-color: #ddd;
    }

    /* Show the dropdown menu on hover */
    .dropdown:hover .dropdown-content {
        display: block;
    }

    /* Animation for sliding down */
    @keyframes slideDown {
        to {
            opacity: 1;
            transform: translateY(0); /* End the items at their final position */
        }
    }
}

/* Hidden state for toggle */
.show-dropdown .dropdown-content {
    display: block;
    opacity: 1; /* Ensure visible with transition */
    visibility: visible;
}

.show-dropdown #nav-bar {
    background-color: white;
    height: 100vh; /* Full height */
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    transition: background-color 0.5s ease;
}

.show-dropdown #nav-bar ul {
    display: none;
    opacity: 0; /* Ensure hidden with transition */
    visibility: hidden;
}
