* {margin: 0; padding: 0; box-sizing: border-box}

body {
  font-family: 'Segoe UI', Arial; 
  line-height: 1.6; 
  color: #ffffff; 
  background: #111; 
  scroll-behavior: smooth
}

a {color: #ff6600}

/* HEADER */
header {
  background: #000; 
  color: #fff; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 1rem 2rem; 
  position: sticky;
  top: 0;
  z-index: 1000
}

/*Logo Stranky*/
.logo {display: flex;align-items: center;gap: 0.5rem}
.logo img {max-width: 80px !important; height: auto !important; border-radius: 0 !important}

.menu {display: flex; gap: 1rem}
.menu a {color: #fff;text-decoration: none;font-weight: 500;position: relative;transition: color 0.3s}
.menu a::after {content: ''; position: absolute; left: 0; bottom: -3px; width: 100%; height: 2px; background: #ff6600; transform: scaleX(0); transition: transform 0.3s ease}
.menu a:hover::after {transform: scaleX(1)}
.menu a:hover {color: #ff6600}

/* MENU */
.menu-icon {
  display: none; 
  font-size: 2rem;
  cursor: pointer
}

.lang-switch {
  display: inline-block;
  margin-left: 1rem
}

.lang-switch a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  margin: 0 0.3rem;
  transition: color 0.3s
}

.lang-switch a:hover {
  color: #ff6600
}

.lang-switch img {
  width: 20px;
  height: auto;
  vertical-align: middle;
  margin: 0 4px
}

#menu-toggle {display: none}

@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    gap: 0;
    background: #000;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    padding: 1rem;
    border-left: 1px solid #444;}
  #menu-toggle:checked + .menu-icon + .menu {display: flex;}
  .menu-icon {display: block}
}

/* SEKCIE */
section {
  padding: 4rem 2rem;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
  margin-bottom: 2rem
}

.dark-bg {background: #111}

.fade-in {animation-delay: 0.2s}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0)
  }
}

h2 {
  margin-bottom: 1rem;
  color: #ff6600
}

p {
  max-width: 600px;
  margin: 0 auto 1.5rem auto
}

.btn {
  display: inline-block;
  background: #ff6600;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  transition: transform 0.3s, background 0.3s
}

.btn:hover {
  background: #e55b00;
  transform: scale(1.05)
}

/* O MNE */
.omne-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem
}

/* GRID PROJEKTOV */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem
}

.projekt {
  background: #222;
  padding: 2rem;
  flex: 1 1 200px;
  min-width: 200px;
  transition: transform 0.3s, background 0.3s;
  border-radius: 10px;
  overflow: hidden
}

.projekt:hover {
  transform: scale(1.05);
  background: #333
}

.projekt-img {
  width: auto;
  max-width: 100%;              /*ostane mi odsadeny presne do kolonky projektu */
  height: auto;         /* zachová proporcie */
  border-radius: 10px;      /* zaoblené rohy ako zvyšok */
  margin-top: 1rem;         /* medzera od textu hore */
  transition: transform 0.3s, opacity 0.3s
}

.projekt-img:hover {
  transform: scale(1.05);
  opacity: 0.9
}

/* ZRUČNOSTI */
.skill {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto
}

.skill p {
  margin-bottom: 0.25rem
}

.bar {
  background: #222;
  border-radius: 10px;
  overflow: hidden;
  height: 20px
}

.fill {
  background: #ff6600;
  height: 100%;
  width: 0;
  transition: width 1s
}

.skill:hover .fill {
  width: 100%
}

.kontakt_img {height: 20px; width: 20px; vertical-align: middle}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  background: #000;
  color: #fff}