/* === Jobkiller final overrides (active layer) === */

/* Enhanced navbar styling */
.navbar{
  background:linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.18) 70%, transparent) !important;
  border-bottom:1px solid rgba(255,255,255,.14) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.32) !important;
}

/* Brand + halo */
.brand{ position:relative; gap:.8rem !important; }

/* BIG JOBKILLER logo (uses your transparent PNG) */
.brand-logo{
  width:144px !important; height:144px !important; flex:0 0 144px !important;
  background: transparent url("/images/skull.png") center/contain no-repeat !important;
  mix-blend-mode: screen !important;
  border-radius:50% !important;
  filter: drop-shadow(0 0 20px rgba(255,255,255,.45)) !important;
}

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

/* Force horizontal scrolling on navigation */
.navlinks {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  -webkit-scrollbar: none !important;
  /* Force minimum width to trigger scrolling */
  min-width: max-content !important;
  /* Ensure scrolling works on all devices */
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth !important;
}

.navlinks::-webkit-scrollbar {
  display: none !important;
}

/* Ensure navigation items don't get compressed */
.navlinks a {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  min-width: max-content !important;
}

/* Hero: brighter background + spacing for tall navbar */
.overlay{
  background:
    radial-gradient(70% 100% at 50% 20%, rgba(0,0,0,.12), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.36), rgba(0,0,0,.52)) !important;
  padding-top: 13.5rem !important;
}

/* Lighter glass card */
.content{
  background: rgba(0,0,0,.14) !important;
  border-color: rgba(255,255,255,.16) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.38) !important;
}

/* Mobile scaling - STRONG overrides for logo consistency */
@media (max-width:560px){
  .brand-logo{ 
    width:135px !important; 
    height:135px !important; 
    flex:0 0 135px !important; 
    background: transparent url("/images/skull.png") center/contain no-repeat !important;
    mix-blend-mode: screen !important;
    border-radius:50% !important;
    filter: drop-shadow(0 0 20px rgba(255,255,255,.45)) !important;
  }
  .overlay{ padding-top: 8.6rem !important; }
}

/* Small mobile devices */
@media (max-width: 480px){
  .brand-logo{ 
    width:121.5px !important; 
    height:121.5px !important; 
    flex:0 0 121.5px !important; 
    background: transparent url("/images/skull.png") center/contain no-repeat !important;
    mix-blend-mode: screen !important;
    border-radius:50% !important;
    filter: drop-shadow(0 0 20px rgba(255,255,255,.45)) !important;
  }
}

/* Extra small mobile devices */
@media (max-width: 360px){
  .brand-logo{ 
    width:108px !important; 
    height:108px !important; 
    flex:0 0 108px !important; 
    background: transparent url("/images/skull.png") center/contain no-repeat !important;
    mix-blend-mode: screen !important;
    border-radius:50% !important;
    filter: drop-shadow(0 0 20px rgba(255,255,255,.45)) !important;
  }
}

/* === Mobile fit & overflow guards === */

/* Never allow horizontal scroll for page content, but allow navigation scrolling */
html, body { max-width:100%; overflow-x:hidden !important; }
/* Allow horizontal scrolling for navigation */
.navbar { overflow-x: visible !important; }

/* Constrain the hero card so it never exceeds the viewport */
.content { width:min(92vw, 980px) !important; margin-inline:auto !important; }

/* Prevent logo halo from creating a horizontal scrollbar */
/* .navbar { overflow:hidden !important; } - REMOVED to allow horizontal scrolling */

/* Media tweaks */
@media (max-width: 1024px){
  .content { width:min(94vw, 900px) !important; }
}

@media (max-width: 680px){
  /* Disable fixed backgrounds on mobile (prevents zoom/overflow quirks) */
  body{
    background-attachment: scroll !important;
    background-position: center top !important;
  }

  /* Room for navbar; keep hero fully visible */
  .overlay{ padding-top: 11.8rem !important; }

  /* Keep the big JOBKILLER logo but scale a bit for small screens */
  .brand-logo{ 
    width:135px !important; 
    height:135px !important; 
    flex:0 0 135px !important; 
    background: transparent url("/images/skull.png") center/contain no-repeat !important;
    mix-blend-mode: screen !important;
    border-radius:50% !important;
    filter: drop-shadow(0 0 20px rgba(255,255,255,.45)) !important;
  }

  /* Friendly type sizes on small screens */
  h1{ font-size: clamp(1.8rem, 9vw, 2.6rem) !important; }
  .subline, .description{ font-size:1rem !important; line-height:1.55 !important; }
}

/* Media assets should never overflow */
img, svg, video{ max-width:100% !important; height:auto !important; display:block; }

/* ---- MOBILE FIT: kill horizontal overflow & fixed-bg issues ---- */
html, body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}
/* Allow horizontal scrolling for navigation */
.navbar { overflow-x: visible !important; }

/* Anything wide is clipped, not making the page wider */
body > *, .overlay, .navbar, .content { max-inline-size: 100% !important; }

/* === FORCE HORIZONTAL SCROLLING === */
@media (max-width: 768px) {
  /* Force navigation to be wider than container */
  .navlinks {
    width: max-content !important;
    min-width: max-content !important;
    /* Add some extra width to ensure scrolling */
    padding-right: 2rem !important;
  }
  
  /* Make navigation items wider to force overflow */
  .navlinks a {
    padding: 0.5rem 1rem !important;
    margin-right: 0.5rem !important;
    min-width: 120px !important;
    text-align: center !important;
  }
}

@media (max-width: 600px) {
  .navlinks {
    width: max-content !important;
    min-width: max-content !important;
    padding-right: 3rem !important;
  }
  
  .navlinks a {
    padding: 0.6rem 1.2rem !important;
    margin-right: 0.8rem !important;
    min-width: 140px !important;
    font-size: 0.9rem !important;
  }
}

@media (max-width: 480px) {
  .navlinks {
    width: max-content !important;
    min-width: max-content !important;
    padding-right: 4rem !important;
  }
  
  .navlinks a {
    padding: 0.7rem 1.5rem !important;
    margin-right: 1rem !important;
    min-width: 160px !important;
    font-size: 0.85rem !important;
  }
}
