/* === Jobkiller navbar (mobile-first approach) === */
.navbar{
  position: fixed;
  inset: 0 0 auto 0;
  height: 84px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  z-index: 20;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.18) 70%, transparent);
  border-bottom: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 26px rgba(0,0,0,.30);
}

/* Brand styling */
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 1.2rem;
  position: relative;
  z-index: 20;
}

.brand-logo {
  width: 144px;
  height: 144px;
  flex: 0 0 144px;
  display: inline-block;
  background: transparent url("/images/skull.png") center/contain no-repeat;
  mix-blend-mode: screen;
  border-radius: 50%;
  filter: drop-shadow(0 0 20px rgba(255,255,255,.45));
  transition: transform 0.15s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.05) rotate(-2deg);
  transition: transform 0.15s ease;
}

.brand-title {
  display: none !important; /* Hide the text completely */
}

/* Mobile menu button */
.mobile-menu-btn{
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 21;
}

.mobile-menu-btn span{
  width: 100%;
  height: 3px;
  background: #f7fafc;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Navigation links */
.navlinks{
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.3rem;
  flex: 1;
}

.navlinks a{
  position: relative;
  color: #cfd8e3;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid transparent;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
  white-space: nowrap;
  flex-shrink: 0;
}

.navlinks a:hover{
  color: #fff;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}

.navlinks a[aria-current="page"]{
  color: #fff;
}

.navlinks a[aria-current="page"]::after{
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.2rem;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #ff4d4d 25%, #ffa6a6 50%, #ff4d4d 75%, transparent 100%);
  border-radius: 2px;
  opacity: 0.95;
}

/* Language switcher */
.lang-switch{
  margin-left: auto;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.14);
  color: #f7fafc;
  border-radius: 0.6rem;
  padding: 0.45rem 0.65rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.95rem;
  flex-shrink: 0;
  z-index: 21;
}

.lang-switch option{
  color: #111;
}

/* Mobile-first responsive design */
@media (max-width: 768px){
  .navbar{
    height: 78px;
    padding: 0 0.75rem;
    gap: 0.5rem;
  }
  
  .brand-logo{
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
  }
  
  .brand-title{
    font-size: 0.95rem;
  }
  
  .navlinks{
    gap: 0.2rem;
    margin-left: 0.2rem;
  }
  
  .navlinks a{
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }
  
  .lang-switch{
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }
}

@media (max-width: 600px){
  /* Show mobile menu button */
  .mobile-menu-btn{
    display: flex;
    margin-left: auto;
    margin-right: 0.5rem;
  }
  
  /* Hide regular navigation */
  .navlinks{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 20;
  }
  
  .navlinks.mobile-menu-open{
    transform: translateX(0);
  }
  
  .navlinks a{
    font-size: 1.2rem;
    padding: 1rem 2rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 200px;
    text-align: center;
  }
  
  .navlinks a:hover{
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
  }
  
  /* Animate hamburger menu */
  .navbar.mobile-menu-open .mobile-menu-btn span:nth-child(1){
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .navbar.mobile-menu-open .mobile-menu-btn span:nth-child(2){
    opacity: 0;
  }
  
  .navbar.mobile-menu-open .mobile-menu-btn span:nth-child(3){
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  /* Adjust language switcher position */
  .lang-switch{
    margin-left: 0;
    margin-right: 0.5rem;
  }
}

@media (max-width: 480px){
  .navbar{
    height: 72px;
    padding: 0 0.5rem;
    gap: 0.4rem;
  }
  
  .brand-logo{
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }
  
  .brand-title{
    font-size: 0.9rem;
  }
  
  .navlinks a{
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    min-width: 180px;
  }
  
  .lang-switch{
    font-size: 0.85rem;
    padding: 0.35rem 0.5rem;
  }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .hamburger-menu-btn {
    display: flex;
  }
  
  /* Animate hamburger to X */
  .hamburger-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .hamburger-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  /* Scale down logo on mobile - 35% bigger than before */
  .brand-logo {
    width: 135px;
    height: 135px;
    flex: 0 0 135px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .brand-logo {
    width: 121.5px;
    height: 121.5px;
    flex: 0 0 121.5px;
  }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
  .brand-logo {
    width: 108px;
    height: 108px;
    flex: 0 0 108px;
  }
}

