/* General Navbar Styling */
.page-header .navbar {
    position: sticky;
    top: 0;
    /* Stick to the top */
    z-index: 1000;
    /* Ensure it stays above other elements */
    height: 60px;
    /* Adjusted height */
    width: 100vw;
    /* Full width */
    padding: 0;
    /* Remove unnecessary padding */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for visibility */
    transition: background-color 0.3s, box-shadow 0.3s;
    /* Smooth transitions */
}

.dimmed-navbar {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@media only screen and (max-width: 991px) {
    .dimmed-navbar {
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
    }
}

@media only screen and (max-width: 991px) {
    .page-header .container-fluid {
        position: fixed;
        bottom: 0;
        width: 100%;
        left: 0;
        right: 0;
        transition: transform 0.3s ease-out;
    }

    .navbar-collapse {
        position: fixed;
        bottom: 80px;
        /* Height of your bottom nav */
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.85);
        padding: 1rem;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        transition: transform 2s ease-out, opacity 0.8s ease-out !important;
        transform: translateY(calc(100vh - 80px));
        opacity: 0;
    }

    .navbar-collapse.collapsing {
        /* Ensures smooth animation during collapse */
        transition: transform 0.1s ease-out, opacity 0.8s ease-out !important;

        transform: translateY(calc(100vh - 80px));
        opacity: 0;
    }

    .navbar-collapse.collapse {
        /* For collapsed state */

        display: none;
    }

    .navbar-collapse.show {
        /* For expanded state */
        display: block !important;
        transform: translateY(0);
        transition: transform 0.8s ease-out, opacity 0.8s ease-out !important;
        opacity: 1;
    }
}



/* Reset Parent Container Styling */
.page-header .container-fluid {
    width: 100%;
    /* Ensure it takes up the full width */
    padding: 0;
    /* Remove default padding */
    margin: 0;
    /* Remove default margin */
}

.page-header .row {
    margin: 0;
    /* Reset row margin */
    padding: 0;
    /* Reset row padding */
}

/* Logo Styling */
.logo-wrap .navbar-brand img.main-logo {
    max-height: 40px;
    /* Adjust logo height */
    margin: 5px 0;
    /* Vertical centering for smaller navbar */
}

/* Menu Link Styling */
.header-menu .nav-link {
    padding: 5px 10px;
    /* Compact padding for smaller navbar */
    font-size: 14px;
    /* Smaller font for compact design */
    color: #fff;
    /* Good contrast on dimmed background */
    transition: color 0.3s ease;
    /* Smooth color transition on hover */
}

.header-menu .nav-link.active,
.header-menu .nav-link:hover {
    color: #f8d34a;
    /* Highlight color for active/hovered links */
}

/* Mobile Menu Button Styling */
.mobile-nav .menu-toggler {
    width: 40px;
    height: 30px;
    cursor: pointer;
    /* Indicates clickable */
}

.mobile-nav .menu-toggler .line {
    background-color: #fff;
    height: 3px;
    width: 100%;
    margin: 4px 0;
    transition: all 0.3s ease;
    /* Adds smooth animation */
}

/* Mobile Navigation Background */
@media only screen and (max-width: 991px) {
    .header-nav .mobile-nav {
        background-color: rgba(0, 0, 0, 0.7);
    }

    .navbar-brand {
        display: block;
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
    }
}

/* Mobile Navigation Menu Background */
@media only screen and (max-width: 991px) {
    .header-nav .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.85);
        /* Dark semi-transparent background */
        background: rgba(0, 0, 0, 0.85);
        /* Ensure background is set for full compatibility */
    }
}


/* Header Contact Button */
.header-contact .button.button-yellow {
    font-size: 12px;
    /* Adjust button font size */
    padding: 5px 15px;
    /* Compact padding for smaller design */
    background-color: #f8d34a;
    /* Yellow button color */
    color: #000;
    /* Text color for readability */
    border-radius: 4px;
    /* Slightly rounded corners */
    transition: background-color 0.3s ease;
    /* Smooth hover transition */
}

.header-contact .button.button-yellow:hover {
    background-color: #d6b32e;
    /* Darker yellow on hover */
}