* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-image: url("./img/pozadie.jpg");
  background-size: cover;        /* vyplní celú stránku */
  background-position: center;   /* zarovná na stred */
  background-repeat: no-repeat;  /* nezopakuje sa */
  background-attachment: fixed;  /* voliteľné – scroll efekt */
}

html, body {
  height: 100%;
  margin: 0;
}

/* Menu container */
.menu-container {
  width: 1000px;
  height: 50px;
  margin: 0 auto; /* center on page */
  position: relative;
  background-image: url('img/menu.png');
  background-size: cover;
  background-position: center;
}

/* Menu links */
.menu-links {
  position: absolute;
  top: 50%; /* vertical center */
  right: 5%; /* 10% from right */
  transform: translateY(-50%);
}

.menu-links a {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 2px; /* luxury vibe */
  margin-left: 28px;
  transition: color 0.3s ease;
}

/* Animated underline */
.menu-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px; /* tenšia čiara = luxus */
  background-color: #7d98ab;
  transition: width 0.35s ease;
}

.menu-links a:hover::after {
  width: 100%; /* animácia zľava doprava */
}

.menu-links a:hover {
  color: #7d98ab;
}

/* Header obrázok */
.header-image {
  width: 1000px;
  height: 400px;
  margin: 0 auto;
  position: relative;
  background-image: url('img/header.png');
  background-size: cover;
  background-position: center;
}

/* Tabuľka v headeri */
.header-table {
  display: flex;
  flex-direction: column; /* riadky nad sebou */
  justify-content: flex-start; /* zarovnanie k hornej časti */
  gap: 5px; /* malé medzery medzi riadkami */
  height: 100%;
  width: 40%; 
  margin: 0 auto;
  position: absolute;
  top: 30%;
  left: 28%;
  transform: translateX(-50%);
}

/* Riadky tabuľky */
.table-row {
  display: flex;
  justify-content: space-between; 
  gap: 5px; /* malé medzery medzi stĺpcami */
}

/* Polia tabuľky */
.table-cell {
  width: 49%; 
  height: 50px; /* znížená výška políčok */
  background-color: rgba(125, 152, 171, 0.5); 
  border: 1px solid rgba(125, 152, 171, 0.8);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Hover efekt políčka */
.table-cell:hover {
  background-color: rgba(125, 152, 171, 0.8);
  transform: scale(1.05);
}

/* Polia tabuľky */
.table-cell {
  width: 49%; 
  height: 50px; 
  background-color: rgba(125, 152, 171, 0.5); 
  border: 1px solid rgba(125, 152, 171, 0.8);
  transition: background-color 0.3s ease, transform 0.3s ease;

  /* zarovnanie textu */
  display: flex;
  justify-content: center; /* horizontálne centrovanie */
  align-items: center;     /* vertikálne centrovanie */
  color: #ffffff;          /* farba textu */
  font-family: 'Allura', cursive; /* elegantný skript font */
  font-size: 25px;         /* veľkosť textu, môžeš upraviť */
  text-align: center;
}

/* Stredná časť portfólia */
.middle-section {
  width: 1000px;
  height: 400px;
  margin: 0 auto; /* center */
  background-image: url('img/streduvod.png');
  background-size: cover;      /* vyplní celý blok */
  background-position: center; /* vycentrovanie obrázka */
  background-repeat: no-repeat;
  position: relative; /* dôležité, aby absolute vnútri fungovalo voči tejto sekcii */
}

.middle-sectionn {
  width: 1000px;
  height: 400px;
  margin: 0 auto; /* center */
  background-image: url('img/streduvod2.png');
  background-size: cover;      /* vyplní celý blok */
  background-position: center; /* vycentrovanie obrázka */
  background-repeat: no-repeat;
  position: relative; /* dôležité, aby absolute vnútri fungovalo voči tejto sekcii */
}

/* Stredná časť galeria */
.middle-sectiong {
  width: 1000px;
  height: 1800px;
  margin: 0 auto; /* center */
  background-image: url('img/streduvodgaleria.png');
  background-size: cover;      /* vyplní celý blok */
  background-position: center; /* vycentrovanie obrázka */
  background-repeat: no-repeat;
  position: relative; /* dôležité, aby absolute vnútri fungovalo voči tejto sekcii */
}

/* Stredná časť fotomodeling-projekty */
.middle-sectionf {
  width: 1000px;
  height: 1150px;
  margin: 0 auto; /* center */
  background-image: url('img/streduvodfotomodeling.png');
  background-size: cover;      /* vyplní celý blok */
  background-position: center; /* vycentrovanie obrázka */
  background-repeat: no-repeat;
  position: relative; /* dôležité, aby absolute vnútri fungovalo voči tejto sekcii */
}

/* Stredná časť machac-projekty */
.middle-sectionm {
  width: 1000px;
  height: 1600px;
  margin: 0 auto; /* center */
  background-image: url('img/stredm.png');
  background-size: cover;      /* vyplní celý blok */
  background-position: center; /* vycentrovanie obrázka */
  background-repeat: no-repeat;
  position: relative; /* dôležité, aby absolute vnútri fungovalo voči tejto sekcii */
}

/* Stredná časť daniel-projekty */
.middle-sectiond {
  width: 1000px;
  height: 1400px;
  margin: 0 auto; /* center */
  background-image: url('img/stredd.png');
  background-size: cover;      /* vyplní celý blok */
  background-position: center; /* vycentrovanie obrázka */
  background-repeat: no-repeat;
  position: relative; /* dôležité, aby absolute vnútri fungovalo voči tejto sekcii */
}

.fotomodeling-wrapper {
  position: absolute;
  top: 10%;              /* 10 % od vrchu */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 22px;             /* rozostupy medzi riadkami */
}

/* jeden riadok */
.fotomodeling-row {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* obrázok + text zarovnané doľava v rámci riadku */
  gap: 20px;
  width: 500px; /* pevná šírka pre všetky riadky */
}

/* obrázky */
.fotomodeling-row img {
  width: 100px;
  height: 133px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 14px;
}

/* animácia box-shadow a jemného pohybu */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 15px 4px #365ACF;
  }
  50% {
    box-shadow: 0 0 25px 8px #365ACF;
  }
  100% {
    box-shadow: 0 0 15px 4px #365ACF;
  }
}

/* hover efekt */
.fotomodeling-row img:hover {
  transform: scale(1.05) translateY(-2px) translateX(2px); /* zväčšenie + jemný pohyb */
  animation: pulseGlow 1s infinite;
}

/* text */
.fotomodeling-text {
  font-family: 'Playfair Display', serif; /* rovnaký font ako menu */
  font-size: 18px;
  color: #000000;                         
  text-decoration: none;
  position: relative;
  cursor: pointer;
  display: inline-block;
  transition: color 0.3s ease;
}

/* podčiarknutie */
.fotomodeling-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: #7d98ab;          
  transition: width 0.3s ease;
}

.fotomodeling-text:hover {
  color: #7d98ab;
}

.fotomodeling-text:hover::after {
  width: 100%;
}

/* Ikonka za textom */
.fotomodeling-link-icon {
  display: inline-block;
  text-decoration: none;
  border: none;
  outline: none;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;

  /* jemná animácia pri načítaní */
  animation: pulseRotate 3s ease-in-out infinite;
}

.fotomodeling-link-icon img {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  pointer-events: none;
}

/* Pulz + mierna rotácia animácia */
@keyframes pulseRotate {
  0%   { transform: scale(1) rotate(0deg); }
  25%  { transform: scale(1.05) rotate(2deg); }
  50%  { transform: scale(1.1) rotate(0deg); }
  75%  { transform: scale(1.05) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Hover efekt – jemné zväčšenie pri prechode myšou */
.fotomodeling-link-icon:hover {
  animation: none;             /* zastaví pulz pri hoveri */
}

.fotomodeling-link-icon:hover img {
  transform: scale(1.2);       /* jemné zväčšenie */
}













/* Galéria - grid */
.stredgalery-box {
  display: grid;
  grid-template-columns: repeat(4, 200px);
  grid-auto-rows: 267px;
  gap: 14px;
  justify-content: center;
  align-content: start;
  height: auto;
  position: relative;
  top: 5%; /* posun celej sekcie 10% z vrchu */
}

/* posun prvého riadku o 5px nižšie */
.stredgalery-box img:nth-child(-n+4) {
  transform: translateY(5px);
}

/* obrázky */
.stredgalery-box img {
  width: 200px;
  height: 267px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 14px;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 15px 4px #365ACF; /* zmena farby */
  }
  50% {
    box-shadow: 0 0 25px 8px #365ACF; /* zmena farby */
  }
  100% {
    box-shadow: 0 0 15px 4px #365ACF; /* zmena farby */
  }
}

.stredgalery-box img:hover {
  box-shadow: 0 0 15px 4px #365ACF; /* hover farba */
  animation: pulseGlow 1s infinite;
  transform: translateY(-2px) translateX(2px); /* jemný pohyb pri hover */
}






/* Jaro galeria - grid */
.stredgalery-boxj {
  display: grid;
  grid-template-columns: repeat(4, 200px);
  grid-auto-rows: 267px;
  gap: 14px;
  justify-content: center;
  align-content: start;
  height: auto;
  position: relative;
  top: 8%; /* posun celej sekcie 10% z vrchu */
}

/* posun prvého riadku o 5px nižšie */
.stredgalery-boxj img:nth-child(-n+4) {
  transform: translateY(5px);
}

/* obrázky */
.stredgalery-boxj img {
  width: 200px;
  height: 267px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 14px;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 15px 4px #365ACF; /* zmena farby */
  }
  50% {
    box-shadow: 0 0 25px 8px #365ACF; /* zmena farby */
  }
  100% {
    box-shadow: 0 0 15px 4px #365ACF; /* zmena farby */
  }
}

.stredgalery-boxj img:hover {
  box-shadow: 0 0 15px 4px #365ACF; /* hover farba */
  animation: pulseGlow 1s infinite;
  transform: translateY(-2px) translateX(2px); /* jemný pohyb pri hover */
}




/* Text Galéria, O mne s pulzovaním */
.gallery-title {
  position: absolute;
  top: 2%; /* 2% z vrchu strednej sekcie */
  left: 50%; /* horizontálne centrovanie */
  transform: translateX(-50%);
  font-size: 38px;
  color: #827c7c;
  font-family: 'Allura', cursive;
  text-align: center;

  /* Pulzovanie */
  animation: pulseText 2s ease-in-out infinite;
}

/* Keyframes pre jemné pulzovanie */
@keyframes pulseText {
  0% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.35); /* mierne zväčšenie */
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

/* Galéria obrázkov */
.image-gallery {
  width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center; /* horizontálne vycentrované */
  align-items: flex-start; /* zarovnané hore */
  gap: 20px; /* medzera medzi obrázkami */
  padding-top: 11%; /* posunutie z vrchu sekcie */
  height: 100%; /* vyplnenie sekcie */
}

/* Obrázky */
.gallery-img {
  width: 250px;
  height: 250px;
  border-radius: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover efekt - pulzovanie + modrý tieň */
.gallery-img:hover {
  animation: pulse 0.6s ease-in-out 1; /* pulzovanie pri hover */
  box-shadow: 0 0 20px #365ACF; /* modrý tieň */
}

/* Keyframes pre pulzovanie pri hover */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Podtext */
.middle-text {
  position: absolute;
  top: 20%; /* presne 20% od vrchu sekcie */
  left: 50%; 
  transform: translateX(-50%);
  width: 90%; /* aby text nebol príliš úzky */
  font-family: 'Playfair Display', serif; /* rovnaký font ako footer/menu */
  font-size: 18px; 
  color: #000000; /* môžeš zmeniť */
  text-align: center;
  line-height: 1.6; /* lepšia čitateľnosť */
}

/* Footer obrázok2 */
.footer-image2 {
  width: 1000px;
  height: 57px;
  margin: 0 auto;
  background-image: url('img/footer2.png');
  background-size: cover;
  background-position: center;
  position: relative; /* pre footer-links */
}

/* Footer obrázok1 */
.footer-image {
  width: 1000px;
  height: 370px;
  margin: 0 auto;
  background-image: url('img/footer.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Kontajner pre footer formular*/
.footer-linksf {
  position: absolute;
  top: 11%; /* vertikálne vycentrovanie */
  left: 50%; /* horizontálne vycentrovanie */
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
}

/* Kontajner pre odkazy */
.footer-links {
  position: absolute;
  top: 60%; /* vertikálne vycentrovanie */
  left: 50%; /* horizontálne vycentrovanie */
  transform: translate(-50%, -50%);
  display: flex;
  gap: 30px; /* medzera medzi odkazmi */
  font-family: 'Playfair Display', serif;
  letter-spacing: 2px; /* luxury vibe */
  font-size: 12px;
  align-items: center;
}

/* Štýl odkazov */
.footer-link {
  color: #ffffff; /* základná farba */
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px; /* medzera medzi ikonou a textom */
  transition: color 0.3s ease;
}

/* Hover efekt */
.footer-link:hover {
  color: #7d98ab; /* zmena farby pri hover */
}

/* Ikonky */
.footer-icon {
  width: 24px;
  height: 24px;
}



/* Kontakt formulár */
.kontakt-form {
  position: absolute;
  top: 13%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.kontakt-form input,
.kontakt-form textarea {
  width: 400px;
  padding: 10px 15px;
  border-radius: 0px;
  border: 3px solid #5e77a0;
  font-size: 16px;
  background-color: transparent;
  color: #fff;
  transition: border 0.3s ease;
  resize: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
  border: 4px solid #000;
  outline: none;
}

.kontakt-form button {
  padding: 10px 25px;
  font-size: 18px;
  border: 3px solid #5e77a0;
  border-radius: 0px;
  background-color: transparent;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.kontakt-form button:hover {
  color: #fff;
  transform: translateY(-2px);
}

.form-msg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  width: 100%;
}

.success-msg { color: #fff; }
.error-msg { color: #f00; }

/* Placeholder text – desktop aj mobil */
.kontakt-form input::placeholder,
.kontakt-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.85);
  opacity: 1; /* dôležité pre mobile Safari */
}