/* ============================================================
   ENG HOME — Hero-skena  (v1400)

   Kreu i faqes është një kartë e vetme e errët, blu→navy, që zë krejt
   ekranin e parë. Ideja vjen nga referencat futuriste: një produkt hero,
   tipografi gjigante, çipa xhami mbi të, dhe një pilulë produkti e
   klikueshme — jo nëntë seksione që bërtasin njëkohësisht.

   Paleta rron VETËM brenda kësaj karte. Pjesa tjetër e faqes mbetet e
   ndritshme — kontrasti e bën kartën të duket si ekran, jo si sfond.

   `showcase.js` e drejton këtë skenë pa ndryshim: emrat `data-egsc-*` dhe
   klasat e gjendjes (`is-entering`, `is-leaving`, `is-settled`) janë të
   njëjtat si te versioni i mëparshëm.
   ============================================================ */

.eghero {
  --c-blue:    #1e5bff;
  --c-blue-2:  #0b2a7a;
  --c-navy:  #050b1f;
  --c-navy-2:#0a1330;
  --c-glow:   #3d7bff;
  --c-bone:   #eaf0ff;
  --c-ink:    #050b1f;

  --c-swoop: cubic-bezier(.16, 1, .3, 1);

  padding: clamp(10px, 1.4vw, 22px) 0 clamp(30px, 4vw, 56px);
}

.eghero__frame {
  position: relative;
  width: min(1500px, calc(100% - clamp(16px, 3vw, 44px)));
  margin-inline: auto;
  padding: clamp(12px, 1.2vw, 18px);
  border-radius: clamp(22px, 2.6vw, 38px);
  background: linear-gradient(150deg, var(--c-blue) 0%, var(--c-blue-2) 42%, #050b1f 100%);
  box-shadow: 0 50px 110px rgba(5, 11, 31, .46);
}

/* ---------- Shiriti i sipërm ---------- */

.eghero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 6px 14px;
}

/* Shenja e markës: tri shufra që formojnë një trekëndësh — pa foto, pa font. */
.eghero__mark {
  display: grid;
  grid-template-columns: repeat(3, 6px);
  gap: 3px;
  align-items: end;
  height: 22px;
  text-decoration: none;
}
.eghero__mark span {
  display: block;
  border-radius: 2px;
  background: var(--c-bone);
}
.eghero__mark span:nth-child(1) { height: 10px; opacity: .5; }
.eghero__mark span:nth-child(2) { height: 20px; }
.eghero__mark span:nth-child(3) { height: 14px; opacity: .75; }

.eghero__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.eghero__navlink {
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(234, 240, 255, .12);
  color: var(--c-bone);
  font: 500 11.5px/1 var(--neo-sans, Manrope, sans-serif);
  letter-spacing: .06em;
  text-decoration: none;
  transition: background-color .3s ease, transform .3s var(--c-swoop);
}
.eghero__navlink:hover {
  background: var(--c-bone);
  color: var(--c-ink);
  transform: translateY(-1px);
}

.eghero__tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.eghero__count {
  font: 500 10px/1 ui-monospace, monospace;
  letter-spacing: .2em;
  color: rgba(234, 240, 255, .6);
}
.eghero__count b { color: var(--c-bone); }

.eghero__round {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(234, 240, 255, .12);
  color: var(--c-bone);
  font: 400 20px/1 var(--neo-display, Sora, sans-serif);
  cursor: pointer;
  transition: background-color .3s ease, transform .3s var(--c-swoop);
}
.eghero__round:hover { background: var(--c-glow); transform: scale(1.06); }

/* ---------- Skena ---------- */

.eghero__scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: center;
  min-height: clamp(520px, 62vh, 720px);
  padding: clamp(26px, 3.2vw, 54px);
  overflow: hidden;
  border-radius: clamp(16px, 2vw, 28px);
  background:
    radial-gradient(52% 58% at 68% 34%, rgba(61, 123, 255, .32) 0%, transparent 64%),
    linear-gradient(160deg, var(--c-navy-2) 0%, var(--c-navy) 72%);
  isolation: isolate;
}

/* Fjala e madhe prapa — emri i produktit, si filigran. */
.eghero__ghost {
  position: absolute;
  right: 2%;
  top: 46%;
  z-index: 1;
  margin: 0;
  transform: translateY(-50%);
  font: 600 clamp(90px, 15vw, 250px)/.8 var(--neo-display, Sora, sans-serif);
  letter-spacing: -.07em;
  color: rgba(61, 123, 255, .15);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  transition: opacity .26s ease, transform .42s var(--c-swoop);
}
.eghero.is-turning .eghero__ghost { opacity: 0; }

/* ---------- Kopja ---------- */

.eghero__copy {
  position: relative;
  z-index: 4;
  grid-column: 1;
  grid-row: 1;
  max-width: 30ch;
}

.eghero__kicker {
  margin: 0 0 14px;
  font: 500 9.5px/1 ui-monospace, monospace;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(234, 240, 255, .5);
}

.eghero__title {
  margin: 0 0 18px;
  /* Shqipja ka Ë dhe Ç — me `line-height` nën 1 theksat priteshin nga lart. */
  font: 700 clamp(40px, 6.2vw, 96px)/1.02 var(--neo-display, Sora, sans-serif);
  letter-spacing: -.05em;
  text-transform: uppercase;
  color: var(--c-bone);
}
.eghero__title span { color: var(--c-glow); }

.eghero__lede {
  max-width: 34ch;
  margin: 0;
  font: 400 15px/1.65 var(--neo-sans, Manrope, sans-serif);
  color: rgba(234, 240, 255, .62);
}

/* ---------- Produktet ---------- */

.eghero__stack {
  position: relative;
  z-index: 3;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  min-height: clamp(360px, 44vh, 520px);
}

.eghero__slide {
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  place-items: center;
}
.eghero__slide[hidden] { display: none; }

.eghero__product {
  width: clamp(240px, 30vw, 460px);
  filter: drop-shadow(0 50px 70px rgba(0, 0, 0, .66));
}
.eghero__product img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(300px, 42vh, 490px);
  object-fit: contain;
}

/* ---------- Çipat e xhamit ---------- */

.eghero__chips {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
  z-index: 4;
}

.eghero__chip {
  position: absolute;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 10px;
  min-width: 132px;
  padding: 11px 14px;
  border: 1px solid rgba(234, 240, 255, .16);
  border-radius: 14px;
  background: rgba(8, 14, 34, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
/* Pika që e lidh çipin me produktin. */
.eghero__chip i {
  grid-row: span 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-glow);
  box-shadow: 0 0 0 4px rgba(61, 123, 255, .22);
}
.eghero__chip span {
  font: 500 8px/1 ui-monospace, monospace;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(234, 240, 255, .52);
}
.eghero__chip b {
  font: 600 14px/1.1 var(--neo-display, Sora, sans-serif);
  letter-spacing: -.02em;
  color: var(--c-bone);
}

.eghero__chip--1 { top: 8%;  left: -4%;  --c-x: -60px; --c-y: -26px; --c-d: .06s; }
.eghero__chip--2 { top: 30%; right: -6%; --c-x:  60px; --c-y: -14px; --c-d: .12s; }
.eghero__chip--3 { bottom: 36%; left: -6%; --c-x: -50px; --c-y:  34px; --c-d: .18s; }

/* ---------- Pilula e produktit ---------- */

.eghero__buy {
  position: absolute;
  left: -6%;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: min(340px, 90%);
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(234, 240, 255, .14);
  border-radius: 18px;
  background: rgba(8, 14, 34, .62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
  transition: transform .4s var(--c-swoop), background-color .4s ease, border-color .4s ease;
}
.eghero__buy:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 123, 255, .55);
  background: rgba(34, 8, 12, .8);
}

.eghero__buy-thumb {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(234, 240, 255, .08);
}
.eghero__buy-thumb img { width: 40px; height: 40px; object-fit: contain; }

.eghero__buy-body { display: grid; gap: 3px; min-width: 0; }
.eghero__buy-body b {
  overflow: hidden;
  font: 600 14px/1.2 var(--neo-display, Sora, sans-serif);
  letter-spacing: -.02em;
  color: var(--c-bone);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.eghero__buy-body span {
  font: 600 13px/1 var(--neo-sans, Manrope, sans-serif);
  color: var(--c-glow);
}
.eghero__buy-body s {
  margin-left: 5px;
  font-weight: 400;
  color: rgba(234, 240, 255, .38);
}

.eghero__buy-go {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--c-bone);
  color: var(--c-ink);
  font-size: 16px;
  transition: transform .4s var(--c-swoop);
}
.eghero__buy:hover .eghero__buy-go { transform: translateX(3px); }

/* ---------- Radha e produkteve ---------- */

.eghero__rail {
  position: absolute;
  right: clamp(20px, 3vw, 48px);
  bottom: clamp(20px, 3vw, 40px);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 42%;
}

.eghero__dot {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(234, 240, 255, .14);
  border-radius: 12px;
  background: rgba(234, 240, 255, .06);
  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, transform .3s var(--c-swoop);
}
.eghero__dot img { width: 30px; height: 30px; object-fit: contain; opacity: .5; transition: opacity .3s ease; }
.eghero__dot:hover { transform: translateY(-2px); }
.eghero__dot:hover img { opacity: .85; }
.eghero__dot.is-on {
  border-color: var(--c-glow);
  background: rgba(61, 123, 255, .2);
}
.eghero__dot.is-on img { opacity: 1; }

/* ============================================================
   Animacioni — i shpejtë, jo i ngadaltë
   ============================================================ */

@keyframes eghero-in {
  from { opacity: 0; transform: translate3d(0, 70px, 0) rotate(-7deg) scale(.84); }
  to   { opacity: 1; transform: none; }
}
@keyframes eghero-out {
  to { opacity: 0; transform: translate3d(0, -60px, 0) rotate(6deg) scale(.9); }
}
@keyframes eghero-chip-in {
  from { opacity: 0; transform: translate3d(var(--c-x, 0), var(--c-y, 0), 0) scale(.72); }
  to   { opacity: 1; transform: none; }
}
@keyframes eghero-chip-out {
  to { opacity: 0; transform: translate3d(0, -22px, 0) scale(.9); }
}
@keyframes eghero-buy-in {
  from { opacity: 0; transform: translate3d(-26px, 12px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes eghero-bob {
  0%, 100% { transform: translateY(0)    rotate(0); }
  50%      { transform: translateY(-13px) rotate(.7deg); }
}
@keyframes eghero-drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

.eghero__slide.is-entering .eghero__product { animation: eghero-in .56s var(--c-swoop) both; }
.eghero__slide.is-entering .eghero__chip {
  animation: eghero-chip-in .44s var(--c-swoop) both;
  animation-delay: var(--c-d, 0s);
}
.eghero__slide.is-entering .eghero__buy { animation: eghero-buy-in .42s var(--c-swoop) .1s both; }

.eghero__slide.is-leaving .eghero__product { animation: eghero-out .3s ease-in both; }
.eghero__slide.is-leaving .eghero__chip { animation: eghero-chip-out .26s ease-in both; }

.eghero__slide.is-settled .eghero__product { animation: eghero-bob 7s ease-in-out infinite; }
.eghero__slide.is-settled .eghero__chip {
  animation: eghero-drift 6s ease-in-out infinite;
  animation-delay: var(--c-d, 0s);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .eghero__scene:hover .eghero__slide.is-settled .eghero__product { animation-play-state: paused; }
}

/* ---------- Ekrane më të vogla ---------- */

@media (max-width: 1080px) {
  .eghero__scene {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: clamp(78px, 14vw, 100px);
  }
  .eghero__copy { grid-row: 1; text-align: center; max-width: none; margin-inline: auto; }
  .eghero__stack { grid-column: 1; grid-row: 2; min-height: 340px; }
  .eghero__ghost { right: auto; left: 50%; top: 58%; transform: translate(-50%, -50%); }
  /* Pilula rri mbi radhën, jo mbi të: dhjetë miniatura të mbështjella zinin
     tri rreshta dhe e mbulonin. Radha bëhet një rresht që rrëshqet. */
  /* Në një kolonë, pilula nuk rri e varur mbi produktin — hyn në rrjedhë
     poshtë tij. E pozicionuar absolutisht, ajo binte pikërisht mbi foto. */
  .eghero__slide { grid-template-rows: 1fr auto; align-content: center; }
  .eghero__buy {
    position: static;
    transform: none;
    width: min(340px, 100%);
    margin: 16px auto 0;
  }
  .eghero__buy:hover { transform: translateY(-3px); }

  .eghero__rail {
    left: 50%;
    right: auto;
    bottom: 16px;
    transform: translateX(-50%);
    max-width: calc(100% - 28px);
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .eghero__rail::-webkit-scrollbar { display: none; }
  .eghero__dot { flex: 0 0 auto; }
}

@media (max-width: 720px) {
  .eghero__nav { display: none; }
  .eghero__title { font-size: clamp(34px, 11vw, 54px); }
  .eghero__product { width: clamp(190px, 62vw, 280px); }
  .eghero__product img { max-height: 250px; }
  .eghero__chip { min-width: 0; padding: 8px 10px; }
  .eghero__chip b { font-size: 12px; }
  .eghero__chip--3 { display: none; }
  .eghero__chip--1 { left: -2%; }
  .eghero__chip--2 { right: -2%; }
  .eghero__dot { width: 34px; height: 34px; }
  .eghero__dot img { width: 24px; height: 24px; }
}

/* ---------- Lëvizja e reduktuar ---------- */

@media (prefers-reduced-motion: reduce) {
  .eghero__slide.is-entering .eghero__product,
  .eghero__slide.is-entering .eghero__chip,
  .eghero__slide.is-entering .eghero__buy,
  .eghero__slide.is-leaving .eghero__product,
  .eghero__slide.is-leaving .eghero__chip,
  .eghero__slide.is-settled .eghero__product,
  .eghero__slide.is-settled .eghero__chip {
    animation: none;
  }
}

/* ENG HOME — Fullscreen showcase v1601 */
.eghero {
  padding: 10px 0 26px !important;
}

.eghero__frame {
  width: calc(100% - 20px) !important;
  max-width: none !important;
  border-radius: clamp(20px, 2vw, 34px) !important;
}

.eghero__scene {
  min-height: calc(100svh - 215px) !important;
}

.eghero__product {
  width: clamp(390px, 38vw, 600px) !important;
}

.eghero__product img {
  max-height: 62vh !important;
}

@media (max-width: 1080px) {
  .eghero__scene {
    min-height: calc(100svh - 190px) !important;
  }

  .eghero__product {
    width: clamp(280px, 62vw, 480px) !important;
  }
}

@media (max-width: 720px) {
  .eghero__frame {
    width: calc(100% - 10px) !important;
  }

  .eghero__scene {
    min-height: calc(100svh - 135px) !important;
  }

  .eghero__product {
    width: clamp(240px, 76vw, 350px) !important;
  }

  .eghero__product img {
    max-height: 38vh !important;
  }
}

/* ENG HOME — Fullscreen showcase v1601 */
.eghero {
  padding: 10px 0 26px !important;
}

.eghero__frame {
  width: calc(100% - 20px) !important;
  max-width: none !important;
  border-radius: clamp(20px, 2vw, 34px) !important;
}

.eghero__scene {
  min-height: calc(100svh - 215px) !important;
}

.eghero__product {
  width: clamp(390px, 38vw, 600px) !important;
}

.eghero__product img {
  max-height: 62vh !important;
}

@media (max-width: 1080px) {
  .eghero__scene {
    min-height: calc(100svh - 190px) !important;
  }

  .eghero__product {
    width: clamp(280px, 62vw, 480px) !important;
  }
}

@media (max-width: 720px) {
  .eghero__frame {
    width: calc(100% - 10px) !important;
  }

  .eghero__scene {
    min-height: calc(100svh - 135px) !important;
  }

  .eghero__product {
    width: clamp(240px, 76vw, 350px) !important;
  }

  .eghero__product img {
    max-height: 38vh !important;
  }
}
/* Typewriter cursor */
.eghero__title.is-typing::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: .82em;
  margin-left: 8px;
  background: #3d7bff;
  vertical-align: -.06em;
  animation: eghero-cursor-blink .75s steps(1) infinite;
}

@keyframes eghero-cursor-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .eghero__title.is-typing::after {
    display: none;
  }
}

/* Typewriter stability fix v1603 */
.eghero,
.eghero__scene,
.eghero__copy,
.eghero__title {
  overflow-anchor: none !important;
}

.eghero__title {
  height: 3.1em !important;
  min-height: 3.1em !important;
  overflow: visible !important;
}

/* Hiqe vijën e kaltër */
.eghero__title.is-typing::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 720px) {
  .eghero__title {
    height: 4.15em !important;
    min-height: 4.15em !important;
    margin-bottom: 18px !important;
  }
}

/* Typewriter layout correction v1604 */
@media (min-width: 1081px) {
  .eghero__copy {
    max-width: 48rem !important;
  }

  .eghero__title {
    width: max-content !important;
    max-width: none !important;
    height: 3.1em !important;
    min-height: 3.1em !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 1080px) {
  .eghero__title {
    width: 100% !important;
    height: 4.15em !important;
    min-height: 4.15em !important;
    white-space: normal !important;
  }
}

/* ENG HOME — Dark true fullscreen v1605 */
.eghero {
  padding: 0 !important;
  margin: 0 !important;
  background: #050b1f !important;
}

.eghero__frame {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #050b1f !important;
  box-shadow: none !important;
}

.eghero__bar {
  position: absolute !important;
  top: 20px !important;
  left: 28px !important;
  right: 28px !important;
  z-index: 20 !important;
  padding: 0 !important;
}

.eghero__scene {
  min-height: calc(100svh - 100px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(52% 58% at 68% 34%, rgba(61,123,255,.22) 0%, transparent 64%),
    linear-gradient(160deg,#0a1330 0%,#050b1f 72%) !important;
}

@media (max-width: 720px) {
  .eghero__bar {
    top: 14px !important;
    left: 16px !important;
    right: 16px !important;
  }

  .eghero__scene {
    min-height: calc(100svh - 72px) !important;
  }
}
