/* Maintains the fixed header position with a semi-transparent blurred background */
body{
    margin-top: 4.2rem;
}

.navbar-parent-container {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    transition: all 0.6s ease;
    background-color: rgba(255, 255, 255, 0.7); /* Translucency */
	  backdrop-filter: blur(10px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
}

/* Defines the base container without the pill effect for the top position */
.navbar-container {
    margin: 0 auto !important;
    width: 100% !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Forces the inner navbar to always stay in a single row without wrapping */
.navbar-class {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
}

/* Enforces a horizontal layout for the utility icons and prevents stacking */
.navbar-nav-utils-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    background: transparent !important;
    min-width: fit-content;
}

/* Makes the parent wrapper fully transparent to let the pill float freely */
.navbar-parent-container.scrolled {
    background-color: transparent !important;
    backdrop-filter: none; /* Removes blur from the full-width parent */
    -webkit-backdrop-filter: none;
    padding-top: 10px;
}

/* Transforms the inner container into a translucent blurred pill during scroll */

.navbar-parent-container.scrolled .navbar-container {
    background-color: rgba(255, 255, 255, 0.7) !important; /* Pill translucency */
    backdrop-filter: blur(10px); /* Frosted glass for the pill */
    -webkit-backdrop-filter: blur(10px);
    width: 90% !important;
    max-width: 1250px;
    border-radius: 100px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 5px 25px !important;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Soft white border for glass effect */
}



/* Ensures the logo section doesn't take up excessive width in the pill */

.navbar-logo-section {
    flex: 0 1 auto !important;
    width: auto !important;
}