/* Activated reveal when section is in view */
.langs.in-view .langs-title {
  opacity: 1; transform: none; filter: blur(0); transition-delay: 40ms;
}
.langs.in-view .langs-desc {
  opacity: 1; transform: none; filter: blur(0); transition-delay: 140ms;
}
.langs.in-view .langs-marquee {
  opacity: 1; transform: none; filter: blur(0); transition-delay: 240ms;
}

@media (prefers-reduced-motion: reduce) {
  .langs-title,
  .langs-desc,
  .langs-marquee { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}
/* (old avatar wrap with ring removed) */

/* Font setup: Varela Round + smoothing */
@font-face {
  font-family: 'Varela Round';
  src: url('../font/VarelaRound-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.intro {
  width: 100%; /* full width so image can reach the right edge */
  max-width: none;
  margin: calc(20px + 2cm) 0 0 0; /* moved higher */
  padding: 0 0 0 24px; /* left padding for nicer text alignment */
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  cursor: default; /* prevent text cursor in intro */
  min-height: 70vh; /* bring next section higher while keeping scroll */
  padding-bottom: 12vh; /* breathing room at bottom */
  position: relative; /* positioning context for arrow */
}
.intro h1, .intro .intro-text, .intro .chip { cursor: default; }
.intro h1 {
  margin: 0 0 10px;
  font-size: 30px; /* slightly smaller for Bungee */
  line-height: 1.15;
  letter-spacing: 0.2px;
  font-family: 'Bungee', 'Varela Round', system-ui, sans-serif;
}
.intro h1 .word {
  display: inline-block;
  transform: translateY(12px);
  opacity: 0;
  animation: wordUp 700ms cubic-bezier(.2,.7,.2,1) forwards;
}
.intro h1 .word:nth-child(1) { animation-delay: 0ms; }
.intro h1 .word:nth-child(2) { animation-delay: 240ms; }
.intro h1 .word:nth-child(3) { animation-delay: 480ms; }

@keyframes wordUp {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

@keyframes introTextIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.intro .intro-text {
  margin: 0;
  font-size: 20px;
  color: rgba(255,255,255,0.92);
  line-height: 1.6; /* increase spacing between lines */
  opacity: 0; /* hidden until heading animation finishes */
  transform: translateY(6px);
  animation: introTextIn 450ms ease-out forwards;
  animation-delay: 1.0s; /* after last word (0.7s + 0.2s) + small buffer */
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 999px; /* pill */
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(0,0,0,0.62), rgba(0,0,0,0.46));
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 140ms ease, box-shadow 180ms ease, background-color 180ms ease;
  cursor: pointer;
  position: relative;
  /* fade-in first, then start breathing loop */
  opacity: 0;
  transform: translateY(4px);
  animation: btnIn 380ms ease-out 1.05s forwards,
             btnBreath 4.5s ease-in-out 1.6s infinite;
  overflow: hidden; /* clip sheen inside pill */
}
.btn-discord::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.18) 35%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}
.btn-discord i {
  color: #5865F2; /* Discord blurple */
  font-size: 18px;
}
.btn-discord:hover {
  background: linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0.52));
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 10px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-1px);
}
.btn-discord:hover::after {
  animation: btnSheen 900ms ease;
}
.btn-discord:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.04);
}
.btn-discord:focus-visible { outline: 2px solid rgba(88,101,242,0.7); outline-offset: 2px; }

@keyframes btnBreath {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06); }
  50% { transform: scale(1.02); box-shadow: 0 10px 24px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.08); }
}
@keyframes btnIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes btnSheen {
  0% { transform: translateX(-120%); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-discord { animation: none; }
  .btn-discord:hover::after { animation: none; }
}

/* Chip-style emphasis: bold text with a short rounded underline */
.chip {
  position: relative;
  font-weight: 700;
  padding-right: 2px; /* space so underline end doesn't touch glyph */
}
.chip::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: calc(-2px - 0.5mm); /* slightly more gap below the word */
  height: 5px; /* thinner underline */
  width: 85%; /* end slightly before word end */
  background: rgba(0, 160, 147, 0.55); /* softer white */
  border-radius: 999px;
  transition: width 200ms ease, background-color 200ms ease;
}
.chip:hover::after {
  width: 90%;
  background: rgba(0, 194, 219, 0.75);
}

/* Right-side illustration in intro */
.intro-illustration-wrap { 
  top: 100px;
  margin-left: auto; 
  margin-right: 4cm; /* flush to the right edge */
  display: flex; 
  justify-content: flex-end; 
  align-items: flex-start;
  margin-top: -20px; /* raise image a bit */
  position: relative; /* for glow pseudo-element */
}
.intro-illustration {
  position: relative; /* allow stacking over glow */
  display: block;
  width: min(40vw, 520px);
  height: auto;
  object-fit: contain;
  /* Force visible gray tones instead of near-black */
  filter: grayscale(100%) brightness(1.6) contrast(0.85);
  opacity: 0; /* fade in later */
  z-index: 1; /* above the glow */
  transform: translateY(12px);
  /* fade-in then gentle float */
  animation: avatarIn 500ms ease-out 1.2s forwards,
             floatY 6s ease-in-out 1.2s infinite;
}
.intro-illustration-wrap::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: clamp(260px, 42vw, 560px);
  margin: auto 0; /* vertically center */
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(ellipse at 60% 50%, rgba(255,255,255,0.38), rgba(255,255,255,0) 62%);
  filter: blur(32px);
  opacity: 0; /* glow also fades in */
  z-index: 0; /* ensure behind */
  animation: glowIn 400ms ease-out 1.2s forwards,
             floatY 6s ease-in-out 1.2s infinite;
}
.intro .intro-content { 
  text-align: left; 
  max-width: 720px; /* keep text column readable */
  margin-top: 4.5cm; /* push text lower */
  margin-left: 5cm; /* shift text 2cm to the right */
}

@keyframes avatarIn {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes glowIn {
  from { opacity: 0; }
  to   { opacity: 0.7; }
}

/* Gentle up-down floating */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

@media (max-width: 720px) {
  .intro { flex-direction: column; text-align: center; padding: 0 16px; gap: 20px; }
  .intro .intro-content { text-align: center; }
  .intro-illustration { width: 80vw; }
  .intro { min-height: 180vh; padding-bottom: 14vh; }
}

/* Respect reduced motion: no word animation */
@media (prefers-reduced-motion: reduce) {
  .intro-illustration { animation: none; transform: none; opacity: 1; }
  .intro h1 .word { animation: none; transform: none; opacity: 1; }
  .intro .intro-text { animation: none; opacity: 1; transform: none; }
  .intro-illustration-wrap::before { animation: none; opacity: 0.7; }
}


html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
html, body { min-height: 100%; }
html, body {
  overflow-y: auto;   /* allow vertical scroll */
  overflow-x: hidden; /* prevent horizontal scroll */
}
/* Cross-browser hide scrollbar visuals */
html {
  -ms-overflow-style: none;    /* IE and old Edge */
  scrollbar-width: none;       /* Firefox */
}
html::-webkit-scrollbar {      /* Chrome, Safari */
  display: none;
}
body {
  margin: 0;
  font-family: 'Varela Round', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: url('../ico/background.jpg') center / cover no-repeat;
  min-height: 180vh; /* ensure vertical scroll regardless of route */
}

/* Toasts */
.toast-container{
  position: fixed;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  width: min(320px, 90vw);
  z-index: 1000;
}
.toast {
  position: relative;
  width: 100%;
  color: #fff;
  background: rgba(12,12,14,0.68);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
  transform: translateX(120%) translateY(10px) scale(.98);
  opacity: 0;
  transition: transform 360ms cubic-bezier(.22,.75,.2,1), opacity 260ms ease;
  overflow: hidden;
  z-index: 1;
}
.toast::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px; /* border width */
  background: linear-gradient(135deg, rgba(0,194,219,0.6), rgba(0,160,147,0.2), rgba(255,255,255,0.08));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .35;
}
.toast.show {
  transform: translateX(0) translateY(0) scale(1);
  opacity: 1;
}
.toast.hiding {
  transform: translateX(120%) translateY(0) scale(.98);
  opacity: 0;
}
.toast-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 10px;
}
.toast-icon{ color:#00c2db; opacity:.95; font-size:16px; }
.toast-text { font-weight: 700; letter-spacing: .4px; }
.toast-close {
  margin-left: auto;
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, transform 140ms ease;
}
.toast-close:hover { color: #fff; transform: scale(1.05); }
.toast-close:active { transform: scale(.98); }
.toast-progress {
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}
.toast-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg, rgba(0,194,219,1) 0 12px, rgba(0,160,147,1) 12px 24px);
  background-size: 200% 100%;
  animation: stripeMove 600ms linear infinite;
}

@keyframes stripeMove { to { background-position: 200% 0; } }

/* Glass cursor ring */
.cursor-glass {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 2px solid transparent;
  opacity: 0; /* hidden until first mousemove */
  transition: opacity 120ms ease;
}
.cursor-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #333333, #333333);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
}

/* Rotating white arc around the glass cursor (smooth loader-like ring) */
.cursor-glass::after {
  content: "";
  position: absolute;
  inset: 0px; /* slightly outside to sit over the ring */
  border-radius: 50%;
  pointer-events: none;
  /* Two white arcs on opposite sides (approx 60deg each) */
  background: conic-gradient(
    from 0deg,
    /* gap */ rgba(255,255,255,0) 0 10deg,
    /* arc 1 */ rgba(255,255,255,0.95) 10deg 70deg,
    /* gap */ rgba(255,255,255,0) 70deg 190deg,
    /* arc 2 */ rgba(255,255,255,0.95) 190deg 250deg,
    /* gap */ rgba(255,255,255,0) 250deg 360deg
  );
  /* Punch a hole inside so it looks like a stroke */
  -webkit-mask: radial-gradient(circle, transparent 55%, #000 56%);
  mask: radial-gradient(circle, transparent 55%, #000 56%);
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.35));
  animation: ringSpin 1.2s linear infinite;
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

/* Motion blur ghosts trailing the glass cursor */
.cursor-ghost {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998; /* just below the main glass */
  opacity: 0; /* controlled via JS */
  will-change: transform, opacity;
  /* faint white arc-like glow similar to main ring */
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.18), rgba(255,255,255,0) 60%);
  filter: blur(2px) saturate(120%);
}

/* Dynamic-Island style navbar (detached, rounded, glassmorphism) */
.nav-island {
  position: relative;
  margin: 24px auto 0; /* detached from the top */
  padding: 6px 27px; /* +~19px per side ≈ +1cm total */
  width: fit-content; /* shrink to content */
  max-width: 90vw;
  display: block;

  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px; /* pill shape */
  backdrop-filter: blur(50px) saturate(120%);
  -webkit-backdrop-filter: blur(50px) saturate(120%);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.18);
  overflow: hidden; /* so the label slides from inside */
  /* Drop-in animation from the top */
  animation: navDrop 600ms cubic-bezier(.2,.7,.2,1) both;
  position: relative;
}

.nav-island ul {
  margin: 0;
  padding: 0 8px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center; /* center icons in a compact row */
  gap: 18px;
}


/* Drop-in keyframes */
@keyframes navDrop {
  from { transform: translateY(-24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}



/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nav-island { animation: none; }
}
.nav-island a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 2px; /* subtle inner spacing around the icon */
  color: #ffffff; /* icons white */
  text-decoration: none;
  border-radius: 12px;
  background: transparent; /* no fill by default */
  transition: color 160ms ease, transform 120ms ease;
}
.nav-island a:focus-visible {
  outline: 2px solid rgba(255,255,255,0.8);
  outline-offset: 2px;
}
.nav-island a:hover {
  background: transparent; /* no fill on hover */
}

.nav-island a:active {
  transform: translateY(1px) scale(0.98);
}

.nav-island i {
  font-size: 18px; /* icon size */
  margin: 0 2px; /* delicate horizontal spacing */
  line-height: 1;
  transition: opacity 160ms ease;
}

/* Icon hover micro-interaction for all items with labels */
.has-label a { position: relative; }
.has-label a i {
  transition: opacity 160ms ease;
}
.has-label a:hover i {
  transform: none; /* disable lift/scale on hover */
}

/* Sliding label from the bottom (inside navbar) */
.has-label .nav-label {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 12px); /* start lower inside the pill */
  opacity: 0;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.2px;
  pointer-events: none;
  white-space: nowrap;
  transition: transform 200ms ease, opacity 200ms ease; /* no delay by default */
}

/* Darken only the icon slightly on hover */
.nav-island a:hover i {
  opacity: 0.5;
}

@media (max-width: 520px) {
  .nav-island {
    margin-top: 16px;
    padding: 6px 8px;
  }
  .nav-island a { width: 38px; height: 38px; }
  .nav-island i { font-size: 16px; }
}

/* --- Code page random number display --- */
.rand-wrap {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none; /* do not block the whole page */
}
.rand-list {
  display: flex;
  gap: 16px;
  font-family: 'Press Start 2P', system-ui, monospace;
  color: #fff;
  /* smaller than before */
  font-size: clamp(18px, 4vw, 42px);
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
  user-select: none;
  pointer-events: auto; /* allow clicks only on the code digits area */
}
.digit-col {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 1ch; /* keep columns stable */
}
.digit-col.locked { cursor: not-allowed; }
.digit-col .digit {
  line-height: 1;
}
.digit-col .digit-underline {
  width: 0.9em;
  height: 2px; /* thin floor line */
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.rand-title {
  font-family: 'Bungee', 'Varela Round', system-ui, sans-serif;
  color: rgba(255,255,255,0.95);
  font-size: clamp(12px, 2vw, 20px);
  letter-spacing: .5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
  user-select: none;
}

/* Bottom-centered gentle floating arrow (SVG chevron, no background) */
.arrow-down {
  position: sticky; /* stays relative to section, sticks in viewport */
  left: 50%;
  top: calc(80vh - 90px); /* ~20px above bottom for 70px svg */
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* nie jest guzikiem */
  cursor: default;
  z-index: 3; /* above section content */
  transition: opacity 300ms ease; /* fade on scroll */
  will-change: opacity; /* smoother fade */
}
.arrow-down svg { width: 70px; height: 70px; opacity: 0.95; animation: arrowFloatY 3.5s ease-in-out infinite; }
.arrow-down path { stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }

@keyframes arrowFloatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .arrow-down { animation: none; }
}

/* --- Languages section (JĘZYKI) --- */
.langs {
  width: 100%;
  padding: 60px 0 40px;
  color: #fff;
}
.langs-wrap {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center; /* center heading and description */
  position: relative; /* anchor for absolute tooltip */
}
.langs-title {
  margin: 0 0 8px 0;
  font-family: 'Bungee', 'Varela Round', system-ui, sans-serif;
  font-size: clamp(28px, 6vw, 54px);
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
  /* reveal initial state */
  opacity: 0;
  transform: translateY(10px);
  filter: blur(2px);
  transition: opacity 520ms ease, transform 520ms ease, filter 520ms ease;
}
.langs-desc {
  margin: 0 0 18px 0;
  font-size: clamp(13px, 2.5vw, 16px);
  color: rgba(255,255,255,0.85);
  opacity: 0;
  transform: translateY(10px);
  filter: blur(2px);
  transition: opacity 520ms ease, transform 520ms ease, filter 520ms ease;
}

/* Marquee container with edge fade */
.langs-marquee {
  position: relative;
  overflow: hidden;
  padding: 12px 0 17px; /* extra bottom space for the global tooltip */
  --scroll-duration: 26s;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  opacity: 0;
  transform: translateY(10px);
  filter: blur(2px);
  transition: opacity 520ms ease, transform 520ms ease, filter 520ms ease;
}

.langs-marquee .track {
  display: inline-flex;
  align-items: center;
  gap: clamp(20px, 5vw, 60px);
  flex-wrap: nowrap; /* no wrapping to preserve seamless line */
  min-width: 200%; /* duplicate icons allow -50% shift */
  animation: langsScroll var(--scroll-duration) linear infinite;
  will-change: transform;
}

.langs-marquee i {
  font-size: clamp(28px, 6vw, 46px);
  color: rgba(255,255,255,0.95); /* default: white */
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
  transition: transform 160ms ease, opacity 160ms ease, color 160ms ease;
  flex: 0 0 auto; /* fixed-size items for stable spacing */
  position: relative; /* anchor for tooltip */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.langs-marquee i:hover {
  transform: translateY(-3px) scale(1.06);
  opacity: 1;
  color: var(--brand, rgba(255,255,255,0.95)); /* restore brand color on hover */
}

/* Brand colors (used via --brand var) */
.langs-marquee .fa-python   { --brand: #3776AB; }
.langs-marquee .fa-js       { --brand: #F7DF1E; }
.langs-marquee .fa-html5    { --brand: #E34F26; }
.langs-marquee .fa-css3-alt { --brand: #1572B6; }
.langs-marquee .fa-node-js  { --brand: #339933; }
.langs-marquee .fa-react    { --brand: #61DAFB; }
.langs-marquee .fa-git-alt  { --brand: #F05032; }
.langs-marquee .fa-php      { --brand: #777BB4; }

/* Tooltip bubble under icons (uses data-label) */
/* Per-icon tooltip disabled in favor of one global tooltip below the bar */
.langs-marquee i::after { content: none; }

/* Global tooltip positioned under hovered icon */
.langs-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, 8px);
  background: #ffffff;
  color: #111;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  padding: 7px 10px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 3;
}
.langs-tooltip.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Pause on hover handled via JS on icon hover */

@keyframes langsScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .langs-marquee .track { animation: none; }
}
