/* Sekcja Home */
.hero {
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px var(--pad-x);

  background: url("../Images/QubitBG.png") no-repeat center center / cover;
  color: #fff;
  text-align: center;
  position: relative;
  z-index: 1;
background-attachment: fixed;
}

/* Ciemniejsza, lekko pomarańczowa nakładka dla czytelności */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    radial-gradient(1200px 600px at 70% 30%, rgba(255,140,0,0.25), transparent 60%);
  z-index: -1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Logo */
.hero-logo {
  width: clamp(220px, 40vw, 520px);
  height: auto;
}

/* Teksty */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-text h1,
.hero-title-mobile,
.hero-title-desktop {
  margin: 0;
  font-size: clamp(44px, 10vw, 100px);
  line-height: 1.1;
  background: linear-gradient(270deg, #b35400, #ff8800, #ffcc33, #b35400);
  background-size: 300% 300%;

  background-clip: text;           /* standard */
  -webkit-background-clip: text;   /* prefiks WebKit */
  -webkit-text-fill-color: transparent;

  text-shadow: 0 0 8px rgba(179, 84, 0, 0.6);
  animation: gradientMove 6s ease-in-out infinite;
}


@keyframes gradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Opisy — jasne dla kontrastu */
.hero-text p {
  margin: 0;
  font-size: clamp(20px, 3.5vw, 32px);
  color: #f2f2f2;
  opacity: 0.95;
}

.hero-text .subtext {
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 500;
  color: #e8e8e8;
}

/* CTA */
/* HERO CTA – premium look z poprawnym rozmiarem fontu */
.hero .cta {
  --bg1:#ff8a00;
  --bg2:#ffcc33;
  --ink:#141414;

  display: inline-block;
  padding: clamp(16px, 2.8vw, 24px) clamp(28px, 6vw, 46px);
  border-radius: 14px;
  font-weight: 800;
  font-size: clamp(18px, 2.5vw, 26px);   /* jak w Twoim pliku */
  letter-spacing: .3px;
  text-decoration: none;
  color: var(--ink);

  background:
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0)) padding-box,
    linear-gradient(135deg, var(--bg1), var(--bg2)) border-box;
  border: 2px solid transparent;
  background-origin: border-box;
  background-clip: padding-box, border-box;

  box-shadow:
    0 10px 28px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.25);

  transition:
    transform .22s cubic-bezier(.2,.8,.2,1),
    box-shadow .22s ease,
    filter .22s ease,
    background .22s ease;
}

.hero .cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,.55);
  filter: saturate(1.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0)) padding-box,
    linear-gradient(135deg, var(--bg2), var(--bg1)) border-box;
}

.hero .cta:active {
  transform: translateY(-1px) scale(.985);
}

.hero .cta:focus-visible {
  outline: 3px solid #ffdd88;
  outline-offset: 3px;
  text-decoration: none;
}

.hero .cta {
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 136, 0, 0.6)); transform: scale(1); }
  50%      { filter: drop-shadow(0 0 18px rgba(255, 204, 51, 0.9)); transform: scale(1.05); }
}




/* Desktop */
@media (min-width: 1025px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 60px;
  }
  .hero-text { align-items: flex-start; }
  .hero-title-mobile { display: none; }
  .hero-title-desktop { display: block; }
}

/* Mobile/Tablet */
@media (max-width: 1024px) {
  .hero-title-mobile { display: block; }
  .hero-title-desktop { display: none; }
}

/* Preferuje mniej ruchu */
@media (prefers-reduced-motion: reduce) {
  .hero .cta { transition: none; }
}





/* --- Styl dla przycisku języka (flaga) --- */
.actions.actions--icons #lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #000;                     /* spójne z topbarem */
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  cursor: pointer;
  padding: 0;                           /* obrazek sam wypełnia */
  line-height: 1;
  transition: background .25s ease, border-color .25s ease, transform .1s ease;
}

.actions.actions--icons #lang-toggle:hover {
  background: #444;
  transform: translateY(-1px);
}

.actions.actions--icons #lang-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Obrazek flagi w środku guzika */
.actions.actions--icons #lang-toggle img {
  width: 24px;
  height: 16px;            /* zachowaj proporcje flag */
  object-fit: cover;
  border-radius: 2px;      /* delikatnie zaokrąglone rogi */
  pointer-events: none;    /* klik zawsze w button */
}

/* (opcjonalnie) dopasuj odstęp między ikonami w actions */
.actions.actions--icons {
  gap: 12px;
}



/*!!! Zmiana czcionki !!! */

/* Wyjątek – TYLKO tytuł mobilny ma mieć inną czcionkę */
h1#hero-title.hero-title-mobile {
  font-family: Georgia, serif !important;  /* wybierz coś wyraźnie innego niż Inter */
}

/* (opcjonalnie) jeśli chcesz WYKLUCZYĆ też tytuł desktopowy: */
@media (min-width: 1025px) {
  .hero-title-desktop {
    font-family: Georgia, serif !important;
  }
}




/* === HERO: cząsteczki z głębią, dryfem, migotaniem i przyciąganiem === */



/* upewnij się, że treść jest ponad cząsteczkami */
.hero .hero-content { 
  position: relative; 
  z-index: 1; 
}

/* warstwa cząsteczek */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;          /* pod treścią, nad tłem */
  perspective: 800px;
}

/* pojedyncza cząsteczka – transform zbudowany z wielu offsetów */
.particle {
  position: absolute;
  width: var(--size, 8px);
  height: var(--size, 8px);

  /* paralaksa (--mx/--my) + odpychanie (--rx/--ry) + przyciąganie (--ax/--ay) */
  transform: translate(
    calc(var(--mx, 0px) + var(--rx, 0px) + var(--ax, 0px)),
    calc(var(--my, 0px) + var(--ry, 0px) + var(--ay, 0px))
  );

  opacity: .9;
  transition: transform .25s ease-out;
  will-change: transform;
}

/* świecący punkt w pseudoelemencie */
.particle::before {
  content:"";
  position:absolute;
  inset:0;
  border-radius: 50%;
  background: var(--dot, rgba(255,204,102,.75));
  box-shadow: 0 0 var(--glow, 12px) var(--glowColor, rgba(255,140,0,.65));
  animation:
    var(--driftAnim, drift1) var(--driftDur, 14s) ease-in-out infinite,
    twinkle var(--twinkleDur, 3s) ease-in-out infinite,
    colorShiftWarm 12s ease-in-out infinite;
}

/* rozmiary/warstwy */
.particle.small  { --size: 4px;  --dot: rgba(255,140,0,.75);    --glow: 6px;  --glowColor: rgba(255,140,0,.7);   --driftDur: 10s; --twinkleDur: 2.8s; }
.particle.medium { --size: 8px;  --dot: rgba(255,204,102,.75);  --glow: 12px; --glowColor: rgba(255,204,102,.7); --driftDur: 14s; --twinkleDur: 3.2s; }
.particle.large  { --size: 12px; --dot: rgba(255,220,150,.85);  --glow: 20px; --glowColor: rgba(255,200,120,.8); --driftDur: 18s; --twinkleDur: 3.8s; }

/* losowe opóźnienia (żeby nie migały równo) */
.particle:nth-child(odd)::before  { animation-delay: .0s, 1.2s, 0s; }
.particle:nth-child(even)::before { animation-delay: .0s, .4s, 0s;  }

/* różne warianty dryfu */
@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(25px, -35px) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-30px, -20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes drift3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(20px, 30px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes drift4 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-25px, 25px) scale(1.15); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes drift5 {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(15px, -20px) scale(1.05); }
  50%  { transform: translate(-10px, 15px) scale(0.95); }
  75%  { transform: translate(20px, 20px) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes drift6 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-40px, 10px) scale(1.2) rotate(5deg); }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}
@keyframes drift7 {
  0%   { transform: translate(0, 0) scale(1); }
  30%  { transform: translate(10px, -25px) scale(0.9); }
  60%  { transform: translate(-15px, 20px) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes drift8 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(0px, -40px) scale(1.15); }
  100% { transform: translate(0, 0) scale(1); }
}

/* migotanie */
@keyframes twinkle {
  0%,100% { filter: brightness(1); }
  50%     { filter: brightness(.7); }
}

/* ciepła zmiana koloru */
@keyframes colorShiftWarm {
  0%   { background: rgba(255,204,102,0.8); box-shadow: 0 0 12px rgba(255,204,102,0.8); }
  33%  { background: rgba(255,165,0,0.85);  box-shadow: 0 0 14px rgba(255,140,0,0.8); }
  66%  { background: rgba(255,120,100,0.85);box-shadow: 0 0 16px rgba(255,90,70,0.75); }
  100% { background: rgba(255,204,102,0.8); box-shadow: 0 0 12px rgba(255,204,102,0.8); }
}

/* teleportacja – uruchamiana przez klasę .teleport */
@keyframes teleport {
  0%, 88% { opacity: 1; }
  92%     { opacity: 0; transform: scale(0.3); }
  100%    { opacity: 1; transform: scale(1); }
}
.particle.teleport::before {
  animation: var(--driftAnim, drift1) var(--driftDur, 14s) ease-in-out infinite,
             twinkle var(--twinkleDur,3s) ease-in-out infinite,
             colorShiftWarm 12s ease-in-out infinite,
             teleport .45s ease-in-out 1;
}

/* dostępność: mniej ruchu */
@media (prefers-reduced-motion: reduce){
  .particle { transform: none !important; }
  .particle::before { animation: none !important; }
}

