/* 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;
}

/* 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;
  }
}


/* Sekcja O nas */
.about {
  padding: clamp(50px, 7vw, 100px) var(--pad-x);
  text-align: center;
  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%),
    url("../Images/QubitBG.png") no-repeat center center / cover;
  color: #f5f5f5;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about h2 {
  font-size: clamp(32px, 6vw, 44px);
  margin-bottom: 18px;
}

.about p {
  font-size: clamp(16px, 2.2vw, 20px);
  margin-bottom: 28px;
  line-height: 1.6;
}

.about-image {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
}

/* Przycisk */
.about-btn {
  display: inline-block;
  padding: 14px 28px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  transition: all .25s ease;
}
.about-btn:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 6px 18px rgba(255,255,255,.35);
}
