:root {
  --background-gray: #2E2E2E;   /* moderní tmavě šedá */
  --accent-yellow: #FFC107;     /* žlutá akcent */
  --text-white: #FFFFFF;        /* bílý text */
  --accent-blue: #3b3b32e9;       /* doplňková modrá */
  --border-blue: #0a355c;       /* původní tmavá modrá pro ohraničení */
}

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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: var(--background-gray);
  color: var(--text-white);
}

/* Kontejner */
.container {
  max-width: 1200px; /* nebo podle potřeby */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.container-nadpis {
  max-width: 1200px; /* nebo podle potřeby */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.text-center {
  text-align: center;
}


/* Hlavička */
header {
  background: #222;
  color: var(--text-white);
  padding: 20px 0;
}

header h1 {
  margin-bottom: 10px;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

nav a {
  color: var(--accent-yellow);
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: var(--accent-blue);
}

/* Hamburger hidden on desktop */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: var(--accent-yellow);
  cursor: pointer;
}

/* 📱 Mobilní zobrazení */
@media (max-width: 768px) {
  nav {
    display: none;
    width: 100%;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    margin-top: 10px;
  }

  .menu-toggle {
    display: block;
  }
}


/* Hero sekce */
.hero {
  background: #666; /* moderní šedá pozadí, můžeš upravit */
  color: white;
  padding: 60px 0;
  overflow: hidden; /* aby animace byla čistá */
}

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

.hero .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: var(--accent-yellow);
  color: var(--background-gray);
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.hero .btn:hover {
  background: #e6b800; /* tmavší žlutá */
}

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
}

.hero-text h2 {
  font-size: 3rem;
  font-weight: bold;
  max-width: 600px;
}

.hero-description {
  margin-top: 15px;
  font-size: 1.2rem;
  max-width: 600px;
  line-height: 1.5;
  color: #ddd; /* světlejší šedá na tmavém pozadí */
}

/* O nás */
.about {
  background: #3c3c3c; /* tmavší šedá, aby nebyla bílá */
  padding: 40px 0;
  color: var(--text-white);
}

.about h3 {
  margin-bottom: 20px;
  color: var(--accent-yellow);
}

/* Patička */
footer {
  background: #222;
  color: var(--text-white);
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

/* Služby */

.service-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.service h4 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
  color: inherit;
  text-align: center;
}

.services {
  background: #4a4a4a; /* tmavší šedá */
  padding: 60px 20px;
  text-align: center;
  color: var(--text-white);
}

.services h3 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--accent-yellow);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.service {
  padding: 20px;
  border: 2px solid var(--border-blue);
  border-radius: 10px;
  text-align: center;
  background-color: #fff;
  font-weight: bold;
  color: var(--border-blue);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.service:hover {
  transform: translateY(-4px);
}

@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .service-list {
    flex-direction: column;
  }
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-group img {
  max-height: 50px;
}

.company-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text-white);
}

/* Obrázek vpravo */
.hero-image img {
  max-width: 400px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  object-fit: cover;
}

/* Fade-in animace */
.fade-in {
  opacity: 0;
  animation: fadeInAnimation 1s ease forwards;
  animation-delay: 0.4s; /* můžeš upravit zpoždění */
}
.fade-in2 {
  opacity: 0;
  animation: fadeInAnimation 1s ease forwards;
  animation-delay: 0.3s; /* můžeš upravit zpoždění */
}
.fade-in3 {
  opacity: 0;
  animation: fadeInAnimation 1s ease forwards;
  animation-delay: 0.2s; /* můžeš upravit zpoždění */
}

@keyframes fadeInAnimation {
  to {
    opacity: 1;
  }
}


/* Responsivita */
@media (max-width: 900px) {
  .hero-flex {
    flex-direction: column;
    text-align: center;
  }

  .hero-image img {
    max-width: 80%;
    margin-top: 20px;
  }

  .hero-text h2 {
    font-size: 2.2rem;
  }
}

ul {
  list-style-type: disc;       /* klasické tečkové odrážky */
  padding-left: 25px;          /* odsazení od levého okraje */
  color: #ffffff;              /* žlutá barva textu i odrážek */
  max-width: 600px;            /* aby seznam nebyl příliš široký */
  margin-bottom: 20px;         /* mezera pod seznamem */
}

ul li {
  margin-bottom: 10px;         /* mezera mezi položkami seznamu */
  font-size: 1.1rem;
  line-height: 1.4;
}

/* Navigace */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0; /* odstraníme gap, protože používáme oddělovače */
  align-items: center;
  padding-left: 0;
  margin: 0;
}

nav ul li {
  position: relative;
  padding: 0 15px; /* prostor kolem textu */
}

nav ul li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background-color: #ffcc00; /* žlutá barva oddělovače */
}
  
nav a {
  color: #FFC107;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: rgb(255, 255, 255)
}

p {
  text-align: justify;
}

/* Tlačítko pro detail služby */
.btn-detail {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background-color: #3b82f6; /* Tailwind: blue-500 */
  color: white;
  font-weight: 500;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.btn-detail:hover {
  background-color: #2563eb; /* Tailwind: blue-600 */
}

/* Kontakt formulář a info */

.contact-section {
  padding: 60px 0;
  background: var(--background-gray);
  color: var(--text-white);
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 15px;
  color: var(--accent-yellow);
}

.contact-section p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
  color: #ccc;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-form {
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #444; /* tmavší šedá pro formulář */
  padding: 25px 30px;
  border-radius: 10px;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--accent-yellow);
}

.contact-form input,
.contact-form textarea {
  background: #333;
  border: 1.5px solid var(--accent-yellow);
  color: var(--text-white);
  padding: 10px;
  border-radius: 6px;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #bbb;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-yellow);
  outline: none;
  background: #2e2e2e;
}

.btn {
  background-color: var(--accent-yellow);
  color: var(--background-gray);
  border: none;
  padding: 12px 20px;
  font-size: 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
  font-weight: bold;
}

.btn:hover {
  background-color: #e6b800; /* tmavší žlutá */
}

.contact-info {
  flex: 1 1 300px;
  background: #444;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  color: var(--accent-yellow);
}

.contact-info h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
  border-bottom: 2px solid var(--accent-yellow);
  padding-bottom: 5px;
}

.contact-info p {
  margin: 10px 0;
  font-size: 1rem;
  color: #ddd;
}

@media (max-width: 700px) {
  .contact-wrapper {
    flex-direction: column;
  }

  .contact-form,
  .contact-info {
    flex: 1 1 100%;
  }
}

/* Realizace projektů */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  justify-items: center;
  margin-bottom: 40px;
}

.gallery-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* Play ikona přes video thumbnail */
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: rgba(255, 255, 255, 0.8);
  pointer-events: none; /* aby neblokovala klikání */
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
  user-select: none;
}

/* Pozicování odkazů v galerii pro play ikonku */
.gallery-grid a {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 8px;
}
