.navbar {
    position: absolute;
    left: 0;
    top: 30px;
    padding: 0;
    margin: 0;
    width: 100%;
    background: transparent;
    z-index: 9999999;
}

.navbar.nav-scroll {
    position: fixed;
    top: -80px;
    padding: 15px 0;
    transition: transform 0.8s;
    transform: translateY(80px);
    backdrop-filter: blur(10px);
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 5px 10px;
    color: rgba(255, 255, 255, 0.5);
}

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

.navbar .logo {
    padding: 7px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    background-color: #ffffff;
}

.navbar .logo img {
    width: 180px;
    filter: invert(1);
}

.navbar .navbar-nav {
    padding: 2px 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    margin-left: 15px;
}

.navbar .navbar-nav .nav-link {
    padding: 5px 20px;
    border-radius: 30px;
    font-size: 14px;
    color: #fff;
}

.navbar .navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
}

.navbar .topnav .butn {
    padding: 7px 20px;
    background: #fff;
    color: #1d1d1d;
    margin-right: 15px;
}

.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
    margin-top: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.dropdown-menu li:first-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    color: var(--main-color);
    padding: 6px 20px;
    transition: all 0.2s ease;
    font-size: 15px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--main-color);
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: middle;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(-180deg);
}

/* Responsive styles */
@media (max-width: 992px) {
    .navbar .navbar-nav {
        margin-left: 0;
        margin-top: 10px;
    }

    .navbar .topnav {
        margin-top: 10px;
    }
}

@media (max-width: 767px) {
    .navbar .logo img {
        width: 150px;
    }

    .navbar .navbar-nav .nav-link {
        padding: 5px 15px;
    }

    .navbar .topnav .butn {
        padding: 5px 15px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0, 0, 0, 0.5);
    }

    .dropdown:hover .dropdown-menu {
        transform: none;
    }
}

@media (max-width: 576px) {
    .navbar .logo img {
        width: 120px;
    }

    .navbar .navbar-nav .nav-link {
        padding: 5px 10px;
        font-size: 12px;
    }

    .navbar .topnav .butn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .navbar .topnav .butn .d-flex span {
        font-size: 12px;
    }
}
