/* RESET */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

.portfolio{
  position:fixed;
  inset:0;

  display:none; !important;
  justify-content:center;
  align-items:center;

  z-index:1000;
}

.portfolio.is-visible{
  display:flex;
}
/* FONT */
@font-face {
  font-family: "Akbar";
  src: url("fonts/akbar.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}
body{
  font-family: "Akbar", sans-serif;
  letter-spacing: 2px;
  color:#111;

  background-attachment: fixed;
  background-color:#ffffff;

  overflow-x:hidden;

 text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.hero,
main{
  position: relative;
  z-index: 2;
}

.hero,
.portfolio,
.gallery,
.about,
.services,
.contact{
  background: transparent !important;
}

.hero-logo{
  margin-bottom:20px; 
}

.hero-logo img{
  width:920px;
  height:auto;
  display:block;
  margin:0 auto;
}

/* HERO - BANER*/
.hero{
  position: relative;
  min-height: 100vh;
  display:flex;
  align-items:flex-start;   /* 🔥 ZMĚNA */
  justify-content:center;
  padding-top:100px;         /* 🔥 doladění výšky */
  text-align:center;
  background: transparent;
}

/* ==== HERO IMAGE ANIMACE + RÁM ==== */

.hero-title-img{
  display:flex;
  justify-content:center;
  margin-top:40px;
}

/* obrázek + rám */
.hero-title-img img{
  width:860px;
  max-width:90%;
  height:auto;
  display:block;

  /* 🔥 RÁM KOLEM OBRÁZKU */
  padding:12px;
  border:3px solid #000;
  border-radius: 55% 45% 60% 40% / 40% 60% 45% 55%;
  background:#fff;

  /* 🔥 ANIMACE */
  transform-origin:center;

  animation: heroPulse 8s ease-in-out infinite;
  animation-delay: -4s; /* 🔥 KLÍČ – synchronizace s rukama */
}

/* 🔥 animace – MUSÍ mít vrchol v 50% */
@keyframes heroPulse{
  0%{
    transform: scaleX(1) scaleY(1);
  }

  50%{
    transform: scaleX(1.1) scaleY(1.05); /* 🔥 maximum = ruce od sebe */
  }

  100%{
    transform: scaleX(1) scaleY(1);
  }
}

/* LEVÁ + PRAVÁ STRANA */
.bg-hands{
  position: fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
}

.hand{
  position:absolute;
  top:-110px;        /* doladíme */
  height:135%;       /* základ */
  max-width:none;
  object-fit:contain;
  pointer-events:none;
}
 
.hand.left{
  left:-30px; /* 🔥 tady ladíš */
  animation: handLeft 8s ease-in-out infinite;
}

.hand.right{
  right:-30px; /* 🔥 tady ladíš */
  animation: handRight 8s ease-in-out infinite;
}

@keyframes handLeft{
  0%   { transform: translateX(0px) scale(1); }
  50%  { transform: translateX(20px) scale(1.03); }
  100% { transform: translateX(0px) scale(1); }
}

@keyframes handRight{
  0%   { transform: translateX(0px) scale(1); }
  50%  { transform: translateX(-20px) scale(1.03); }
  100% { transform: translateX(0px) scale(1); }
}

/* OBRÁZEK - MONAKU DESIGN */

.hero-title-img img{
  width:660px;      /* 👈 tady ladíš velikost */
  max-width:90%;
  height:auto;
  display:block;
  margin:0 auto;
  margin-top:130px;
}

@media(max-width:768px){
  .hero-title-img img{
    width:200px;
  }
}

/* OBSAH */
.hero-content{
  position: relative;
margin-top:-50px;
  z-index: 2;
  color: #111;
}

/* TEXTY */
.hero h1{
  font-size:60px;
  font-weight:600;
  margin-bottom:10px;
}

.hero p{
  font-size:25px;
  margin-top:50px;   /* 🔥 tohle je to důležité */
  margin-bottom:20px;
}

.hero button{
  margin-top:35px;
}

/* BUTTON */
.btn{
  display:inline-block;
  padding:12px 28px;
  background:white;
  color:black;
  text-decoration:none;
  font-weight:500;
  transition:0.3s;
}

.btn:hover{
  background:black;
  color:white;
}

/* PORTFOLIO */
.portfolio{
  padding:40px 0;
}

.portfolio.is-hidden{
  display:none;
}

.portfolio.is-visible{
  display:block;
}

/* FILM PÁS */

.gallery{
  overflow:hidden;
  position:relative;
  padding:80px 0;
  isolation:isolate;
}

.gallery-track{
  display:flex;
  gap:15px;
  flex-wrap:nowrap;
  position:relative;
  z-index:2;
}

.gallery img{
  width:100%;
  height:100%;
  object-fit:cover;
 
  display:block;
  transition:transform 0.4s ease;
  will-change:transform;
  position:relative;
  z-index:2;
}

.portfolio{
  position:relative;
  padding:40px 0;
  overflow:visible;
}

.portfolio-box{
  position:relative;
  width:100%;
}

.portfolio-box::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  transform:translateY(-50%);

  height: clamp(900px, 70vh, 1200px);

  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);

  border-top:4px solid rgba(0,0,0,0.92);
  border-bottom:4px solid rgba(0,0,0,0.92);

  z-index:1;
  pointer-events:none;
}

.gallery{
  overflow:hidden;
  position:relative;
  padding:80px 0;
  isolation:isolate;
  z-index:2;
}

.gallery-track{
  display:flex;
  gap:15px;
  flex-wrap:nowrap;
  position:relative;
  z-index:3;
}

.img-wrap{
  transition: transform 0.6s ease;
}

.img-wrap.highlight{
  transform: scale(1.18);
  z-index:20;
}

.img-inner{
  width:100%;
  height:100%;
  position:relative;

  border-radius: 55% 45% 60% 40% / 40% 60% 45% 55%;
  overflow:hidden;

  background:#fff;
  border:3px solid #000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.10);

  transition: transform 0.3s ease;
}

.img-inner img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.img-inner picture{
  position:absolute;
  inset:10px;              /* tady řídíš ten bílý lem */
  display:block;
  overflow:hidden;
  border-radius: inherit;
}

.img-inner picture img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}


.img-wrap{
  width:360px;
  height:250px;
  overflow:visible;   /* 🔥 KRITICKÉ */

  display:flex;
  align-items:center;
  justify-content:center;

  z-index:1;

  --shakeX: 0px;
  --shakeY: 0px;
  --scale: 1;

  transform-origin:center center;
   transform: translate(var(--shakeX), var(--shakeY)) scale(var(--scale));

  will-change: transform;
  transition: transform 0.18s cubic-bezier(0.22,1,0.36,1);
}

.gallery-track{
  display:flex;
  gap:15px;
  flex-wrap:nowrap;
  width:max-content;
  animation:scroll 60s linear infinite;
}
/* hover stop */
.gallery:hover .gallery-track{
  animation-play-state:paused;
}

@keyframes scroll{
  0%{
    transform:translateX(0);
  }
  100%{
    transform:translateX(-50%);
  }
}

/* HOVER */
.img-wrap:hover{
  transform: translate(var(--shakeX), var(--shakeY)) scale(var(--scale));
  z-index:10;
}

/* AKTIVNÍ (highlight z JS) */
.img-wrap.highlight{
  transform: translate(var(--shakeX), var(--shakeY));
  z-index:20;
}

/* ABOUT */
.about{
  padding:80px 20px;
  text-align:center;
  max-width:800px;
  margin:auto;
}

.about h2{
  margin-bottom:20px;
  font-size:32px;
}

/* SERVICES */
.services{
  padding:80px 20px;
  background: transparent;
  text-align:center;
}

.service-grid{
  display:flex;
  justify-content:center;
  gap:70px;
  margin-top:40px;
  flex-wrap:wrap;
}

.card{
  padding:10px;
  background:white;
  border-radius:8px;
  min-width:150px;
  transition:0.3s;
}
.card.btn-sketch{
  padding:12px 24px !important; /* 🔥 přebije .card */
  background: transparent;
  border-radius: 0;
}

.card.btn-sketch{
  cursor:pointer;
  font-size:22px;
}

.card:hover{
  transform:translateY(-5px);
}

/* CONTACT */
.contact{
  padding:80px 20px;
  text-align:center;
}

form{
  display:flex;
  flex-direction:column;
  max-width:400px;
  margin:40px auto 0;
}

input, textarea{
  padding:12px;
  margin-bottom:12px;
  border:none;
  font-family:inherit;
}

button{
  padding:12px;
  border:none;
  background:black;
  color:white;
  cursor:pointer;
  transition:0.3s;
}

button:not(.btn-sketch):hover{
  background:#333;
}

/* RESPONSIVE */
@media(max-width:768px){

  .hero h1{
    font-size:38px;
  }

.img-wrap{
  position: relative;
  z-index:1;
}

.img-wrap::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:6px;
  pointer-events:none;
  transition:transform 0.4s ease;
}

.img-wrap:hover{
  z-index:10;
}

.img-wrap:hover .img-inner{
  transform: scale(1.08);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.img-wrap.highlight{
  z-index: 20;
}

.img-wrap.highlight .img-inner{
  transform: none;
  filter: brightness(1.05) contrast(1.05);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}

main{
  position: relative;
  z-index:2;
  margin-top:0;          /* ❗ ZRUŠIT 100vh */
  background: transparent; /* ❗ ŽÁDNÝ GRADIENT */
}

/* ==== CUSTOM TLAČÍTKO ==== */

.btn-sketch{
  position:relative;
  display:inline-block;
  padding:14px 28px;
  background:transparent; /* 🔥 pryč černá */
   color: rgb(0,139,126);!important;            /* 🔥 text černý */
  font-weight:600;
  border:none;
  cursor:pointer;

  border-radius: 20px;

  transition: all 0.25s ease;
}

/* RUČNÍ OBRYS */
.btn-sketch::after{
  content:"";
  position:absolute;
  inset:-8px;

  border:3px solid #000;

  border-radius: 55% 45% 60% 40% / 40% 60% 45% 55%;

  pointer-events:none;

  transition: all 0.3s ease;
}

/* HOVER */
.btn-sketch:hover{
  transform: scale(1.05) rotate(-1deg);
}

.btn-sketch:hover::after{
  border-radius: 45% 55% 40% 60% / 60% 40% 55% 45%;
  transform: scale(1.05);
}

}
/* ==== CUSTOM TLAČÍTKO - MIMO MÉDIA  ==== */
.btn-sketch{
  position:relative;
  display:inline-block;
  padding:14px 28px;
  background:transparent; /* 🔥 pryč černá */
  color:#000;              /* 🔥 text černý */
  font-weight:600;
  border:none;
  cursor:pointer;

  border-radius: 20px;

  transition: all 0.25s ease;
}

.btn-sketch::after{
  content:"";
  position:absolute;
  inset:-8px;

  border:3px solid #000;

  border-radius: 55% 45% 60% 40% / 40% 60% 45% 55%;

  pointer-events:none;

  transition: all 0.3s ease;
}

.btn-sketch:hover{
  background: transparent !important; /* 🔥 zruší černý hover */
  transform: scale(1.05) rotate(-1deg);
}

.btn-sketch:hover::after{
  border-radius: 45% 55% 40% 60% / 60% 40% 55% 45%;
  transform: scale(1.05);
}


/* ==== SKETCH INPUT ==== */

.input-sketch{
  position:relative;
  margin-bottom:20px;

  width:100%;
  max-width:500px;   /* 🔥 tady řídíš velikost */
  margin-left:auto;
  margin-right:auto;
}

.input-sketch input,
.input-sketch textarea{
  width:100%;        /* 🔥 musí být 100% */
  padding:14px 50px;
  border:none;
  background:transparent;
  outline:none;
  font-family:inherit;
  font-size:16px;
}

/* ruční obrys */
.input-sketch::after{
  content:"";
  position:absolute;
  inset:-4px;

  border:3px solid #000;

  border-radius: 55% 45% 60% 40% / 40% 60% 45% 55%;

  pointer-events:none;
}

.contact h2{
  margin-bottom:40px; /* 🔥 zvětši mezeru */
}

/* ==== KONTEJNER PRO MONITORY  ==== */

.container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}

/* ==== ŠIPKA TLAČÍTKO DOLŮ  ==== */
.arrow-btn{
  font-size:48px;
  line-height:1;
  padding:12px 18px;
}

/* jemná animace dolů */
.arrow-btn{
  animation: arrowMove 1.6s ease-in-out infinite;
}

@keyframes arrowMove{
  0%   { transform: translateY(0); }
  50%  { transform: translateY(6px); }
  100% { transform: translateY(0); }
}
/* ==== SLUŽBY - doplnující text   ==== */
.services-text{
  max-width:900px;
  margin:10px auto;
  font-size:18px;
  line-height:1.9;
  color:#333;

  font-weight:600; /* 👈 TADY */
}

/* DESKTOP - odskok textu pc */
.services-text,
.clients-text,
.contact-info{
  line-height:1.9;
}

/* ==== O mně - doplnující text   ==== */

.about-text{
  max-width:900px;
  margin:0 auto 35px;
  line-height:1.8;
  color:#444;
  font-size:18px;

  font-weight:600; /* 👈 TADY */
}

.about-lead{
  font-size:22px;
  font-weight:900;
  margin:20px auto 15px;
  max-width:600px;
}

.about-text{
  max-width:900px;
  margin:10px auto;
  line-height:1.7;
  color:#444;
  font-size:15px;
}

/* ==== KONTAKT - doplnující text   ==== */
.contact-info{
  font-size:18px;
  margin:20px auto 40px;
  max-width:900px;
  text-align:center;
  line-height:1.7;
  color:#333;

  font-weight:600; /* 👈 TADY */

}
.contact-info p{
  margin:5px 0;
}

/* ==== SJEDNOCENÍ STYLU - služby, o mně, kontakt   ==== */

.services h2,
.about h2,
.contact h2,
.clients h2,
.portfolio-title{
  font-family:"Akbar", sans-serif;
  font-weight:700;
  letter-spacing:2px;
  font-size:32px;
  transform: rotate(-1deg);
}

/* ==== LINKY SEKCE  - služby, o mně, kontakt   ==== */

.sketch-line{
  width:520px;
  height:6px;              /* 👈 větší prostor pro deformaci */
  margin:80px auto;
  position:relative;
}

.sketch-line::before,
.sketch-line::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:2px;
  background:#000;
  border-radius:100px;
}

/* první linka */
.sketch-line::before{
  top:1px;
  transform: rotate(-1deg) scaleX(1.02);
}

/* druhá linka (lehce posunutá) */
.sketch-line::after{
  top:3px;
  transform: rotate(0.8deg) scaleX(0.98);
}

/* ==== KŘÍŽEK - sekce glas apnel film  ==== */
.close-portfolio{
  position:absolute;
  top:20px;
  right:40px;

  z-index:3;

  font-size:18px;
  padding:8px 14px;
}

.close-portfolio{
  transform: rotate(-2deg);
}

.close-portfolio:hover{
  transform: rotate(2deg) scale(1.1);
}

/* ==== NADPIS SEKCE RAFIKA TEXT - sekce glas apnel film  ==== */
.design-title{
  font-size:22px;
  padding:18px 40px;
}


/* ==== TEXT - sekce glas apnel film  ==== */
.portfolio-text{
  text-align:center;
  max-width:600px;
  margin:0 auto 30px;
margin-bottom:80px; 
  font-size:18px;
  line-height:1.6;
  color:#333;

  font-weight:600;

  position:relative;
  z-index:3; /* aby to bylo nad tím glass panelem */
}
.portfolio-text{
  transform: rotate(-0.5deg);
}
.design-title{
  position: relative;
  z-index: 3;   /* 🔥 KLÍČ */
}
.portfolio-title{
  text-align:center;
  margin:20px auto 10px;

  font-family:"Akbar", sans-serif;
  font-weight:700;
  font-size:32px;
  letter-spacing:2px;

  transform: rotate(-1deg);

  position:relative;
  z-index:3;
  top:-30px;

}

/* ==== KLIENTI - panel logo fotek ==== */

.clients{
  padding:80px 20px;
  text-align:center;
}

.clients h2{
  margin-bottom:20px;
}

.clients-text{
  max-width:600px;
  margin:0 auto 40px;
  font-size:18px;
  color:#444;
  font-weight:600;
}

.clients-logos{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:40px;

  justify-items:center;
  align-items:center;

  max-width:800px;
  margin:0 auto;
}

@media(max-width:768px){
  .clients-logos{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* LOGA */
.clients-logos img{
  height:60px;
  opacity:0.6;
  filter:grayscale(100%);

  transition:all 0.4s ease;

  animation: logoPulse 12s infinite;
}

/* 🔥 ANIMACE */
@keyframes logoPulse{

  0%{
    transform: scale(1);
    filter: grayscale(100%);
    opacity:0.6;
  }

  10%{
    transform: scale(1.15) translateY(-6px);
    filter: grayscale(0%);
    opacity:1;
  }

  30%{
    transform: scale(1.15) translateY(-6px);
    filter: grayscale(0%);
    opacity:1;
  }

  40%{
    transform: scale(1);
    filter: grayscale(100%);
    opacity:0.6;
  }

  100%{
    transform: scale(1);
    filter: grayscale(100%);
    opacity:0.6;
  }
}

/* 🔥 POSTUPNÉ ZPOŽDĚNÍ */
.clients-logos img:nth-child(1){ animation-delay:0s; }
.clients-logos img:nth-child(2){ animation-delay:1s; }
.clients-logos img:nth-child(3){ animation-delay:2s; }
.clients-logos img:nth-child(4){ animation-delay:3s; }
.clients-logos img:nth-child(5){ animation-delay:4s; }
.clients-logos img:nth-child(6){ animation-delay:5s; }
.clients-logos img:nth-child(7){ animation-delay:6s; }
.clients-logos img:nth-child(8){ animation-delay:7s; }

/* hover efekt (má prioritu nad animací) */
.clients-logos img:hover{
  animation-play-state: paused;

  opacity:1;
  filter:grayscale(0%);
  transform:scale(1.15) translateY(-6px);
}


/* ==== ZELENÁ BARVA NADPISŮ ==== */

h2,
.about-lead,
.hero-text{
  color: rgb(0,139,126);
}

/* tlačítka (Grafika, Kresba, Design) */
.card.btn-sketch{
  color: rgb(0,139,126);
}

.card.btn-sketch:hover{
  background: transparent;
  color: rgb(0,139,126);
}
/* ===== FIX: všechny portfolio panely stejně jako grafika ===== */
.portfolio{
  position: fixed !important;
  inset: 0 !important;

  display: flex !important;

  justify-content: center !important;
  align-items: center !important;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.4s ease;

  z-index: 1000 !important;
}

.portfolio.is-hidden{
  display: none !important;
}

.portfolio.is-visible{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.portfolio-box{
  transform: translateY(80px) scale(0.96);
  opacity: 0;

  transition:
    transform 0.7s cubic-bezier(0.16,1,0.3,1),
    opacity 0.5s ease;
}

.portfolio.is-visible .portfolio-box{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.portfolio-box::before{
  content:"";
  position:absolute;
  left:-12%;
  right:-12%;
  top:50%;
  height:1100px;
  pointer-events:none;
  z-index:0;

  /* 👇 TADY JE TEN KLÍČ */
  background: rgba(255,255,255,0.75);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* tvoje linky */
  background-image:
    linear-gradient(#000,#000),
    linear-gradient(rgba(0,0,0,0.95),rgba(0,0,0,0.95)),
    linear-gradient(rgba(0,0,0,0.75),rgba(0,0,0,0.75)),
    linear-gradient(rgba(0,0,0,0.45),rgba(0,0,0,0.45)),

    linear-gradient(#000,#000),
    linear-gradient(rgba(0,0,0,0.95),rgba(0,0,0,0.95)),
    linear-gradient(rgba(0,0,0,0.75),rgba(0,0,0,0.75)),
    linear-gradient(rgba(0,0,0,0.45),rgba(0,0,0,0.45));

  background-size:
    120% 2px,120% 2px,120% 3px,120% 2px,
    120% 2px,120% 2px,120% 3px,120% 2px;

  background-position:
    -10% calc(50% - 461px),
    -10% calc(50% - 458px),
    -10% calc(50% - 455px),
    -10% calc(50% - 452px),

    -10% calc(50% + 452px),
    -10% calc(50% + 455px),
    -10% calc(50% + 458px),
    -10% calc(50% + 461px);

  background-repeat:no-repeat;

  filter: blur(0.2px);
  transform: translateY(-50%);
}
.portfolio-box::after{
  content:"";
  position:absolute;
  left:-12%;
  right:-12%;
  top:50%;
  height:1100px;
  pointer-events:none;
  z-index:2;

  background:

    /* 🔥 horní chaos */
    linear-gradient(#000,#000),
    linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),
    linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0.4)),
    linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0.2)),

    /* 🔥 horní kratší */
    linear-gradient(#000,#000),
    linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.6)),
    linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.3)),

    /* 🔥 spodní – HLAVNÍ LINKY */
    linear-gradient(#000,#000),                 /* 👈 HLAVNÍ OKRAJ */
    linear-gradient(rgba(0,0,0,0.8),rgba(0,0,0,0.8)), /* 👈 DRUHÁ PARALELNÍ */

    /* 🔥 spodní doplňkové */
    linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)),
    linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.3)),

    /* 🔥 spodní kratší */
    linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.6)),
    linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.3)),

    /* 🔥 PŘEŠKRTÁNÍ */
    linear-gradient(6deg,#000,#000),
    linear-gradient(-6deg,rgba(0,0,0,0.6),rgba(0,0,0,0.6)),
    linear-gradient(8deg,rgba(0,0,0,0.4),rgba(0,0,0,0.4));

  background-size:

    /* horní */
    120% 2px,
    100% 4px,
    80% 6px,
    60% 8px,

    /* horní kratší */
    40% 3px,
    30% 5px,
    20% 2px,

    /* spodní hlavní */
    120% 2px,
    110% 2px,

    /* spodní doplňkové */
    100% 4px,
    90% 6px,

    /* spodní kratší */
    45% 3px,
    35% 5px,

    /* přeškrtání */
    130% 2px,
    110% 3px,
    90% 4px;

  background-position:

    /* horní */
    -10% calc(50% - 480px),
    0%   calc(50% - 465px),
    10%  calc(50% - 445px),
    20%  calc(50% - 420px),

    /* horní kratší */
    30% calc(50% - 460px),
    50% calc(50% - 440px),
    70% calc(50% - 455px),

    /* spodní hlavní */
    -10% calc(50% + 430px),   /* 👈 HLAVNÍ OKRAJ */
    -6%  calc(50% + 445px),   /* 👈 PARALELNÍ */

    /* spodní doplňkové */
    0%   calc(50% + 470px),
    10%  calc(50% + 495px),

    /* spodní kratší */
    30% calc(50% + 455px),
    50% calc(50% + 480px),

    /* přeškrtání */
    -15% calc(50% + 460px),
    5%   calc(50% + 490px),
    20%  calc(50% + 515px);

  background-repeat:no-repeat;

  filter: blur(0.2px);

  transform:
    translateY(-50%)
    rotate(-1.5deg)
    skewX(-2deg);
}

.portfolio-title,
.portfolio-text,
.gallery,
.close-portfolio{
  position: relative;
  z-index: 2;
}

.gallery{
  width: 100% !important;
  padding: 80px 0 !important;
}

.gallery-track{
  display: flex !important;
  gap: clamp(10px, 1.5vw, 30px) !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  position: relative !important;
  z-index: 3 !important;
}

.close-portfolio{
  position: fixed !important;

  top: 10px !important;
  right: 30px !important;

  z-index: 99999 !important;

  transform: none !important;
}

/* ===============================
   📱 MOBILE – FINAL FIX (RUCE + KŘÍŽEK)
================================ */
@media (max-width:768px){

  html, body{
    overflow-x:hidden;
    max-width:100%;
    overscroll-behavior-x:none;
  }

  /* ===============================
     HERO
  ============================== */
  .hero{
    position:relative;
    align-items:center !important;
    padding-top:40px !important;
    min-height:auto;
    overflow:visible;
  }

  .hero-content{
    margin-top:0 !important;
    position:relative;
    z-index:2;
    isolation:isolate;   /* 🔥 důležité */
  }
    
.hero-content::before{
  content:"";
  position:absolute;

  left:50%;
  top:50%;
  transform:translate(-50%,-50%);

  width:120%;
  height:120%;

    background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.7),
    rgba(240,250,255,0.4),
    rgba(220,240,255,0.15),
    transparent
  );

  filter: blur(40px);


  z-index:-1;   /* 🔥 opravdu za text */
  pointer-events:none;
}


/* ===============================
   🔥 RUCE – MOBILE FINAL PRO LOOK
============================== */

.hand{
  height:70% !important;
  top:auto !important;
  bottom:-5px !important;

  transform: scale(0.5);
  transform-origin: bottom center;

  opacity:0.6;

  z-index:0;
}

/* LEVÁ */
.hand.left{
  left:-47px !important;
  transform: scale(0.5) translateX(20px);
}

/* PRAVÁ */
.hand.right{
  right:-47px !important;
  transform: scale(0.5) translateX(-20px);
}

  /* ===============================
     🔥 LOGO + TEXT
  ============================== */
  .hero-logo img{
    width:280px !important;
    max-width:90vw;
    position:relative;
    z-index:2;
  }

  .hero-title-img img{
    width:260px !important;
    margin-top:20px !important;
    position:relative;
    z-index:2;
  }

  .hero p{
    margin-top:20px !important;
    font-size:16px;
    position:relative;
    z-index:2;
  }

  /* 🔥 TEXT MLHA POD TEXTEM */
.hero p,
.hero h1,
.hero h2{
  color:#111;

  text-shadow:
    0 0 8px rgba(255,255,255,0.95),
    0 0 18px rgba(255,255,255,0.90),
    0 0 32px rgba(255,255,255,0.80),
    0 8px 24px rgba(255,255,255,0.65);
}

  /* ===============================
     🔥 PORTFOLIO PANEL
  ============================== */
  .portfolio{
    position: fixed;
    left:0;
    right:0;
    bottom:0;

    height:90vh;

    display:flex;
    justify-content:center;
    align-items:flex-end;

    background:rgba(0,0,0,0.25);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);

    z-index:1000;

    overflow:hidden;

    transform: translateY(100%);
    transition: transform 0.20s cubic-bezier(0.22,1,0.36,1);
  }

  .portfolio.is-visible{
    transform: translateY(0);
  }

  .portfolio-box{
    width:100%;
    height:100%;

    border-radius:20px 20px 0 0;
    background:rgba(255,255,255,0.96);

    overflow-y:auto;
    overflow-x:hidden;

    padding:20px 0 40px;

    display:flex;
    flex-direction:column;
    align-items:center;

    -webkit-overflow-scrolling:touch;
  }

  .portfolio-box::before{
    display:none;
  }

/* ===============================
   🔥 KŘÍŽEK – FIX (BEZ KOLEČKA)
============================== */
.close-portfolio{
  position: fixed !important;
  top:15px !important;
  right:15px !important;

  z-index:99999 !important;

  width:46px;
  height:46px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:transparent;

  border:none;
  border-radius:0;

  box-shadow:none;
}

  /* ===============================
     GALLERY
  ============================== */
  .gallery{
    padding:40px 0;
    width:100%;
    overflow:hidden;
  }

  .gallery-track{
    width:max-content;
  }

  .img-wrap{
    width:220px;
    height:150px;
    flex:0 0 auto;
  }

  /* ===============================
     BUTTONS
  ============================== */
  .btn-sketch{
    width: fit-content;     /* 🔥 tlačítko se zmenší podle textu */
    max-width: 80%;         /* 🔥 aby nebylo přes celý displej */
    margin: 10px auto;      /* 🔥 vystředění */
    display: block;
    text-align: center;
  }

.btn-sketch::after{
  position: absolute;

  inset:-6px !important;
  border:2px solid #000;

  box-shadow:
    0 0 10px rgba(255,255,255,0.3),
    0 0 20px rgba(255,255,255,0.25);
}

  /* ===============================
     MOBILNÍ TLAČÍTKO - ŠIPKA 
  ============================== */
.arrow-btn{
  font-size:32px;      /* 🔥 menší šipka */
  padding:10px 14px;   /* 🔥 menší klikací plocha */

  display:block;
  margin:20px auto;    /* 🔥 vystředění */

  width:fit-content;
}

  /* ===============================
     SERVICES
  ============================== */
  .service-grid{
    flex-direction:column;
    gap:20px;
  }

  /* ===============================
     CLIENTS
  ============================== */
  .clients-logos{
    gap:20px;
  }

  .clients-logos img{
    height:40px;
  }

  /* ===============================
     TEXTY
  ============================== */
  h2{
    font-size:24px;
  }

  .services-text,
  .clients-text{
    font-size:14px;
  }

  /* ===============================
     KONTAKT
  ============================== */
  .contact{
    padding:40px 20px;
  }

}

/* ===============================
   🔥 LINKY – MOBIL FIX
============================== */
@media (max-width:768px){

  .sketch-line{
    width:120px !important;
    margin:40px auto;
  }

  .sketch-line::before,
  .sketch-line::after{
    height:2px;

    box-shadow:
      0 0 8px rgba(255,255,255,0.20),
      0 0 16px rgba(255,255,255,0.18);
  }
}

/* MOBIL odskok od sebe textu */
@media (max-width:768px){

  .services-text,
  .clients-text,
  .contact-info{
    font-size:14px;
    line-height:1.8;
  }
}

/* ===============================
   📱 MOBILE – VERTIKÁLNÍ GALERIE (FIX)
============================== */
@media (max-width:768px){

  .gallery{
    height:420px;
    overflow:hidden;
    position:relative;
    padding:40px 0;
    background:#fff;                 /* 🔥 čistě bílé pozadí */

    display:flex;
    justify-content:center;          /* 🔥 horizontální střed */
    align-items:center;              /* 🔥 vertikální střed */
  }

  .gallery-track{
    display:flex !important;
    flex-direction:column !important;
    align-items:center;
    gap:20px;

    animation: scrollVertical 20s linear infinite !important;
  }

  .img-wrap{
    width:220px;
    height:150px;
    flex:0 0 auto;
  }

  /* vypnutí desktop efektů */
  .img-wrap,
  .img-wrap:hover,
  .img-wrap.highlight{
    transform:none !important;
  }

}

/* ===============================
   🔥 NEKONEČNÁ ANIMACE (BEZ MEZERY)
============================== */
@keyframes scrollVertical{
  0%{
    transform: translateY(0);
  }
  100%{
    transform: translateY(-50%);
  }
}

/* ===============================
   🔒 OCHRANA OBRÁZKŮ
============================== */

.img-wrap{
  position: relative;
}

/* neviditelná vrstva */
.img-wrap::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:5;
  background:transparent;
}

/* obrázek pod tím */
.img-wrap img{
  position:relative;
  z-index:1;

  user-select:none;
  -webkit-user-drag:none;
  pointer-events:none;
}

/* ===============================
   💣 FIX KLIKU – GRAFIKA / KRESBA / DESIGN
============================== */

.card.btn-sketch,
.card.btn-sketch *{
  font-family: "Akbar", sans-serif !important;
  font-style: normal !important;
  font-weight: 800 !important;
  text-decoration: none !important;

  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;

  cursor: pointer;
}

.card.btn-sketch{
  appearance: none;
  -webkit-appearance: none;

  outline: none !important;
  box-shadow: none !important;

  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  transform: translateZ(0);
}

.card.btn-sketch:focus,
.card.btn-sketch:active,
.card.btn-sketch:focus-visible,
.card.btn-sketch:hover{
  font-family: "Akbar", sans-serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  text-decoration: none !important;

  outline: none !important;
  box-shadow: none !important;
}

/* ===============================
   PŘIZPUSOBENÍ MONITORU KOD
============================== */
.img-wrap{
  width: clamp(320px, 28vw, 660px);
  height: clamp(280px, 24vw, 360px);

  overflow: visible;

  display:flex;
  align-items:center;
  justify-content:center;

  z-index:1;

  --shakeX: 0px;
  --shakeY: 0px;
  --scale: 1;

  transform-origin:center center;
  transform: translate(var(--shakeX), var(--shakeY)) scale(var(--scale));

  will-change: transform;
  transition: transform 0.18s cubic-bezier(0.22,1,0.36,1);
}

/* ===============================
   POSKAKUJÍCÍ TLAČÍTKA O SLOVO
============================== */

@keyframes sketchJump {
  0%   { transform: translate(0,0) rotate(0deg); }
  20%  { transform: translate(-2px,-3px) rotate(-1deg); }
  40%  { transform: translate(3px,2px) rotate(1deg); }
  60%  { transform: translate(-2px,2px) rotate(-0.5deg); }
  80%  { transform: translate(2px,-1px) rotate(0.5deg); }
  100% { transform: translate(0,0) rotate(0deg); }
}

.card.btn-sketch::after{
  animation: sketchJump 0.4s ease;
  animation-delay: var(--delay, 0s);
  animation-iteration-count: infinite;

  animation-play-state: var(--play, paused); /* 🔥 KLÍČ */
}




@media (max-width:768px){

  .hero-content::before,
  .portfolio-box::before{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
  }

  .hero-content::before{
    background: radial-gradient(
      circle,
      rgba(255,255,255,0.5),
      rgba(255,255,255,0.2),
      transparent
    ) !important;

    opacity:0.5;
  }

  .portfolio-box::before{
    background: rgba(255,255,255,0.92) !important;
  }

  body{
    background-attachment: scroll !important;
  }

}

/* iPhone optimalizace */
@supports (-webkit-touch-callout: none) {

  .portfolio-box,
  .hero-content{
    transform: translateZ(0);
    will-change: transform;
  }

}

/* GPU pro animace */
.img-wrap{
  transform: translateZ(0);
  will-change: transform;
}

/* jemnější UX */
*{
  -webkit-tap-highlight-color: transparent;
}

body{
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

