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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #0d0d0d;
  color: #f0f0f0;
  line-height: 1.6;
  min-height: 100vh;
}

nav {
  background-color: #111;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00bcd4;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.3s;
}

nav ul li a:hover, nav ul li a[aria-current="page"] {
  color: #00bcd4;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: #fff;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #111;
    position: absolute;
    top: 60px;
    left: 0;
    padding: 1rem;
  }

  nav ul.nav-active {
    display: flex;
  }

  nav ul li {
    margin: 0.5rem 0;
  }
}

/* Využití plné šířky stránky */
main.container {
  width: 100%;
  padding: 2rem 4rem;
}

section.section h2 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
  color: #00bcd4;
  text-align: center;
}

/* Technika položky */
.tech-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
}

.tech-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #1a1a1a;
  border-radius: 15px;
  padding: 2rem 3rem;
  box-shadow: 0 4px 10px rgba(0,188,212,0.15);
  transition: background-color 0.3s ease;
}

.tech-item:hover {
  background-color: #222;
}

.tech-desc {
  flex: 1;
  padding-right: 3rem;
  max-width: 60%;
}

.tech-desc h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #00bcd4;
}

.tech-desc p {
  font-size: 1.2rem;
  color: #ccc;
  line-height: 1.5;
}

.tech-img {
  flex-shrink: 0;
  width: 320px;
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 0 15px #00bcd4;
  transition: transform 0.3s ease;
}

.tech-img img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  display: block;
}

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

@media (max-width: 1024px) {
  main.container {
    padding: 2rem 2rem;
  }
  .tech-desc {
    max-width: 65%;
  }
  .tech-img {
    width: 280px;
  }
}

@media (max-width: 768px) {
  main.container {
    padding: 1rem 1rem;
  }
  .tech-item {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
  }
  .tech-desc {
    max-width: 100%;
    padding-right: 0;
    margin-bottom: 1rem;
  }
  .tech-img {
    width: 80%;
  }
}

footer {
  background-color: #111;
  color: #aaa;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
}


/* Přidat do technika.css */

.tech-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #1a1a1a;
  border-radius: 15px;
  padding: 2rem 3rem;
  box-shadow: 0 4px 10px rgba(0,188,212,0.15);
  gap: 2rem;
  transition: background-color 0.3s ease;
  flex-wrap: wrap;
}

.tech-item:hover {
  background-color: #222;
}

.tech-desc {
  flex: 1 1 50%;
  max-width: 600px;
  color: #ccc;
}

.tech-desc h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #00bcd4;
}

.tech-desc p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  color: #ccc;
  font-size: 1rem;
}

.specs-table th,
.specs-table td {
  border: 1px solid #00bcd4;
  padding: 0.4rem 0.8rem;
  text-align: left;
}

.specs-table th {
  background-color: #00bcd4;
  color: #0d0d0d;
  width: 45%;
}

.tech-img {
  flex-shrink: 0;
  width: 320px;
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 0 15px #00bcd4;
  transition: transform 0.3s ease;
}

.tech-img img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  display: block;
}

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

@media (max-width: 1024px) {
  .tech-item {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .tech-desc {
    max-width: 100%;
  }
  .tech-img {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .tech-item {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
  }
  .tech-desc {
    max-width: 100%;
    padding-right: 0;
    margin-bottom: 1rem;
    text-align: center;
  }
  .specs-table {
    margin: 0 auto;
  }
  .tech-img {
    width: 80%;
  }
}
