
.my-nav {
    position: fixed !important;
    left: 0 !important;
    transform: none !important;
    z-index: 1000;

    
    flex-wrap: nowrap !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px;
    height: auto;
    border-radius: 0;
    min-height: 56px;

    background-color: #1a1a1a;
    

    transition: 
        max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.3s ease,
        border-radius 0.3s ease,
        background-color 0.3s ease;
        
}

.top-wrapper{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 56px;
}

.nav-spacer{
  width: 28px;
}

.navbar__toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #ffcc00;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.mobile-menu {
    max-height: 0;
    padding-bottom: 0;
    opacity: 0;
    overflow: hidden;

    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.4s ease;
  }
/* Rozwijana struktura z JS */
.mobile-menu.open {
    max-height: 800px; /* Musi być na tyle dużo, by pochłonęło wszystkie Twoje linki */
    padding-bottom: 20px; /* Przywracamy oddech na dolnej krawędzi paska */
    opacity: 1; /* Pojawia się i łagodnieje */
}
/* Wyśrodkuj elementy samej listy (Pages i Languages) */
.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    align-items: center; /* Tekst na środek! */
    gap: 15px; /* Odstęp pomiędzy samymi linkami (np. Home z About) */
}
/* Stylizuj czcionki linków */
.mobile-menu a {
    color: rgb(173, 173, 173);
    text-decoration: none;
    font-size: 20px; /* Nieco większe do klikania palcem na telefonie */
    padding: 10px;
    display: block;
}
/* Efekt złotego po tapnięciu/najechaniu */
.mobile-menu a:hover {
    color: #ffcc00;
}

.desktop-menu{
  display: none;
}
.nav-logo {
    width: auto;
    height: 40px;
    
}

.my-nav.scrolled {
    max-width: 100%;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
  .my-nav.scrolled{
    max-width: 60%;
    padding: 10px 20px;
    border-radius: 0 0 20px 20px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }
  
    
}

@media (min-width: 1650px) {
  .navbar__toggle, .nav-spacer, .mobile-menu {
    display: none;
  }
  .desktop-menu{
    display: flex;
  }
  nav a {
    color: rgb(173, 173, 173);
    text-decoration: none;
    margin: 0 3px;
    padding: 8px 16px;
    border-radius: 15px;
}

nav ul a:hover {
    background-color: #ffcc006e;
    color: #ffcc00;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.languages a{
    padding: 8px 10px;
}

.languages li{
    width: 50px;
}

.nav-logo {
    max-width: 350px;
    height: 50px;
    
}
  
    
}