/* Reset a základ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Roboto Mono', Consolas, Menlo, monospace;
  background-color: #0a0b10;
  color: #f0f0f0;
  overflow-y: auto;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html::-webkit-scrollbar,


body::-webkit-scrollbar {
  width: 0;
  height: 0;
}


/* Obal */
.wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  width: 100%;
}

/* === NEON RÁM === */
.neon-frame {
  position: relative;
  border: 2px solid #00fff0;
  border-radius: 14px;
  padding: 10px;
  width: 680px;
  max-width: 92vw;
  margin-bottom: 2rem;
  box-shadow: 0 0 14px rgba(0,255,240,0.55),
              0 0 28px rgba(0,255,240,0.35) inset;
  animation: neonPulse 2.6s ease-in-out infinite;
}
@keyframes neonPulse {
  0%,100% {
    box-shadow: 0 0 12px rgba(0,255,240,0.45),
                0 0 24px rgba(0,255,240,0.28) inset;
    border-color: #00fff0;
  }
  50% {
    box-shadow: 0 0 22px rgba(0,255,240,0.85),
                0 0 42px rgba(0,255,240,0.55) inset,
                0 0 60px rgba(0,255,240,0.25);
    border-color: #4cfff6;
  }
}
@media (prefers-reduced-motion: reduce){
  .neon-frame { animation: none; }
}

/* === ŠTVOREC PRE VIDEO === */
.square {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #0e1116;
}
.square video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === KARTY === */
.cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 680px;
  max-width: 92vw;
}
.card {
  background: rgba(20, 20, 30, 0.9);
  border: 1px solid #0ff;
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  outline: none;
  width: 100%;
  overflow: hidden; /* zabráni pretečeniu obsahu */
  cursor: default;  /* default, ak karta nie je link */
}
.card[role="link"] {
  cursor: pointer; /* iba linkové karty budú klikateľné */
}
.card:hover,
.card:focus {
  transform: translateY(-6px);
  box-shadow: 0 0 20px #0ff;
}
.card h2 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  color: #0ff;
}

#stay,
#cloud,
#air,
#proto,
#gen{
  display:none;
}

.about-details{
  margin-top:0.75rem;
  font-size:0.9rem;
  color:#d0d5df;
}
.about-details summary{
  cursor:pointer;
  font-size:1rem;
  color:#86f5ff;
  letter-spacing:0.03em;
  margin-bottom:0.4rem;
}
.about-details[open] summary{
  margin-bottom:0.8rem;
}
.about-details p + p{
  margin-top:0.75rem;
}

/* === IFRAME v CONTACT === */
.card .content {
  margin-top: 1rem;
  border-radius: 10px;
  overflow: hidden;
}
.card-frame {
  display: block;
  width: 100%;
  border: 0;
  aspect-ratio: 16 / 9;
  height: auto;
}

/* === TLAČIDLO "HORE" === */
.to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #0ff;
  color: #000;
  font-size: 1.5rem;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 50%;
  box-shadow: 0 0 10px #0ff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: #00cccc; }

/* === FARBY A SLUŽBY === */
:root{
  --bg: #0b0d10;
  --fg: #e9eef3;
  --muted: #a9b4c0;
  --card: #12161b;
  --ring: 0 0 0 1px rgba(255,255,255,0.06);
  --grad-cloud: linear-gradient(135deg,#66e0ff, #6a7dff);
  --grad-air:   linear-gradient(135deg,#77f0b3, #5ac8fa);
  --grad-proto: linear-gradient(135deg,#ffd36a, #ff7ab6);
  --grad-gen:   linear-gradient(135deg,#c48bff, #6ad1ff);
}

.services{
  margin: 4rem auto;
  max-width: 1100px;
  padding: 0 1.2rem 2rem;
  color: var(--fg);
  background: conic-gradient(from 180deg at 50% 50%, #0b0d10, #0e1116, #0b0d10);
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.services > h2{
  font: 800 2.1rem/1.1 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  letter-spacing: 0.2px;
  padding: 1.4rem 1.2rem 0.6rem;
  margin: 0 0 0.6rem;
  background: linear-gradient(90deg,#ffffff, #a8c5ff 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.service{
  --accent: var(--grad-cloud);
  position: relative;
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: 1rem;
  background: radial-gradient(1200px 200px at 0% 0%, rgba(255,255,255,0.04), transparent 45%), var(--card);
  box-shadow: var(--ring), 0 12px 20px rgba(0,0,0,0.35);
  overflow: clip;
  transition: transform .28s ease, box-shadow .28s ease;
}
.service + .service{ margin-top: 1rem; }

.service::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent);
  opacity: 0.9;
}
.service:hover{
  transform: translateY(-4px);
  box-shadow: var(--ring), 0 18px 30px rgba(0,0,0,0.45);
}
.service h3{
  margin: 0 0 .55rem;
  font: 700 1.25rem/1.2 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .2px;
}
.service p{
  margin: 0;
  color: var(--muted);
  font: 500 1rem/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.cloud{ --accent: var(--grad-cloud); }
.air{   --accent: var(--grad-air); }
.proto{ --accent: var(--grad-proto); }
.gen{   --accent: var(--grad-gen); }

@media (min-width: 820px){
  .services{
    padding: 1.2rem 1.2rem 1.6rem;
  }
  .services{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .services > h2{
    grid-column: 1 / -1;
    padding-left: .2rem;
    padding-bottom: .4rem;
    margin-bottom: .2rem;
  }
}

@media (prefers-color-scheme: light){
  :root{
    --bg: #f7f9fc; --fg:#0e1521; --muted:#49586b; --card:#ffffff;
  }
  .services{
    background: radial-gradient(1200px 400px at 20% -10%, #eef3ff, transparent 55%), #f7f9fc;
    box-shadow: 0 10px 24px rgba(38,54,77,0.08);
  }
  .service{
    box-shadow: var(--ring), 0 10px 22px rgba(38,54,77,0.08);
  }
}


/* === KONTAKTY: lepšia čitateľnosť a odkazy bez podčiarknutia === */
#contact {
  font-family: 'Roboto Mono', Consolas, Menlo, monospace;
  line-height: 1.6;
  letter-spacing: 0.2px;
  color: var(--fg);
}

/* text vnútri kontakt karty */
#contact p {
  color: var(--fg);
  font-weight: 500;              /* jemne hrubšie pre čitateľnosť */
}

/* odkazy v kontakt karte — bez podčiarknutia a nie modré */
#contact a,
#contact a:visited {
  color: var(--fg);              /* zdedí svetlú farbu textu */
  text-decoration: none;         /* žiadne podčiarknutie */
}

/* hover/active stav – jemný akcent, stále bez podčiarknutia */
#contact a:hover,
#contact a:active {
  color: #a8c5ff;                /* decentný akcent, vysoký kontrast na tmavom */
  text-decoration: none;
}

/* prístupnosť pre klávesnicu – viditeľné orámovanie namiesto podčiarknutia */
#contact a:focus-visible {
  outline: 2px solid #0ff;
  outline-offset: 3px;
  border-radius: 6px;
  text-decoration: none;
}

/* drobné vylepšenie vzhľadu celej karty kontaktov */
#contact.card {
  background: rgba(20, 22, 30, 0.92);  /* o chlp svetlejšie pre vyšší kontrast */
  border-color: #22f6ff;               /* jemnejšie tyrkysové ohraničenie */
}

/* IFRAME: mobilný dotyk a vlastný stacking context */
.card .content {
  position: relative;
}

.card-frame {
  pointer-events: auto;         /* garantuj, že berie interakcie */
  touch-action: manipulation;   /* zlepšuje tap/drag na mobile */
  -webkit-transform: translateZ(0); /* iOS: vlastná vrstvička, fix na touch */
  transform: translateZ(0);
  z-index: 0;
}

/* voliteľné: keď by niečo prekrývalo iframe, zvýš z-index */
#contact { position: relative; z-index: 0; }

/* iba CONTACT karta: iframe vždy štvorec */
#contact .card-frame {
  aspect-ratio: 1 / 1;
  height: auto;
}


#globe-container {
position: relative;
width: 100vw;
height: 100vh;
overflow: hidden;
}


#bg-canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
z-index: 0;
}


/* karty .stay, .cloud, .air, .proto a .gen ako štvorec */
#stay, #cloud, #air, #proto, #gen {
  aspect-ratio: 1 / 1;
  min-height: 0; /* výšku určuje obsah, ale aspect-ratio drží minimum */
}



/* Pozadie v .stay s rotujúcim obrázkom */
#stay {
  position: relative;
  overflow: hidden;
}

/* obrázok na pozadí */
#stay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("mp_pano.jpg") center/cover no-repeat;
  filter: blur(2px) brightness(0.7);
  transform-origin: center;
  animation: rotate360 60s linear infinite; /* pomalá rotácia */
  z-index: 0;
}

/* obsah karty nad obrázkom */
#stay > * {
  position: relative;
  z-index: 1;
  color: #fff; /* alebo inú kontrastnú farbu */
  text-shadow: 0 0 8px rgba(0,0,0,0.6);
}

/* animácia */
@keyframes rotate360 {
  from { transform: rotate(0deg) scale(1.1); }
  to   { transform: rotate(360deg) scale(1.1); }
}

/* .stay ako štvorec, s pano pozadím pod textom */
#stay {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

/* vrstva s iframe (pano.html) */
#stay .stay-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;              /* kliky ostanú na karte/linkoch */
}
#stay .stay-bg iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  transform: scale(1.06);            /* mierne zväčšiť, aby blur neukázal okraje */
  filter: blur(var(--stay-blur, 0px)) brightness(0.9);
}

/* jemné stmavenie/kontrast a prechod pre čitateľnosť textu */
#stay .stay-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 75% at 50% 50%, rgba(0,0,0,0.05), rgba(0,0,0,0.35)),
    linear-gradient(to top, rgba(0,0,0,0.25), transparent 30%);
  z-index: 1;
}

/* obsah nad pozadím */
#stay > *:not(.stay-bg) {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

/* plynulé zmeny blur-u */
#stay .stay-bg iframe { transition: filter 200ms linear; }

/* prefer-reduced-motion: vypni dynamický blur */
@media (prefers-reduced-motion: reduce) {
  #stay .stay-bg iframe { filter: blur(6px) brightness(0.75) !important; }
}



/* karta .gen – pozadie video */
#gen {
  position: relative;
  aspect-ratio: 1 / 1;    /* štvorec */
  overflow: hidden;
}

#gen .gen-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;   /* kliky zostanú funkčné na karte */
}

#gen .gen-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* video vyplní celý priestor */
  filter: blur(0px) brightness(1.1);
}

#gen .gen-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0.1));
  z-index: 1;
}

/* text nad pozadím */
#gen > *:not(.gen-bg) {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* karta .air – štvorcová, s obrázkom v pozadí */
#air {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

#air .air-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#air .air-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;             /* vyplní celý priestor */
  filter: blur(0px) brightness(0.85);
}

#air .air-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3), rgba(0,0,0,0.05));
  z-index: 1;
}

/* obsah nad obrázkom */
#air > *:not(.air-bg) {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}






.neon-frame {
  position: relative;
  display: inline-block;
  padding: 14px;                 /* hrúbka rámika */
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;            /* správne vrstvy */
}

/* žiarivý rám – animovaný prúd farieb */
.neon-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(120deg,
    #00fff0, #00bfff, #9a4dff, #ff2dfb, #00fff0);
  background-size: 300% 300%;
  animation: neonShift 8s ease-in-out infinite;
  /* vyrež vnútro, nech zostane len rámik */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: 0;
}

/* jemná aura okolo rámu */
.neon-frame::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: inherit;
  background: radial-gradient(60% 60% at 50% 50%, rgba(0,255,255,0.25), transparent 70%);
  filter: blur(28px);
  animation: glowPulse 5s ease-in-out infinite;
  z-index: -1;
}

/* vnútorný „holografický“ overlay na videu (mriežka + scanlines) */
.neon-frame .square {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
}

/* mriežka + scanlines – veľmi jemné (neruší) */
.neon-frame .square::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to right, rgba(255,255,255,0.05) 0 1px, transparent 1px 14px
    ),
    repeating-linear-gradient(
      to bottom, rgba(255,255,255,0.03) 0 1px, transparent 1px 14px
    ),
    linear-gradient(180deg, rgba(0,0,0,0.1), transparent 30%, rgba(0,0,0,0.15));
  mix-blend-mode: overlay;
  opacity: .45;
  animation: holoShift 9s linear infinite;
}

.neon-frame .square video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes neonShift {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

@keyframes glowPulse {
  0%, 100% { opacity: .65; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.05); }
}

@keyframes holoShift {
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-20px,-10px,0); }
}

@media (prefers-reduced-motion: reduce) {
  .neon-frame::before,
  .neon-frame::after,
  .neon-frame .square::after { animation: none; }
}


/* nechaj Efekt 1 a pridaj toto — aktivuješ pridaním .fx-corners na .neon-frame */
.neon-frame.fx-corners::before { animation-duration: 5s; } /* rýchlejší prúd */

.neon-frame.fx-corners .square::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(0,255,255,0.7), transparent) 0 0 / 30% 2px no-repeat,
    linear-gradient(0deg,  transparent, rgba(0,255,255,0.7), transparent) 0 0 / 2px 30% no-repeat,
    linear-gradient(90deg, transparent, rgba(0,255,255,0.7), transparent) 100% 100% / 30% 2px no-repeat,
    linear-gradient(0deg,  transparent, rgba(0,255,255,0.7), transparent) 100% 100% / 2px 30% no-repeat;
  animation: runners 2.2s linear infinite;
  border-radius: inherit;
  z-index: 2;
}

@keyframes runners {
  0%   { background-position: 0% 0%, 0% 0%, 100% 100%, 100% 100%; }
  50%  { background-position: 100% 0%, 0% 100%, 0% 100%, 100% 0%; }
  100% { background-position: 0% 0%, 0% 0%, 100% 100%, 100% 100%; }
}


/* nechaj Efekt 1 a pridaj toto — aktivuješ pridaním .fx-corners na .neon-frame */
.neon-frame.fx-corners::before { animation-duration: 5s; } /* rýchlejší prúd */

.neon-frame.fx-corners .square::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(0,255,255,0.7), transparent) 0 0 / 30% 2px no-repeat,
    linear-gradient(0deg,  transparent, rgba(0,255,255,0.7), transparent) 0 0 / 2px 30% no-repeat,
    linear-gradient(90deg, transparent, rgba(0,255,255,0.7), transparent) 100% 100% / 30% 2px no-repeat,
    linear-gradient(0deg,  transparent, rgba(0,255,255,0.7), transparent) 100% 100% / 2px 30% no-repeat;
  animation: runners 2.2s linear infinite;
  border-radius: inherit;
  z-index: 2;
}

@keyframes runners {
  0%   { background-position: 0% 0%, 0% 0%, 100% 100%, 100% 100%; }
  50%  { background-position: 100% 0%, 0% 100%, 0% 100%, 100% 0%; }
  100% { background-position: 0% 0%, 0% 0%, 100% 100%, 100% 100%; }
}

/* už máš: .neon-frame .square je kontajner videa */
.neon-frame .square {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 20px;   /* ← oblé hrany kontajnera */
  overflow: hidden;      /* ← orez videa do zaoblenia */
}

/* pre istotu aj na video samotné (niekedy pomôže proti subpixel “bleed”) */
.neon-frame .square video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit; /* zdedí 20px */
}
