* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;

    line-height: 1.6;
    /* height: 200vh; */
}

.nav-link {
    background-color: #e9edeb;
    padding: 4px 14px;
    border-radius: 20px;
    text-decoration: none;
    color: #27ae60;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover {
    background: linear-gradient(120deg, #27ae60, #16a085);
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(39, 174, 96, 0.5);
    transform: translateY(-3px);
}

a {
    text-decoration: none;
   
}

ol,
ul {
    list-style: none;
}

b {
   
    font-weight: 700;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: background 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
    max-height: auto;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px -12px rgba(0, 0, 0, 0.12);
}

.navbar-inner {
    margin: 0 auto;
    padding: 10px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo a {
    display: flex;
    align-items: center;
    border: none;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 17px;
    letter-spacing: -0.01em;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, color 0.4s ease;
}

.navbar-brand:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.navbar.scrolled .navbar-brand {
    color: #27ae60;
}

.nav-logo {
    height: 36px;
    width: 36px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px;
    box-shadow: 0 4px 14px -4px rgba(39, 174, 96, 0.5);
    /* PNG's inner shapes are opaque yellow-green on a transparent field —
       forced white here so they read against a green/dark hero, and
       switched back to their native tone once the navbar itself turns
       white on scroll. */
    filter: brightness(0) invert(1);
    transition: filter 0.4s ease;
}

.navbar.scrolled .nav-logo {
    filter: none;
    background: rgba(39, 174, 96, 0.08);
    box-shadow: none;
}

/* Menu */
.navbar-menu {

    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.navbar-menu li {
    position: relative;
}

.navbar-menu li>a {
    font-size: 15px;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
    color: #27ae60;
    transition: color 0.5s ease;
    border: none;
}

.navbar-menu li>a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: #27ae60;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.navbar-menu li>a:hover {
   
    color: #27ae60;
    transform: translateY(-2px);
}

.navbar-menu li>a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Dropdown */
.submenu {
    position: absolute;
    top: calc(100% + 12px);
    left: -30px;
    background: rgba(26, 26, 26, 0.97);
    padding: 10px 20px;
    backdrop-filter: blur(16px);
    width: auto;
    border-radius: 14px;
    border: 1px solid rgba(39, 174, 96, 0.15);
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
}

.navbar-menu li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.submenu li a {
    display: block;
    padding: 12px 18px;
    font-size: 14px;
    color: #27ae60;
    transition: background 0.25s ease, color 0.25s ease;
}

.submenu li a:hover {
    
    color: #27ae60;
}


.navbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-avatar-link {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-avatar-link:hover {
    transform: scale(1.06);
}

.navbar-profile {
    position: relative;
}

.navbar-profile-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    min-width: 190px;
    background: rgba(26, 26, 26, 0.97);
    backdrop-filter: blur(16px);
    border-radius: 14px;
    border: 1px solid rgba(39, 174, 96, 0.15);
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
    z-index: 1100;
}

.navbar-profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.navbar-profile-name {
    padding: 10px 12px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-profile-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #ddd;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.navbar-profile-item .material-symbols-outlined {
    font-size: 18px;
    color: #27ae60;
}

.navbar-profile-item:hover {
    background: rgba(39, 174, 96, 0.12);
    color: #fff;
}

.navbar-profile-item-form {
    margin: 0;
}

.navbar-actions a.login {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    transition: color 0.25s ease;
}

.navbar-actions a.login:hover {
    color: #27ae60;
}

.navbar.scrolled .navbar-actions a.login {
    color: #1a1a1a;
}

.navbar.scrolled .navbar-actions a.login:hover {
    color: #27ae60;
}

.navbar-actions a.btn {
    padding: 9px 20px;
    background: linear-gradient(120deg, #27ae60, #16a085);
    background-size: 200% auto;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(39, 174, 96, 0.6);
    transition: background-position 0.5s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.navbar-actions a.btn:hover {
    background-position: right center;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px -8px rgba(39, 174, 96, 0.7);
}

.navbar-actions a.btn:active {
    transform: scale(0.95);
}

/* Toggle (mobile) */
.navbar-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.navbar-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #27ae60;
    border-radius: 2px;
}

/* Very small screens: drop the "Kirish" text, keep the CTA button + avatar/hamburger */
@media (max-width: 420px) {
    .navbar-actions a.login {
        display: none;
    }
    .navbar-actions a.btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    .navbar-right {
        gap: 10px;
    }
}

/* Close button (mobile) */
.navbar-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #27ae60;
}
.mobile{
    display: none;
}
.infocus:focus{
   box-shadow: #27ae60 !important;
   border:3px solid #27ae60 !important;}
   
.infocus::placeholder{
    color: #27ae60 !important;
    font-size: 18px !important;
   }
  .btn-acordion{
    border-radius: 50%;
    display: none;
    width: 30px;
    height: 30px;
    background-color: #e1ebe5;
  } 
/* Desktop compact (small laptops / large tablets in landscape) */
@media (max-width: 1200px) and (min-width: 993px) {
    .navbar-menu {
        gap: 20px;
    }
    .navbar-menu li > a {
        font-size: 14px;
    }
}

/* Tablet drawer — narrower panel, two-column link grid, distinct from phone */
@media (max-width: 992px) and (min-width: 641px) {
    .navbar-menu {
        width: 46%;
        min-width: 360px;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        align-content: start;
        gap: 16px 24px;
    }
    .navbar-menu > li:nth-last-child(-n+2) {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media(max-width:992px) {
    .navbar-menu {
        position: fixed;
        top: 0px;
        right: -100%;
        height:auto;
        min-height: 100vh;
        width: 80%;
        flex-direction: column;
        align-items: flex-start;
        background: linear-gradient(160deg, #1a1a1a 0%, #12211a 100%);

        backdrop-filter: blur(20px);
        padding: 50px;
        border-radius: 10px 0px 10px 10px;
        gap: 5px;
        box-shadow: -20px 0 60px -20px rgba(0, 0, 0, 0.6);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
   .btn-acordion{
    display: block;
   }
    .mobile{
        display: block;
    }

    .navbar-menu.active {
        right: 0;
    }
    .navbar-menu li{
        padding: 3px;
    }
    .navbar-toggle {
        
        display: flex;
    }

    .navbar-close {
        display: block;
    }

     .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        transform: none;
        background: #2c2c2c;
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
        margin-top: 10px;
    }

    /* The avatar has no clean way to sit behind the open drawer, so it's
       hidden entirely while the drawer is open instead of overlapping it. */
    .navbar-actions.navbar-actions-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }
}

.logout-hover .logout {
    visibility: hidden;
    color: #27ae60;
    text-align: center;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: -20px;
    right: 1%;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .logout-hover:hover .logout {
    visibility: visible;
    opacity: 1;
  }
  



.navbar-menu li{
  position:relative;
}



/* Mobile ochilganda */
.submenu.active{
  display:block;
  position:static;
}