html {
  scroll-behavior: smooth;
  background-color: #050816;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
}

h1 {
  font-family: 'Great Vibes', cursive;
}

h2 {
  font-family: 'Bebas Neue', sans-serif;
  text-shadow: 7px 0px 10px #3c3fff;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: white;
  line-height: 1.6;
  background-image: url('obrazky/pozadiwebu2.webp');
  background-size: contain;
  background-color: #050816;
}

@media (max-width: 768px) {
  body {
    background-image: none;
  }
}

.container {
  width: min(60vw, 1800px);
  margin: 0 auto;
  background-color: #23282c;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 155px rgba(40, 48, 168, 0.74);
}

/* Hlavička */
#hero-header {
  background: linear-gradient(to bottom, #19258f85, #c82bf800);
  color: #131628;
  padding: 20px 0;
  transition: transform 0.3s ease;
  display: flex;
  position: sticky;
  top: 0;
  z-index: 999;
  justify-content: space-between;
}

.header-content {
  padding: 0 40px;
  display: flex;
  transition: all 0.6s ease;
}

#hero-header.hidden {
  transform: translateY(-100%);
}

/* Logo v hlavičce */
.logo-link {
  color: #ffffff;
  transition: all 0.3s ease;
  padding: 3px;
  display: inline-block;
}

.logo-link:hover {
  opacity: 0.7;
}

/* Navigace */
nav {
  display: flex;
  gap: 10px;
  overflow: hidden;
  padding: 5px 5px 50px;
  margin-top: 15vw;
}

nav a {
  position: relative;
  overflow: hidden;
  display: inline-block;
  flex: 1;
  text-align: center;
  padding: 20px 0;
  background: linear-gradient(
    to right,
    #4447fdd5,
    #318affa2,
    #3634dbb9
  );
  color: #fff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  font-family: 'Bebas Neue', sans-serif;
  border: none;
  border-radius: 20px;
  box-shadow: 0px 2px 12px #250344;
}

nav a::before {
  content: '';
  position: absolute;
  top: -120%;
  left: -80%;
  width: 180%;
  height: 500%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transform: translateX(-100%) rotate(20deg);
  transition: transform 0.5s ease;
  pointer-events: none;
}

nav a:hover::before {
  transform: translateX(100%) rotate(25deg);
}

@media (min-width: 768px) {
  nav:hover a {
    flex: 0.8;
  }

  nav a:hover {
    flex: 2;
    background: rgba(0, 224, 255, 0.1);
    color: #00e0ff;
    box-shadow: 0 0 0 #490652;
  }

  nav a {
    font-size: 2rem;
    padding: 3vw 0;
  }

  nav {
    padding: 20px 20px;
    gap: 50px;
  }
}

.section {
  padding: 40px 20px;
}

/* Barevná pozadí sekcí */
#omne {
  background: linear-gradient(to bottom, #1730b9, #0f0850);
}

#kresby {
  background: linear-gradient(to bottom, #0f0850, #05071a);
}

#videa {
  background: linear-gradient(to bottom, #05071a, #350833);
}

/* Úvodní sekce */
#uvitani {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-top: -110px;
  color: white;
}

.uvitani-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: -2;
}

.uvitani-bg.active {
  opacity: 1;
}

#uvitani::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #0f085000, #3a17b988);
  z-index: -1;
}

/* Nadpisy a odstavce v sekci */
.section h2 {
  margin: 20px;
  text-align: left;
  font-size: 5em;
}

.section p {
  margin: 10px;
  padding: 10px;
  font-size: 1.5em;
}

@media (max-width: 768px) {
  .section p {
    font-size: 1em;
  }

  .section h2 {
    font-size: 4em;
  }
}

.lazy {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease-out, transform .8s ease-out;
}

.lazy.show {
  opacity: 1;
  transform: translateY(0);
}

/* Karty */
.card {
  background: linear-gradient(to right, #4b074bc2, #0a034ea2);
  margin: 0 auto;
  border-radius: 15px;
  transition: transform 0.3s ease;
  max-width: 400px;
  flex: 1 1 300px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 0 20px #0f0000ab;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(56, 91, 245, 0.404) 0%,
    rgba(255, 255, 255, 0.045) 35%,
    rgba(255, 53, 97, 0.123) 60%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity .3s ease;
}

.card p {
  margin: 0 10px 6px;
  padding: 8px;
  font-size: 1.5em;
  position: relative;
  padding-right: 1.2em;
}

.card p::after {
  content: "»";
  position: absolute;
  right: 10px;
  top: 40%;
  transform: translateY(-50%);
  font-size: 2em;
}

@media (hover: hover) and (pointer: fine) {
.card:hover {
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 0 20px rgba(9, 206, 255, 0.842);
}
.card:hover::before {
  opacity: 0;
}
}

/* Galerie obrázků */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin: 20px;
  justify-items: center;
  padding: 0 20px;
}

.gallery img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.3s ease, object-fit 0.3s ease;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* Responzivní galerie */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 10px;
  }

  .card {
    max-width: 100%;
  }

  .gallery img {
    width: 300px;
    height: 300px;
  }

  .card p {
    font-size: 1em;
    padding: 6px;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .gallery img {
    height: 250px;
  }

  .card p {
    font-size: 0.8em;
  }
}

/* Fullscreen overlay */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
  z-index: 9999;
  opacity: 0;
  animation: fadeOverlay 0.3s ease-out forwards;
}

@keyframes fadeOverlay {
  to { opacity: 1; }
}

.fullscreen-overlay img,
.fullscreen-overlay video {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  transform: scale(0.8);
  animation: zoomImage 0.4s ease-out forwards;
}

@keyframes zoomImage {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fullscreen-overlay p {
  color: white;
  margin-top: 20px;
  font-size: 1.2rem;
  text-align: center;
}

.fullscreen-overlay::after {
  content: '✖';
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* Sekce videí */
.video {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  justify-items: center;
  padding: 0 20px;
}

.video .card {
  background: linear-gradient(to right, #4b074bc2, #0a034ea2);
  transition: transform 0.3s;
  width: 100%;
  max-width: 450px;
  position: relative;
  overflow: hidden;
  text-align: left;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  cursor: pointer;
  margin: 20px;
}

.video .card p {
  margin: 6px 10px;
  padding: 8px;
  font-size: 1.5em;
}

.video .card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 224, 255, 0.5);
}

.preview-video {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Responzivní videa */
@media (max-width: 768px) {
  .video {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 0 10px;
  }
  .video .card {
    max-width: 280px;
    margin: 10px;
  }
  .preview-video {
    max-height: 300px;
  }
  .video .card p {
    font-size: 0.9em;
    padding: 6px;
  }
}

@media (max-width: 480px) {
  .video {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .video .card {
    max-width: 90%;
    margin: 0 auto;
  }
  .video .card p {
    font-size: 0.8em;
  }
  .preview-video {
    max-height: 200px;
  }
}

/* Tlačítka */
.tlacitko {
  display: inline-block;
  padding: 12px 28px;
  margin: 20px;
  margin-top: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #23282c;
  background: linear-gradient(135deg, #00e0ff, #42ccfe);
  border: none;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 224, 255, 0.3);
}

.tlacitko:hover {
  transform: scale(1.05);  
  box-shadow: 0 0 15px rgba(0, 224, 255, 0.5);
}

#tlacitko-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  padding: 10px;
  margin-right: 40px;
  font-weight: bold;
  color: #ffffff;
  background: linear-gradient(to right, #4447fdd5, #318affa2, #3634dbb9);
  border: none;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(3, 5, 39, 0.3);
}

#tlacitko-header:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(108, 111, 255, 0.699);
}

#tlacitko-header img {
  width: 20px;
  height: 20px;
}

#tlacitko-uvitani {
  margin: 5vw auto 0 auto;
  font-size: 1.5rem;
  max-width: 500px;
  text-align: center;
  margin-bottom: 3vw;
}

@media (max-width: 600px) {
  .tlacitko {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }
  #tlacitko-uvitani {
    padding: 10px 8px;
    font-size: 1rem;
  }
}

footer {
  background: linear-gradient(135deg, #0b096e, #040333);
  padding: 30px 15px;
  text-align: center;
}
footer h2.footer-title {
  font-size: 2.2em;
  margin-bottom: 10px;
  text-shadow: none;
}
footer p {
  font-size: 1.3em;
  margin: 0;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 20px auto;
  width: 95%;
  max-width: 900px;
  overflow: hidden;
}
.social-box {
  flex: 1 1 70px;
  max-width: 80px;
  min-width: 50px;
  aspect-ratio: 1;
  perspective: 600px;
  text-decoration: none;
}
.social-box .box-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.social-box:hover .box-inner {
  transform: rotateY(180deg);
}
.social-box .front,
.social-box .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.social-box .front {
  background: linear-gradient(135deg, #1e1d5e, #090799);
}
.social-box .front img {
  max-width: 60%;
  max-height: 60%;
}
.social-box .back {
  color: #ffffff;
  transform: rotateY(180deg);
  font-size: 0.7rem;
}
@media (max-width: 600px) {
  footer {
    padding: 15px 10px;
  }
  footer h2.footer-title {
    font-size: 1.5em;
  }
  footer p {
    font-size: 1em;
  }
  .social-links {
    gap: 8px;
    max-width: 100%;
  }
  .social-box {
    width: 20vw;
    min-width: 40px;
    max-width: 60px;
  }
  .social-box .front img {
    max-width: 50%;
    max-height: 50%;
  }
  .social-box .back {
    font-size: 0.5rem;
  }
}

/* Kontaktovací sekce */
.kontakt-section {
  background: linear-gradient(to bottom, #350833, #23043d);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.kontakt-section h2 {
  text-align: center;
}

.kontakt-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 15px;
}

.kontakt-form label {
  text-align: left;
  font-size: 1.2rem;
}

.kontakt-form input,
.kontakt-form textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: #23282c;
  color: white;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
  outline: 2px solid #00e0ff;
}

.form-status {
  opacity: 0;
  transition: opacity 0.4s ease;
  margin-top: 10px;
  text-align: center;
}

.form-status.visible {
  opacity: 1;
}

/* Úvodní text (typewriter) */
#zacatek {
  font-size: 1.5em;
  margin-top: 10vh;
}

@media (max-width: 768px) {
  #zacatek {
    font-size: 1em;
  }
}

/* Efekt psacího stroje */
.typewriter {
  display: inline-block;
  padding-left: 3px;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  letter-spacing: .02em;
  animation: typing 3.5s steps(40, end) forwards;
}

.typewriter::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 10px;
  height: 100%;
  background-color: #fff;
  animation: blink-caret 0.75s step-end 5 3.5s,
             fade-out 0.5s ease forwards;
  animation-delay: 3.5s, 7.25s;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  0%,100% { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes fade-out {
  to { opacity: 0; }
}

@media (max-width: 1200px) {
  .typewriter {
    white-space: normal;
    overflow: visible;
    animation: none;
  }
  .typewriter::after {
    display: none;
  }
}







