.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: rgba(247, 248, 250, 0.60);
    backdrop-filter: blur(30px);
    padding: 18.75px 30px;
    transition: all 0.2s ease;
  }

  .navbar.transparent {
    background: #eaebea;
    transition: all 0.2s ease;
    box-shadow: none;
  }
  
  .container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .logo {
    height: 45px;
  }
  
  .logo-block {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-variation-settings: "wght" 400;
    color: #1C1C1E;
  }
  
    .logo-text {
    user-select: none;           /* Standard */
    -webkit-user-select: none;   /* Safari */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    cursor: default;
  }

    .logo-block a,
  .logo-block img,
  .logo-block .logo-text {
    vertical-align: middle;
  }
  
  .nav-menu-desktop {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-grow: 1;
  flex-wrap: nowrap;
}

  .nav-links-desktop {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .nav-links-desktop {
    display: flex;
    list-style: none;
    gap: 12px;
    padding: 0;
    margin: 0;
  }

  .nav-links{
    list-style: none;
    display: flex;
  }
  
  .nav-links-desktop a {
    display: block;
    text-decoration: none;
    font-family: 'Montserrat';
    font-size: 16px;
    font-variation-settings: "wght" 500;
    color: #1C1C1E;
    padding: 7px 12px;
    border-radius: 30px;
    transition: all 0.15s ease;
  }

  .nav-links a {
    display: flex;
    text-decoration: none;
    font-family: 'Montserrat';
    font-size: 16px;
    font-variation-settings: "wght" 500;
    color: #1C1C1E;
    transition: all 0.15s ease;
  }
  
  .nav-links-desktop a:hover {
    background-color: #ffffff;
  }

  .nav-links-desktop a:active {
    transform:scale(0.95);
  }
  
  .btn-small {
    background: white;
    box-shadow: 0 0 15px rgba(213, 212, 212, 0.4);
    backdrop-filter: blur(2px);
    padding: 7px 12px;
    color: #1C1C1E;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-variation-settings: "wght" 500;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.2s ease;
    border: none;       /* ✅ Remove default button border */       /* ✅ Remove focus outline if not needed */
    cursor: pointer;
    margin-left: 4px;
  }

  .btn-small .btn-icon {
  transition: transform 0.3s ease;
  transform-origin: center;
  transform: rotateX(0deg);
}

.btn-small.open .btn-icon {
  transform: rotateX(180deg);
}

  .btn-small:active {
    transform: scale(0.95);
  }

  .btn-small-h:hover{
    transform: scale(1.05);
  }

  .btn-small-h{
    transition: all 0.2s ease;
  }

 
  .btn-icon {
    width: 10px;
    height: auto;
  }

  .flag-icon {
    width: 19px;
    height: 100%;
    border-radius: 2px;
    object-fit: cover;
    margin-left: 7px;
    aspect-ratio: 3/2;
    border: 0.3px solid #2c2c30;
  }

  .language-dropdown {
    position: relative;
  }

  .language-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(247, 248, 250);
    box-shadow: 0 0 15px rgba(213, 212, 212, 0.5), 0 1px 3px 1px #FFF inset;
    border-radius: 15px;
    list-style: none;
    padding: 5px;
    flex-direction: column;
    z-index: 1001;
    box-sizing: border-box;
  }

  .language-menu:not([hidden]) {
    display: flex;
    animation: fadeSlideDown 0.3s ease-out;
  }

  .language-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-variation-settings: "wght" 500;
    color: #1C1C1E;
    transition: all 0.2s ease;
    box-sizing: border-box;
    width: 100%;
    text-align: center;
    border-radius: 10px;
    margin: auto;
    width: calc(100%);
  }

  .language-menu li a:hover {
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(213, 212, 212, 0.5);
  }

/* Hamburger toggle button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hide desktop */
@media (max-width: 1180px){
  .nav-menu-desktop{
    display: none;
  }
}

@media (min-width: 1180px) {
  .nav-menu-mobile {
    display: none !important;
  }
}

/* Responsive behavior */
@media (max-width: 1180px) {
  /* Show toggle, hide nav links container */
  .logo{
    height: 40px;
  }
  .navbar{
    padding: 20px 15px;
  }
  .nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 23px;
  height: 25px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  margin-right: 10px;
  align-self: center;
}

  .nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: #1c1c1e;
    transition: all 0.4s ease;
  }

  /* When menu is open */
  .nav-toggle.open .bar:first-child {
    transform: rotate(45deg) translate(2.5px, 2.5px);
  }

  .nav-toggle.open .bar:last-child {
    transform: rotate(-45deg) translate(2.5px, -2.5px);;
  }

  .nav-menu-mobile {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: rgba(245, 245, 247, 0.80);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding-top: 20px;
    padding-left: 30px;
    gap: 20px;
    z-index: 999;
    text-align: left;
    height: 100vh;
    transition: all 0.2s ease;
  }

  .nav-menu-mobile.open {
    display: flex !important;
    animation: fadeSlideDown2 0.3s ease-out;
  }

  .navbar.menu-open {
    background: #f5f5f7;
  }

  .nav-menu-mobile.closing {
    display: flex !important;
    animation: fadeSlideUp2 0.3s ease-out forwards;
  }

  .nav-menu-mobile .nav-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-menu-mobile .language-dropdown {
  position: absolute;
  top: 20px;   /* same as nav-menu padding-top */
  right: 30px; /* match nav-menu padding-right */
}
}

@media (max-width: 1180px){
  .btn-small{
    font-size: 20px;
  }

  .btn-icon{
    width: 12px;
  }

  .language-menu li a{
    font-size: 20px;
  }
  
  .nav-menu-mobile .nav-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  }

  .nav-links a {
    font-size: 28px;
    padding: 0px 0px;
    margin: 0;
    font-weight: 500;
  }

  .nav-links a:hover {
    background: none;
  }

  .nav-links a:active {
    transform: none;
  }
}

@media (max-width: 1180px) {
  .nav-menu-mobile.open .nav-links a {
    opacity: 0;
  }

  .nav-menu-mobile.open .btn-small {
    opacity: 0;
  }

  .nav-menu-mobile.open .nav-links li a {
    animation: fadeInLink 0.4s ease forwards;
  }

  .nav-menu-mobile.open .nav-links li:nth-child(1) a {
    animation-delay: 0s;
  }
  .nav-menu-mobile.open .nav-links li:nth-child(2) a {
    animation-delay: 0.1s;
  }
  .nav-menu-mobile.open .nav-links li:nth-child(3) a {
    animation-delay: 0.2s;
  }
  .nav-menu-mobile.open .nav-links li:nth-child(4) a {
    animation-delay: 0.3s;
  }
  .nav-menu-mobile.open .nav-links li:nth-child(5) a {
    animation-delay: 0.4s;
  }
  .nav-menu-mobile.open .nav-links li:nth-child(6) a {
    animation-delay: 0.5s;
  }

  .nav-menu-mobile.open .btn-small {
    animation: fadeInLink 0.4s ease forwards;
    animation-delay: 0.3s;
  }

  .nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  }

  .nav-menu-mobile .nav-links a::after {
  content: '';
  display: inline;
  width: 15px;
  height: 15px;
  margin-left: 5px;
  top: 1.75px;
  background-image: url('/assets/0.1_navbar/icons/arrow-right.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transform: translateX(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
  position: relative;
}

  .nav-menu-mobile .nav-links a:hover::after {
  opacity: 1;
  transform: translateX(3px);
}

  .nav-links a:active {
    transform: none;
  }
}

@keyframes fadeInLink {
  from {
    opacity: 0;
    transform: translateX(10px) translateY(-2px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeSlideDown {
  0% {
    opacity: 0;
    transform: scale(0.97);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideDown2 {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeSlideUp {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(0.97);
    filter: blur(5px);
  }
}

@keyframes fadeSlideUp2 {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    filter: blur(3px);
  }
}

.language-menu.animating-out {
  animation: fadeSlideUp 0.3s ease-out forwards;
}

body.menu-open,
html.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: none;
}
