/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Unbounded:wght@200..900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  --hue: 255;
  --first-color: hsl(var(--hue), 60%, 64%);
  --first-color-alt: hsl(var(--hue), 80%, 56%);
  --first-color-alt-2: hsl(var(--hue), 60%, 56%);
  --first-color-light: hsl(var(--hue), 60%, 74%);
  --title-color: hsl(240, 8%, 95%);
  --text-color: hsl(240, 8%, 70%);
  --text-color-light: hsl(240, 8%, 50%);
  --body-color: hsl(240, 100%, 2%);
  --container-color: hsl(240, 8%, 6%);

  /*========== Font and typography ==========*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Unbounded", sans-serif;
  --biggest-font-size: 2rem;
  --bigger-font-size: 1.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*=============== BASE ===============*/
* { box-sizing: border-box; padding: 0; margin: 0; }
html { scroll-behavior: smooth; }
body, button { font-family: var(--body-font); font-size: var(--normal-font-size); }
body { background-color: var(--body-color); color: var(--text-color); }
button { outline: none; border: none; }

/*=============== HEADINGS ===============*/
h1, h2, h3, h4 {
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
}
ul { list-style: none; }
a { text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/*=============== REUSABLE CLASSES ===============*/
.container { max-width: 1120px; margin-inline: 1.5rem; }
.grid { display: grid; gap: 1.5rem; }
.section { padding-block: 5rem 1rem; }
.section__title { text-align: center; font-size: var(--h1-font-size); margin-bottom: 3rem; }
.section__title span { color: var(--first-color); }

/*=============== HEADER & NAV ===============*/
.header { position: fixed; top: 0; width: 100%; height: var(--header-height); background-color: var(--container-color); z-index: var(--z-fixed); }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; position: relative; }
.nav__menu { display: flex; gap: 2rem; }
.nav__list { display: flex; gap: 2rem; list-style: none; }
.nav__link { text-decoration: none; color: var(--text-color); font-weight: 500; transition: color 0.3s ease; position: relative; }
.nav__link:hover { color: var(--first-color); }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0%; height: 2px; background-color: var(--first-color); transition: width 0.3s ease; }
.nav__link:hover::after { width: 100%; }
.nav__toggle { font-size: 2rem; background: none; border: none; cursor: pointer; color: var(--title-color); display: none; }
@media screen and (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__menu { position: absolute; top: 100%; right: 2rem; background-color: var(--body-color); flex-direction: column; align-items: flex-start; padding: 1rem; border-radius: 0.5rem; box-shadow: 0 8px 16px rgba(0,0,0,0.1); display: none; animation: fadeIn 0.3s ease forwards; }
  .nav__menu.show-menu { display: flex; }
  .nav__list { flex-direction: column; gap: 1rem; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/*=============== HOME ===============*/
.home { display: flex; align-items: center; justify-content: center; height: 100vh; background: var(--container-color); }
.home__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; padding-block: 5rem 2rem; }
.home__content { display: flex; flex-direction: column; gap: 1.5rem; }
.home__title { font-size: var(--biggest-font-size); background: linear-gradient(90deg, var(--first-color), var(--first-color-alt)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
#homeText { font-size: var(--normal-font-size); color: var(--text-color); line-height: 1.6; }

/* Profilová fotka */
.home__image-wrapper { display: flex; justify-content: flex-end; align-items: center; }
.home__image {
  width: 280px; height: 280px; border-radius: 50%; object-fit: cover;
  padding: 6px; background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  box-shadow: 0 0 60px rgba(128, 0, 128, 0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.home__image:hover { transform: scale(1.05); box-shadow: 0 0 80px rgba(128, 0, 128, 0.7); }

/* CTA tlačítko */
.button {
  display: inline-block; background: linear-gradient(90deg, var(--first-color), var(--first-color-alt));
  color: var(--title-color); padding: 1rem 2rem; border-radius: 0.5rem; font-weight: var(--font-medium);
  transition: transform 0.3s ease, background 0.3s ease; text-align: center; width: fit-content;
}
.button:hover { transform: scale(1.05); background: linear-gradient(90deg, var(--first-color-alt), var(--first-color)); }

/*=============== ABOUT ===============*/
.about__title { font-size: var(--h2-font-size); color: var(--title-color); margin-bottom: 2rem; text-align: center; }
.about__item { background-color: var(--container-color); padding: 2rem; border-radius: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.about__item:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(128, 0, 128, 0.2); }
.about__item h3 { font-size: var(--h3-font-size); margin-bottom: 1rem; color: var(--first-color); }
.about__item p { font-size: var(--normal-font-size); color: var(--text-color); line-height: 1.8; margin-bottom: 1rem; text-align: justify; }

/*=============== PROJECTS ===============*/
.projects__container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.projects__category { margin-bottom: 3rem; }
.projects__category h3 { font-size: var(--h2-font-size); color: var(--first-color); margin-bottom: 1.5rem; border-left: 4px solid var(--first-color); padding-left: 1rem; }
.projects__item {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.projects__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.35);
}
.projects__item h4 {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: 0.5rem;
}
.projects__item p {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  margin-bottom: 0.75rem;
}
.projects__item a {
  display: inline-block;
  color: var(--first-color);
  font-weight: var(--font-medium);
  text-decoration: underline;
  transition: color 0.3s ease;
}
.projects__item a:hover { color: var(--first-color-alt); }
.projects__item span {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

/*=============== SERVICES ===============*/
.services__item {
  background-color: var(--container-color);
  padding: 2rem;
  border-radius: 1rem;
  transition: transform 0.3s;
}
.services__item:hover { transform: translateY(-10px); }

/*=============== TESTIMONIALS ===============*/
.testimonials__container {
  overflow-x: auto;
  white-space: nowrap;
  scroll-snap-type: x mandatory;
}
.testimonials__item {
  display: inline-block;
  scroll-snap-align: start;
  width: 300px;
  margin-right: 1rem;
}

/*=============== CONTACT ===============*/
.contact__form { display: grid; gap: 1rem; }
.contact__input {
  padding: 1rem;
  border: 1px solid var(--text-color-light);
  border-radius: 0.5rem;
  background-color: var(--container-color);
  color: var(--text-color);
}

/*=============== FOOTER ===============*/
.footer {
  text-align: center;
  padding: 2rem 0;
  background-color: var(--container-color);
  color: var(--text-color-light);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar { width: 0.5rem; }
::-webkit-scrollbar-thumb {
  background-color: var(--first-color);
  border-radius: 0.25rem;
}

/*=============== BREAKPOINTS ===============*/
@media screen and (max-width: 576px) {
  .container { margin-inline: 1rem; }
}
@media screen and (min-width: 577px) and (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (min-width: 1025px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (min-width: 2048px) {
  .container { max-width: 1400px; }
}

/*=============== LOGOS & IMAGES (sjednocené) ===============*/
.project__logo {
  max-width: 120px;
  height: auto;
  border-radius: 0.75rem;
  background-color: var(--container-color);
  padding: 0.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project__logo:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}
.projects__item img {
  max-width: 100px;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background-color: var(--container-color);
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.projects__item img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.35);
}

/*=============== BUTTON PURPLE (sjednocené) ===============*/
.btn-purple {
  background: linear-gradient(90deg, var(--first-color), var(--first-color-alt));
  color: var(--title-color);
  border: none;
  padding: 0.75em 1.5em;
  border-radius: 5px;
  font-weight: var(--font-semi-bold);
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}
.btn-purple:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg, var(--first-color-alt), var(--first-color));
}

/*=============== SOCIAL ICONS ===============*/
.home__icons { margin-top: 1.5rem; display: flex; gap: 1rem; }
.home__icons a {
  font-size: 2rem;
  color: var(--first-color);
  transition: transform 0.3s ease, color 0.3s ease;
}
.home__icons a:hover {
  transform: scale(1.2) translateY(-3px);
  color: var(--first-color-alt);
}
.social-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.social-icons a {
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
