/* Enhanced Custom Navbar Styling - Clean White Theme */
.navbar{
    background: #ffffff !important;
}
.navbar-custom {
    background: #ffffff !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Sticky navbar enhancement */
.navbar-custom.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    padding: 0.8rem 0;
}

.navbar-custom .navbar-brand {
    color: #2c3e50 !important;
    font-weight: 700;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

/*.navbar-custom .navbar-brand:hover {*/
/*    color: #dba512 !important;*/
/*    background: rgb(253 250 241);*/
/*}*/

/* Center the navigation items */
.navbar-nav {
    margin: 0 auto;
}

.navbar-custom .navbar-nav .nav-link {
    color: #2c3e50 !important;
    font-weight: 700;
    padding: 0.8rem 1.4rem !important;
    position: relative;
    transition: all 0.3s ease;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    font-size: 1rem;
    border-radius: 8px;
}

.navbar-custom .navbar-nav .nav-link:hover {
    color: #dba512 !important;
    background: rgba(231, 76, 60, 0.05);
}

/* Clean underline effect */
.navbar-custom .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background: #dba512;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-custom .navbar-nav .nav-link:hover::after {
    width: 70%;
}

/* Active link styling */
.navbar-custom .navbar-nav .nav-link.active {
    color: #e1b113 !important;
    font-weight: 600;
    background: rgb(223 173 18 / 6%);
}

.navbar-custom .navbar-nav .nav-link.active::after {
    width: 70%;
}

/* Clean Dropdown Styling */
.dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    margin-top: 0.5rem;
    min-width: 200px;
    padding: 0.8rem 0;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    color: #2c3e50 !important;
    padding: 0.7rem 1.5rem;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0.1rem 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: transparent !important;
    color: #e4b612 !important;
    transform: translateX(3px);
}

/* Clean submenu styling */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -8px;
    margin-left: 8px;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
    animation: slideInRight 0.2s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Remove default dropdown arrow and add custom clean arrow */
.dropdown-toggle::after {
    display: none !important;
}

.nav-item.dropdown .nav-link::before {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    color: #6c757d;
}

.nav-item.dropdown.show .nav-link::before,
.nav-item.dropdown .nav-link:hover::before {
    color: #dba512;
}

.nav-item.dropdown.show .nav-link::before {
    transform: rotate(180deg);
}

/* Submenu arrow */
.dropdown-submenu>.dropdown-item::after {
    content: '▶';
    font-size: 0.7rem;
    float: right;
    color: #6c757d;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.dropdown-submenu:hover>.dropdown-item::after {
    color: #dba512;
}

/* Enhanced Navbar Toggler */
.navbar-toggler {
    border: 2px solid #2c3e50;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar-toggler:hover {
    border-color: #dba512;
    background: rgba(231, 76, 60, 0.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
    outline: none;
}

/* Custom toggler icon */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844, 62, 80, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28231, 76, 60, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Adjustments */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin: 1rem 0;
    }

    .navbar-custom .navbar-nav {
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 12px;
        padding: 1.5rem;
        margin-top: 1rem;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .navbar-custom .navbar-nav .nav-link {
        padding: 1rem !important;
        border-radius: 8px;
        margin: 0.2rem 0;
        text-align: left;
    }

    .navbar-custom .navbar-nav .nav-link::after {
        display: none;
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none;
        box-shadow: none;
        background: rgba(248, 249, 250, 0.8) !important;
        margin: 0.5rem 0;
        padding: 0.5rem;
        border-radius: 8px;
    }

    .dropdown-submenu .dropdown-menu {
        margin-left: 1rem;
        border-left: 2px solid #dba512;
        background: rgba(255, 255, 255, 0.9) !important;
    }

    .dropdown-submenu>.dropdown-item::after {
        content: '▼';
        transform: none;
    }
}

/* Demo content styling */
.demo-content {
    margin-top: 5rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.demo-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.demo-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Scroll effects */
@media (min-width: 992px) {
    .navbar-custom {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1030;
    }
}

/* Logo styling */
.navbar-brand img {
    transition: all 0.3s ease;
}

/*.navbar-brand:hover img {*/
/*    transform: scale(1.02);*/
/*}*/

/* Divider styling */
.dropdown-divider {
    border-color: rgba(0, 0, 0, 0.08) !important;
    margin: 0.5rem 1rem !important;
}

/* Emoji spacing in menu items */
.dropdown-item {
    display: flex;
    align-items: center;
}

.dropdown-item span {
    margin-right: 0.5rem;
}