@import url('https://fonts.googleapis.com/css2?family=Alan+Sans:wght@300..900&display=swap');

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Skryje samotný rámec s lištou */
.goog-te-banner-frame.skiptranslate, 
.goog-te-banner-frame {
    display: none !important;
}

/* Odstraní mezeru (margin), kterou si Google dělá pro lištu */
body {
    top: 0 !important;
}

/* Skryje případné tooltipy při najetí na přeložený text */
.goog-te-balloon-frame {
    display: none !important;
}
main {
  flex: 1;
}
/* GLOBAL */
html, body {
  height: 100%;
  font-family: "Alan Sans", Arial, sans-serif;
  background-color: #1e1e1e;
  color: #e0e0e0;
  scroll-behavior: smooth;

  display: flex;
  flex-direction: column;
}
.prepare{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8vh;
}
/* HEADINGS */
h1, h2, .padding, span, p, li {
  font-family: "Alan Sans", sans-serif;
  color: #fff; /* černé nadpisy */
}
.padding a{
  color:rgb(0, 179, 255)
}
h2 {
  font-size: 50px;
  margin-bottom: 10px;
}
    .container {
      display: flex;
      align-items: center;
      gap: 10vw;
      justify-content: center;
    }
    .text {
      max-width: 375px;
    }
    .text b {
      font-size: 1.2em;
    }
    .map{
      max-width: 35%;
      margin: 10vh 0vw 10vh 10vw;
      display: flex;
      flex-direction: column;
      text-align: center;
      .opacity{
        opacity: 0;
      }
    }
    .map img {
      max-width: 100%;
      height: auto;
      border: 2px solid rgb(244, 215, 1);
    }
/* HERO SECTION */
.hero {
  position: relative;
  background: url('fotky/image.png') center/cover no-repeat;
  height: 60vh;
  color: #fff;
  display: flex;
  flex-direction: column; /* Položky pod sebe */
  align-items: flex-start; /* Na desktopu vše vlevo */
  justify-content: flex-start; /* Na desktopu vše nahoře */
  text-align: left;
  overflow: hidden;
  padding: 5px 0 0 15px; /* Mezera od krajů na desktopu */
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,-0.1), #0c0c0c 90%);
  z-index: 1;
}
/* Zajištění, aby texty byly nad přechodem */
.nametag, .language-switcher, .create {
  position: relative;
  z-index: 2;
}

.nametag {
  display: flex;
  font-size: 80px;
  text-shadow: 0 0 20px rgba(247, 255, 16, 0.7);
  margin: 0; 
}
.underline{
  text-decoration: underline !important;
}
.lighted{
  color: rgb(244, 215, 1);
}
.create {
  position: absolute;
  bottom: 25px;
  right: 30px;
  font-size: 30px;
  color: #eee;
  text-shadow: 0 0 20px rgba(247, 255, 16, 0.7);
  z-index: 2;
}

/* LANGUAGE SWITCHER */
.language-switcher {
  position: absolute;
  top: 10px;
  right: 30px;
  display: flex;
  gap: 10px;
  z-index: 3;
}
.language-switcher div img {
  width: 42px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.language-switcher div img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(247, 255, 16, 0.7);
}

/* NAVIGATION */
.main-nav {
  background-color: #222;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 2px solid rgb(247, 255, 16);
  font-family: "Alan Sans", sans-serif;
}
.main-nav .nav-container {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px;
}
.text-content ul {
  display: flex;
  flex-direction: column; /* aby byly položky pod sebou */
  justify-content: center;
  align-items: center;
  list-style-type: none;
}
.text-content {
  max-width: 720px;
  margin: 0 auto;
  color: #e0e0e0;
  line-height: 1.7;
}

.download-links a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.2s ease;
  font-size: 1.4em;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 5px;
  gap: 10px;
}

.download-links a:hover {
  font-size: 25px;
  transition: 1.5s ease;
}

.download-links a img {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.download-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.text-content p {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}

h2, h3 {
  text-align: center;
  color: #fff;
}
.text-content li {
  margin-bottom: 8px;     /* mezera mezi řádky */
}
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.6rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.services-list li {
  padding-left: 1.35rem;
  position: relative;
  text-align: center;
}

.services-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #f5c400;
}
.cta {
  text-align: center;
  margin: 2.5rem 0;
}

.cta-button {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: #f5c400;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.cta-button:hover {
  background: #e0b200;
}
.main-nav ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  padding: 0;
}
.main-nav li {
  flex: 1 1 auto;
  text-align: center;
}
.main-nav li a {
  color: #eee;
  padding: 14px 12px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}
.main-nav li a:hover,
.main-nav li a:focus,
.main-nav li a.active {
  color: rgb(247, 255, 16);
  background-color: #333;
  font-weight: bold;
}

/* HAMBURGER */
.hamburger {
  display: none;
  font-size: 20px;
  cursor: pointer;
  color: rgb(247, 255, 16);
  padding: 10px 14px;
  background: transparent;
  border: none;
}

/* CONTENT SECTION */
.content-section {
  display: flex;
  flex-wrap: wrap;
  padding: 40px;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  color: #e0e0e0;
  animation: fadeIn 1s ease forwards;
}
.content-section img {
  max-width: 25%;
  height: auto;
  flex: 1 1 300px;
  margin-right: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}
.text-content {
  flex: 1 1 300px;
  text-align: center;
  line-height: 1.6;
  color: #e0e0e0;
}
.padding {
  padding: 1.5vh 0;
  font-size: 22px;
}

/* VIDEO */
.video-container {
  max-width: 640px;
  width: 20%;
  margin: 20px auto;
  text-align: center;
}
video {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.25);
}
.caption {
  margin-top: 10px;
  color: #ccc;
}

/* FOOTER */
footer {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 20px 0;
  margin-top: auto;
  border-top: 2px solid rgb(247, 255, 16);
}
footer span {
  color: #aaa;
}

/* PRODUCTS / CATALOG */
.catalog-title {
  text-align: center;
  margin: 30px 0 15px;
  color: #fff;
}
.catalog {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 0 10px 20px;
}
.product {
  width: 200px;
  text-align: center;
  transition: transform 0.75s ease;
}
.product img {
  width: 100%;
  height: 25vh;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
}
.product:hover {
  transform: scale(1.05);
}
.product p {
  margin-top: -5px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  background-color: #3a3a3a; /* tmavý box pro popisek */
  border-radius: 0 0 6px 6px;
  padding: 5px;
  color: #e0e0e0;
}
h3{
  font-size: 22px;
  strong{
    color: rgb(244, 215, 1);
    font-size: 26px;
  }
}
/* SERVICES SECTION */
.services-section {
  max-width: 800px;
  margin: 20px auto;
  font-size: 1rem;
  line-height: 1.6;
  border-radius: 8px;
  color: #e0e0e0;
}
.services-section li {
  margin-bottom: 5px;
  font-size: 1.2em;
}

/* LIGHTBOX MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.modal-image-container {
  width: 600px;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.modal-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  animation: zoomIn 0.3s ease;
}

.modal-content video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  animation: zoomIn 0.3s ease;
}

.modal-title {
  font-size: 25px;
  font-weight: bold;
  color: rgb(244, 215, 1);
  margin-top: 10px;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: rgb(244, 215, 1);
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s ease;
  z-index: 1001;
}

.modal-close:hover {
  color: #fff;
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(244, 215, 1, 0.2);
  border: none;
  color: rgb(244, 215, 1);
  font-size: 24px;
  padding: 15px 20px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: bold;
}

.modal-prev:hover,
.modal-next:hover {
  background-color: rgb(244, 215, 1);
  color: #000;
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

.prepare {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8vh;
  font-size: 24px;
  color: #e0e0e0;
}

.zemni {
    max-width: 1600px;
    margin: 40px auto;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.zemni > div {
    background: #1e1e1e;
    padding: 50px;
    border-left: 4px solid #f2c200;
}
.zemni h1 {
    margin-bottom: 20px;
    font-size: 26px;
    color: #ffffff;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}
.zemni p {
    color: #e0e0e0;
    line-height: 1.7;
    margin-bottom: 16px;
    padding-left: 22px;
    position: relative;
    font-size: 21px;
}
.zemni strong {
    color: #f2c200;
    font-weight: 600;
}
.zemni p::before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 0;
    color: #f2c200;
    font-size: 21px;
}
.tech-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
}
.tech-img {
    width: 220px;
    background: #2a2a2a;
    border: 1px dashed #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 17px;
    overflow: hidden;
}
.tech-img img {
    width: 100%;
    height: 100%;
    min-width: 220px;
    min-height: 220px;
    object-fit: contain;
    display: block;
}

.tech-img.card img {
    object-fit: cover;
}
.nadpisFotek {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;           /* klíčové */
  margin: 0;
}
.grid1 .nadpisFotek {
  grid-column: span 3;
}
.videos-wrapper {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.videos-wrapper video {
  width: 100%;
  height: 650px;
  object-fit: cover;
  border-radius: 6px;
}
.Fotky{
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgb(244, 215, 1);
  img{
  width: 100%;
  height: 25vh;
  object-fit: cover;
  border-radius: 6px;
  }
}
.grid1{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border: 1px solid rgb(244, 215, 1);
}
.grid2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-right: 5vw;
  margin-left: 5vw;  
}
.card {
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  min-height: 220px;
  max-height: 250px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.card p {
  min-height: 24px;
  text-align: center;
}
.nabidka{
  a{
    text-decoration: none;
    color: rgb(244, 215, 1);
    cursor: pointer;
  }
}
.services {
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px 40px;
    background: #1e1e1e;
    border-left: 4px solid #f2c200; /* žlutý akcent */
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}
.services p {
    color: #e6e6e6;
    font-size: 21px;
    line-height: 1.7;
    margin-bottom: 18px;
    padding-left: 24px;
    position: relative;
}
.services p::before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 0;
    color: #f2c200;
    font-size: 21px;
}

.album-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    min-height: 30vh;
}

.album-card {
    width: 250px;
    height: 250px;
    background: #1e1e1e;
    border: 2px solid #ffeb3b;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.album-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0 25px rgba(255,235,59,0.6);
}

.album-icon {
    font-size: 80px;
    margin-bottom: 15px;
}

.album-card h3 {
    margin: 0;
    font-size: 22px;
}
.middle{
  display: flex;
  justify-content: center;
  margin: 2vh 0;
}

/* Reset box-sizingu pro správné vykreslení šířky */
.references-section *, 
.references-section *::before, 
.references-section *::after {
  box-sizing: border-box;
}

/* Hlavní kontejner sekce */
.references-section {
  background-color: #1e1e1e;
  padding: 60px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.references-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Nadpisy */
.references-title {
  font-size: 28px;
  color: white;
  text-align: center;
  margin-bottom: 10px;
  font-weight: 700;
}

.references-subtitle {
  font-size: 16px;
  color: white;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 45px auto;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .references-grid {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-spacing: 20px 0;
  }
}

/* Karta s referencí */
.reference-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  position: relative;
  vertical-align: top;
}

@media (min-width: 768px) {
  .reference-card {
    display: table-cell;
    margin-bottom: 0;
  }
}

/* Horní část karty */
.reference-header {
  border-bottom: 2px solid #3b82f6; /* Modrý akcent ladící k zámečnictví/průmyslu */
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.client-name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.client-meta {
  display: block;
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Hlavní kontejner, který drží všechny 3 karty vedle sebe */
.references-grid {
  display: flex;
  flex-direction: column; /* Na mobilu budou pod sebou */
  gap: 20px; /* Mezera mezi kartami */
}

/* Na počítači (od šířky 992px) skočí vedle sebe a budou stejně vysoké */
@media (min-width: 992px) {
  .references-grid {
    flex-direction: row; /* Karty vedle sebe */
  }
  
  .reference-card {
    flex: 1; /* Každá karta zabere přesně 1/3 šířky */
  }
}

/* Samotná karta - nyní vnitřní Flexbox */
.reference-card {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 30px;
  
  /* Klíčové nastavení pro zarovnání tlačítek dolů: */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Roztáhne obsah tak, aby spodek lícoval */
}

/* Patička s autorem a tlačítkem se teď napevno přichytí ke spodku */
.reference-footer {
  margin-top: auto; /* Tlačí celý footer dolů */
  padding-top: 20px;
  border-top: 1px dashed #334155;
}

/* Tlačítko samotné */
.btn-view-original {
  display: block; /* Roztáhne tlačítko na celou šířku, aby lícovala */
  text-align: center;
  margin-top: 15px;
}

/* Tělo reference */
.reference-highlight {
  font-size: 16px;
  font-weight: 600;
  color: #30bdff;
  line-height: 1.4;
  margin: 0 0 15px 0;
  font-style: italic;
}

.reference-text {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}


/* Úprava barev textů, aby byly na tmavém dobře čitelné */
.references-title, .client-name, .author-name {
  color: #f8fafc; /* Skoro bílá (nesvítí tolik jako čistá bílá) */
}

.reference-text, .author-position {
  color: #cbd5e1; /* Světle šedá pro delší texty (skvěle se čte) */
}

.client-meta {
  color: #bfc4cc; /* Tlumená šedá pro detaily */
}


.author-info {
  margin-bottom: 15px;
}

.author-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.author-position {
  display: block;
  font-size: 13px;
}

/* Tlačítko pro zobrazení skenu */
.btn-view-original {
  display: inline-flex;
  align-items: center;
  background-color: #ffeb3b;
  color: black;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-view-original svg {
  margin-right: 6px;
  transition: transform 0.2s ease;
}

.btn-view-original:hover {
  background-color: #e2e8f0;
  color: #1e293b;
  border-color: #94a3b8;
}

.btn-view-original:hover svg {
  transform: translate(1px, -1px);
}

.jednoducha-hodnoceni {
  color: #f59e0b;     /* Krásná zlatožlutá barva */
  font-size: 30px;    /* Velikost hvězdiček */
  letter-spacing: 2px; /* Malá mezera mezi hvězdičkami */
  line-height: 1;
}


/* ANIMACE */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .content-section {
    flex-direction: column;
  }

  .grid1{
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .grid1 .nadpisFotek {
    grid-column: span 2;
}
  
  .hero {
    align-items: center;    /* Vycentruje horizontálně */
    justify-content: center; /* Vycentruje vertikálně */
    text-align: center;
    padding: 20px;
    height: 35vh;
  }

  .nametag {
    font-size: 45px; /* Menší písmo pro mobil */
    margin-bottom: 10px;
    position: absolute;
    top: 7vh;
  }

  .create {
    left: 20px;
    font-size: 24px;
  }
  .language-switcher {
    right: 25%;
  }
  .main-nav ul {
    display: none;
    flex-direction: column;
    text-align: center;
    background-color: #222;
    width: 100%;
  }
  .main-nav ul.show {
    display: flex;
  }
  .main-nav li a:hover {
    background-color: #333;
  }
  .main-nav .nav-container {
    flex-direction: column;
  }
  .hamburger {
    display: block;
    text-align: center;
  }
  .product {
    width: calc(50% - 10px);
  }
  .container{
    margin: 8vh 5vw 7vh 5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .download-links {
    flex-direction: column;
    align-items: center;
  }
  .map{
    .opacity{
      opacity: 1;
    }
    max-width: 100%;
    margin: 10vh 0 !important;
  }
  
  .zemni {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
    margin: 20px auto;
  }
  
  .zemni > div {
    padding: 20px;
  }
  
  .zemni h1 {
    font-size: 20px;
  }
  
  .zemni p {
    font-size: 15px;
    margin-bottom: 12px;
  }
  
  .tech-item {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .tech-img {
    width: 100%;
    height: 180px;
    margin: 0 auto;
  }
  
  .tech-img img {
    min-width: 100%;
    min-height: 180px;
  }
  
  .tech-img.card img {
    height: 100% !important;
    width: 100% !important;
  }
  .card img {
    width: 100%;
    height: 200px;
    min-height: 140px;
    max-height: 220px;
    object-fit: cover;
    display: block;
  }
  .grid1{
    .card{
      padding: 5px;
    }
  }
  
  .nadpisFotek {
    font-size: 18px;
    height: 50px;
    grid-column: span 2;
  }
  
    .modal-content {
    max-width: 95%;
  }

  .modal-image-container {
    width: 320px;
    height: 320px;
  }

  .modal-content img {
    max-height: 60vh;
  }

  .modal-prev,
  .modal-next {
    padding: 10px 15px;
    font-size: 20px;
    left: 10px;
    right: auto;
  }

  .modal-next {
    left: auto;
    right: 10px;
  }

  .modal-close {
    right: 15px;
    top: 15px;
    font-size: 30px;
  }

  .video-container{
    display: flex;
    justify-content: center;
    margin: 5px auto;
  }

  video{
    width: 200%;
  }
}
