:root {
  --color: hsl(271, 76%, 53%);
  --hover: #7626c1;
  --offwhite: hsl(0, 0%, 96%);
  --white: #fff;
  --offblack: hsl(240, 12%, 7%);
  --gray: #a9a9a9;
  --darkgray: #575757;
}

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


html, body {
  overflow-x: hidden;
  height: 100%;
  margin: 0;
}


body {
  font-family: "DM Sans", sans-serif;
    background-color: var(--offblack);
    color: var(--offwhite);
    display: flex;
    flex-direction: column;
}

/*mezery mezi sekcemi v celem dokumentu*/
main {
  flex: 1;
   display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding-top: 20px;

 
}

/*horizontalni mezery uvnitr sekci mezi detmi*/
section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}


/*typografie*/
h1 {
  font-size: clamp(36px, 7vw, 100px);
}

h2 {
  font-size: clamp(24px, 4vw, 36px);
}

h3,
.hero__perex {
  font-size: clamp(18px, 3vw, 22px);
}

p {
  font-size: clamp(14px, 1.5vw, 16px);
}

/*HOMEPAGE*/

.hero-bg {
  background-image:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 70%),
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 70%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 70%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 70%),
    url("bg2.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100vw;
  min-height: 100vh;
  position: relative;
}


.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;

}

.logo {
  font-size: 2.5em;
  text-decoration: none;
  font-weight: 400;
  color: var(--white);
font-family: "Poiret One", sans-serif;}

.topnav {
  display: flex;
  gap: 40px;
}
.topnav a,
.icon {
  text-decoration: none;
  font-weight: 600;
  color: var(--color);
  border-bottom: 2px solid transparent; /* "rezervuje" místo pro čáru */
  padding-bottom: 4px; /* určí vzdálenost čáry od textu */
  transition: color 0.3s ease, border-color 0.3s ease;
}
.topnav a:hover,
.topnav a:active,
.icon {
  color: var(--hover);
  border-bottom: 2px solid var(--hover); /* aktivní odkaz */

}

.topnav a.active { 
color: var(--white);
    border-bottom: 2px solid var(--white); /* aktivní odkaz */

}

.icon {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.hero {
  display: flex;
  flex-direction: column;
  padding: 6.5em;
  gap: 2em;
  
}

.hero h1 {
  color: var(--white);
  font-size: 100px;
    text-shadow: 5px 3px 5px var(--offblack);
    font-size: clamp(50px, 8vw, 90px);


}  

@media (max-width: 600px) {
  .hero {
    text-align: center;
  }
}

.buttons_wrapper {
  display: flex;
  flex-direction: row;
  gap: 35px;
 
}

/*↓ primary button ↓*/

.btn {
  padding: 15px;
  background-color: var(--color);
  color: var(--white);
  font-weight: 600;             
  text-decoration: none;      
  transition: background 0.3s, color 0.3s ease;
  width: 200px;
  text-align: center;
  font-size: 14px;
    border-radius: 5px;
}


.btn a {
  text-decoration: none;
}

.btn:hover {
  border: none;
  color: var(--offwhite);
  background-color: var(--hover);
}

/*↑ primary button ↑*/

/*↓ secondary button ↓*/

.secondary_btn {
  padding: 15px;
  color: var(--offwhite);
  font-weight: 600;             
  text-decoration: none;      
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  width: 200px;
  text-align: center;
  font-size: 14px;
  border: 2px solid var(--offwhite);
    border-radius: 5px;
}


.secondary_btn a {
  text-decoration: none;
}

.secondary_btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/*↑ secondary button ↑*/

.co-delam__wrapper {
  display: flex;
  gap: 2.5em;
  

}

@media (max-width: 600px) {
  .co-delam__wrapper {
    flex-direction: column;
  }
}

.co-delam__item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--darkgray);
  border-radius: 20px;
  padding: 30px 20px;
  flex: 1;
  text-align: center;
  gap: 10px;
  transition: transform 0.3s ease, border-color 0.3s ease;

}

.co-delam__item:hover {
  transform: scale(1.02);
  border-color: var(--color);
  cursor: default;
}

.reference__loga {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  filter: brightness(0) invert(1);
  
}

@media (max-width: 600px) {
  .reference__loga {
    flex-direction: column;
  }
}

.logo-row {
  display: flex;
  gap: 50px;
}


.reference__loga img {
  height: 50px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;

}

.reference__loga img:hover {
  opacity: 1;
}


.footer-inner { /*spravne*/
  background-color: var(--offblack);
  color: var(--gray);
  height: 80px;
  display: flex;
   justify-content: space-between;
   align-items: flex-end;
    margin: 10px 0px;

}

.footer-inner p {
  font-size: 0.8em;
}


.footer-inner a {
  text-decoration: none;
  color: #a5a5a5;
}


.credits a {
  font-weight: bold;
  border-radius: 2px;
}

/*PORTFOLIO*/

/*Rozcestnik*/

.portfolio-rozcestnik {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  }

.portfolio-rozcestnik__karta {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
   display: block;
  text-decoration: none;
  transition: transform 0.3s ease;
    height: 70vh;

}

.portfolio-rozcestnik__karta:hover {
  transform: scale(1.02);
}

.portfolio-rozcestnik__karta h2 {
  color: var(--white);
font-size: clamp(28px, 3vw, 36px);

}

.portfolio-rozcestnik__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-rozcestnik__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 60%);
}

.portfolio-rozcestnik__content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}


@media (max-width: 640px) {
  .portfolio-rozcestnik {
    grid-template-columns: 1fr;
    height: auto;
  }

  .portfolio-rozcestnik__karta {
    height: 50vh;
  }
}

/* Photo gallery (2 columns) */
.gallery {
  display: flex;
  gap: 30px;
  background-color: #fff;
  padding: 30px;
  margin-top: 40px;
}

.gallery .column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.gallery img {
  width: 100%;
   opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;

}

.gallery img.visible {
  opacity: 1;
  transform: translateY(0);
}

   
  /*Video LP*/
  .lp-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .video {
    position:relative;
    overflow: hidden;
    border-radius: 20px;
    width: 100%;

  }

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

  .horizontal {
        width: 100%;
        aspect-ratio: 16 / 9;
        max-width: 1000px;
        margin-top: 0;
  }

    .vertical {
    aspect-ratio: 9 / 16;
  }

  .video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}

.video-play img {
  width: 96px;
  height: 96px;
  opacity: 0.8;
}

.video-credit {
    font-size: 13px;
    font-style: italic;
    color: var(--gray);
    text-align: center;
    margin-top: 8px;
}


  .flag {
    background-color: hsla(271, 76%, 53%, 0.25);
    width: 150px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    color: var(--color);
    padding: 5px 10px;
    font-weight: 600;
    white-space: nowrap;
  }

  .flag p {
    font-size: 0.9em;
  }

  .project-description {
    max-width: 50%;
    text-align: center;
  }

 .claims  {
  display: flex;
  flex-direction: column;
  gap: 50px;
 }

 .claims-row {
  display: flex;
  gap: 50px;
 }

  .claim-box {
    width: 415px;
    height: 250px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--darkgray);
    border-radius: 20px;
    padding: 20px;
    gap: 15px;
      transition: transform 0.3s ease, border-color 0.3s ease;

  }

  .claim-box:hover {
  transform: scale(1.02);
  border-color: var(--color);
  cursor: default;
}

  .claim-box img {
    width: 30px;
    height: 30px;
  }



   .icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: hsla(271, 76%, 53%, 0.25);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .reels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Landing page responsive */
@media (max-width: 1024px) {
  .reels {
    grid-template-columns: repeat(2, 1fr);
  }

 

  .lp-hero {
    padding: 20px;
  }

  .claim-box {
    width: 100%;
  }

  .claims-row {
    flex-direction: column;
    gap: 30px;
  }

  .project-description {
    max-width: 80%;
  }
}

@media (max-width: 768px) {

  main {
    padding-top: 3em;
    gap:30px;
  }
  

  .horizontal {
    max-width: 100%;
    margin-top: 20px;
  }

  .project-description {
    max-width: 100%;
  }

  .flag {
    width: 140px;
    height: 38px;
    font-size: 13px;
  }

  .claim-box {
    width: 100%;
    height: auto;
    padding: 15px;
  }

  .contact-info {
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 15px;
  }

 }

@media (max-width: 600px) {
  .reels {
    grid-template-columns: 1fr;
  }

 

  .lp-hero {
    padding: 10px;
    gap: 15px;
    text-align: center;
  }

  .horizontal {
    aspect-ratio: 16 / 9;
    max-width: 100%;
  }

  .flag {
    width: 130px;
    height: 36px;
    font-size: 12px;
  }

  .video-play img {
    width: 70px;
    height: 70px;
  }

  .claim-box {
    width: 100%;
    height: auto;
    padding: 12px;
    gap: 10px;
  }

  .claim-box h3 {
    font-size: 15px;
  }

  .icon-wrapper {
    width: 50px;
    height: 50px;
  }

  .claim-box img {
    width: 24px;
    height: 24px;
  }

  .contact-info {
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .contact-info__email {
    flex-direction: column;
  }

  .email {
    font-size: 16px;
  }

  .contact-info__email img {
    width: 36px;
  }

}


  .lp-hero {
    padding: 8px;
    margin-top: 40px;
  }

  .flag {
    width: 125px;
    height: 35px;
    font-size: 11px;
  }

  .video-play img {
    width: 60px;
    height: 60px;
  }

  .claim-box {
    padding: 10px;
  }

  .icon-wrapper {
    width: 45px;
    height: 45px;
  }







/*Kontakt*/
.about-me {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 60px;
  margin-bottom: 60px;

  
  

}

.about-me-text {
  display: flex;
  flex-direction: column;
gap: 40px;
justify-content: center;
padding: 30px;
flex: 1;
border: 1px solid var(--darkgray);
  border-radius: 20px;
    align-self: stretch;


}

.about-me-text-box {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-me-portrait {
  flex: 1;
}

.about-me-portrait img {
   width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}   

.heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border-radius: 20px;
}


.number {
  font-size: 20px;
  color: var(--color);
  font-weight: 800;
  opacity: 0.8;
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  border: 1px solid var(--darkgray);
  border-radius: 20px;
  padding: 10px;
  width: 100%;

}



.contact-info__email {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
} 

.email {
  font-size: 22px;
}

.email a {
  color: inherit;
}


.contact-info__email img {
	width: 42px;
}

 


.container {
  max-width: 1536px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
}

/*RESPONSIVE*/

/* 2xl */
@media (max-width: 1536px) {
  .container {
    max-width: 1440px;
  }
}

/* xl */
@media (max-width: 1280px) {
  .container {
    max-width: 1280px;
  }

}


/* lg */
@media (max-width: 1024px) {
  .container {
    width: 100%;
  }

  

  .about-me {
    flex-direction: column;
  }

  .about-me-text,
.about-me-portrait {
  flex: none;

}
}

/* md */
@media (max-width: 768px) {
  .container {
    width: 100%;
  }
    .hero {
    flex-direction: column;   /* text nahoře, obrázek pod ním */
    justify-content: center;
    padding: 4em;               /* bez paddingu, aby obraz šel od okraje k okraji */
  }


  .gallery-hp {
    flex-direction: column;
    padding: 10px;
  }

  .category {
    flex-direction: column;
gap: 10px;  

}

  .category_box {
  width: auto;
  height: auto;
  }

  .button_category {
    margin: 3em;
  }

  .topnav a.active { 
color: var(--color);
    border-bottom: none; /*rusi podtrzeni odkazu navigace v hamburger menu */

}

.topnav a:hover,
.topnav a:active,
.icon {
  border-bottom: none;

}

 .gallery {
    flex-direction: column;
    
  }

  .column2 {
  margin-top: 0px;
}

.filter-buttons {
  margin-bottom: 3em;
}

.play_icon {
  width: 80px;
}


}


/* sm */
@media (max-width: 640px) {
  .container {
    width: 100%;
  }

   .service {
    flex-direction: column;
  }



.buttons_wrapper {
  flex-direction: column;
  padding: 0 15px;
}

.btn,
.secondary_btn {
  width: 100%;
  
}

.hp-video {
  margin-bottom: 20px;
}


}

@media (max-width: 500px) {
  .container {
    width: 100%;
  }

.buttons {
  margin-top: 8em;
}

  
}


/* xs */
@media (max-width: 475px) {
  .container {
    width: 100%;
  }
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;        /* aby zabírala celou šířku obrazovky */
  z-index: 1000;
  background-color: black;

}

.hero {
  padding: 3em;
  margin-top: 8em;
}

.logo__header {
    pointer-events: auto;
    z-index: 2000;

}

  .portfolio-sample {
    margin-bottom: 20px;
  }

 

  ul {
  list-style-position: outside; /* výchozí – odrážka je vlevo */
  padding-left: 2em;          /* mírné odsazení */
}

ul li {
  text-indent: -1.2em;          /* posune text zpátky */
  padding-left: 1.5em;          /* zarovná všechny řádky pod sebe */
}
  

  .footer-inner {
    display: flex;
    flex-direction: column;
    font-size: 0.8em;
    gap: 10px;
    text-align: center;
    justify-content: center;
    align-items: center;

  }

.gallery {
  padding: 15px;
}

.gallery .column {
    gap: 15px;
}

iframe {
  overflow: hidden;
  width: 100vw;
}

.filter-btn {
  z-index: 2000;
  margin-top: 100px;
  position:static;
}

.about-me-text {
  margin-bottom: -50px;
}

.about-me {
  margin-top: 50px;
}


}


/*mobile menu responsive*/

@media (max-width: 768px) {
  .topnav {
    flex-direction: column;
    position: absolute;
    top: 0px;
    right: 0;
    background: #000; /* rovnou černé pozadí */
    width: 100%;
    max-height: 0;          /* schované menu */
    opacity: 0;             /* neviditelné */
    overflow: hidden;       /* schovat odkazy */
    gap: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: max-height 0.4s ease, opacity 0.4s ease;
    z-index: 2;
        padding-top: 60px;  /* aby odkazy nezačínaly hned pod okrajem, ale až pod ikonou */

  }

  .topnav.active {
    max-height: 500px;      /* nastav dostatečně velkou výšku */
    opacity: 1; 
    color: var(--color);            /* zobrazí se */
  }

  .topnav a {
    color: var(--color);
    padding: 20px;
    display: block;
    text-align: center;
  }

  .topnav a.active { 
color: var(--white);

}

.topnav a:hover,
.topnav a:active
{
  color: var(--white);

}

  .icon {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
  }

  .icon,
  .topnav,
  .logo__header,
  .buttons {
  -webkit-tap-highlight-color: transparent; /* odstraní tmavý flash na mobilu */
  user-select: none;                         /* zabrání výběru textu při tapnutí */
}
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}















