@charset "UTF-8";

/*─────────────────────────────────────────────────────────────
  Responsive upgrade (mobile-first) – consolidated & commented
  (opraveno pro tvoje HTML + stabilnější cross-browser)
─────────────────────────────────────────────────────────────*/

/*─────────────────────────────────────────────────────────────
  1) Proměnné a reset
─────────────────────────────────────────────────────────────*/
:root {
  --text-dark: #111;
  --text-muted: #555;
  --accent: #ff66c4;
  --bg: #fff;
  --gap: 2rem;
  --radius: 12px;
  --maxw: 1200px;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Helper container */
.container { width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:1rem; }

/*─────────────────────────────────────────────────────────────
  2) Společná tlačítka
─────────────────────────────────────────────────────────────*/
.btn-contact,
.btn-my-work {
  position: absolute; right: 2rem;
  display: inline-block;

  width: 200px;
  padding: 0.65rem 0;
  text-align: center;

  border: none; border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease, filter .2s ease, transform .15s ease;
}

.btn-contact { top: 1rem; background: var(--text-dark); color: #fff; }
.btn-contact:hover { background: #333; transform: translateY(-1px); }

.btn-my-work { top: 5.3rem; background: var(--accent); color: #fff; }
.btn-my-work:hover { background: #e052a8; transform: translateY(-1px); }

/* „Back to main“ nad „MY WORK“ (když je back-button v HTML nad tlačítkem) */
.back-button { display:block; margin-bottom:.5rem; }
.back-button + .btn-my-work{
  position: static !important;
  display:block;
  margin-top:.75rem;
}

/* Mobile button stacking */
@media (max-width: 768px){
  .btn-contact, .btn-my-work{
    position: static;
    width: 100%;
    max-width: 320px;
    margin: .25rem auto;
    display:block;
  }
  .btn-contact { margin-bottom:.5rem; }
}

.btn-contact:focus-visible,
.btn-my-work:focus-visible,
.btn-video:focus-visible,
.back-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/*─────────────────────────────────────────────────────────────
  3) Hlavní stránka – header
─────────────────────────────────────────────────────────────*/
header.main-header {
  position: relative;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Tablet fix */
@media (min-width: 600px) and (max-width: 1024px) {
  header.main-header{
    min-height: auto;
    padding-block: 2rem 2.5rem;
  }
  .hero-content{
    gap: 1.25rem;
    padding: 1rem 0;
  }
  .hero-text h1{
    font-size: clamp(2rem, 4.5vw, 3.25rem);
  }
  .hero-img-wrapper{
    width: 240px;
    height: 240px;
  }
  .motivation-section{
    padding-top: 2rem;
  }
}

/* Navbar */
.navbar { position: absolute; top: 1rem; left: 2rem; right: 2rem; }
.navbar .logo {
  position: absolute; left: 2rem;
  font-size: clamp(1.125rem, 1.2vw + 1rem, 1.5rem);
  font-weight: bold;
  text-decoration: none; color: var(--text-dark);
}

/* logo obrázek */
.logo img { height: 56px; width: auto; }

/* Mobile navbar */
@media (max-width: 768px){
  .navbar { position: static; width:100%; }
  .navbar .logo { position: static; display:block; text-align:center; margin-bottom: .5rem; }
}

/* Citát */
.quote {
  font-family: Georgia, serif;
  font-style: italic; font-size: .95rem;
  color: var(--text-muted); line-height: 1.4;
  margin-bottom: 0.5rem;
}

/* Hero */
.hero-content {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--gap); max-width: 800px;
  margin: 0 auto; padding: 2rem 0;
}

.hero-text { padding-top: 1.5rem; }
.hero-text h3 {
  font-size: clamp(1.25rem, 1vw + 1rem, 2rem);
  line-height: 1.1; font-weight: 700; margin: 0 0 .2rem; color: var(--accent);
}
.hero-text h1 {
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.1; font-weight: 800;
  margin: .25rem 0 1rem; color: var(--text-dark);
}
.hero-text p {
  margin-top: 0.5rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-img-wrapper { position: relative; width: 300px; height: 300px; }
.hero-img-wrapper::before {
  content: ""; position: absolute; top: -12px; left: -12px;
  width: calc(100% + 24px); height: calc(100% + 24px);
  border-radius: 50%; background: var(--accent); z-index: -1;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

@media (max-width: 480px){
  .hero-img-wrapper{ width: 220px; height: 220px; }
  .hero-img-wrapper::before{ top:-8px; left:-8px; width: calc(100% + 16px); height: calc(100% + 16px); }
}

/*─────────────────────────────────────────────────────────────
  4) Motivation / Work / Contact
─────────────────────────────────────────────────────────────*/
.motivation-section { padding: 4rem 1rem; background: var(--bg); }

/* stabilní grid */
.motivation-container {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: var(--gap);
  align-items: start;
}

.motivation-heading h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  margin: 0;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.motivation-text p { line-height: 1.7; margin-bottom: 1rem; color: var(--text-muted); }
.signature { width: 110px; margin-top: 2rem; }

@media (max-width: 900px){
  .motivation-container{ grid-template-columns: 1fr; }
}

/* WORK section */
main#work { max-width: var(--maxw); margin: 0 auto; padding: var(--gap) 1rem; }

/* heading (homepage + contact) */
.section-heading{
  max-width: var(--maxw);
  margin: 2rem auto 1rem;
  padding: 0 1rem;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: block;
  text-align: left;
}

/* Contact */
section#contact,
.contact-section { padding: 6rem 1rem; text-align: center; }

.social-links { display:flex; justify-content:center; gap: clamp(1rem, 5vw, var(--gap)); margin-bottom: 2rem; flex-wrap: wrap; }
.social-links a { font-weight: 700; text-decoration: none; font-size: .95rem; color: var(--accent); }
.social-links a:hover { text-decoration: underline; }

.btn-contact-large {
  padding:.9rem 2rem;
  background:var(--text-dark);
  color:#fff;
  border-radius:999px;
  font-weight:700;
  display:inline-block;
}
.btn-contact-large:hover { background: var(--accent); }

/* Ikonky nástrojů */
.tools-carousel {
  width: 100%;
  background-color: var(--bg);
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  gap: clamp(1.25rem, 6vw, 7rem);
  flex-wrap: wrap;
}
.tools-carousel img {
  width: clamp(60px, 7vw, 92px);
  height: clamp(60px, 7vw, 92px);
  object-fit: contain;
}

/* Work grid */
.work-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap); }
.work-item { height: 150px; border-radius: 8px; background-size: cover; background-position: center; transition: transform .3s; }
.work-item:hover { transform: translateY(-4px); }

@media (max-width: 1200px){ .work-grid{ grid-template-columns: repeat(3,1fr); } }
@media (max-width: 900px){ .work-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .work-grid{ grid-template-columns: 1fr; } }

/* Kompaktní dlaždice My Work */
@media (max-width: 700px) {
  .work-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .875rem;
  }
  .work-item{
    height: 96px;
    border-radius: 10px;
    transform: none;
  }
}
@media (max-width: 480px) {
  .work-grid{
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
  }
  .work-item{
    height: 74px;
    border-radius: 8px;
  }
}

/*─────────────────────────────────────────────────────────────
  Galerie / portfolio (podstránky)
─────────────────────────────────────────────────────────────*/
.graphics-main { max-width: var(--maxw); margin: 0 auto; padding: 2rem 1rem; }
.image-gallery { display:flex; flex-wrap:wrap; gap:1rem; justify-content:center; align-items:flex-start; margin-bottom:2rem; }

.small-gallery .image-gallery img {
  height: 120px; width: auto; object-fit: contain; border: 1px solid #ccc; border-radius: 8px; background: #fff; padding: 4px;
}
.image-gallery img { height: 300px; width: auto; object-fit: contain; border-radius: 8px; background: #fff; transition: transform 0.3s; }
.image-gallery img:hover { transform: scale(1.02); }
@media (max-width: 480px){ .image-gallery img{ height: 220px; } }

.download-link { font-size: .9rem; font-weight: 600; color: var(--accent); margin-left: .5rem; }
.download-link:hover { text-decoration: underline; }

/* Multimedia Camp images */
.portfolio-section { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1rem; }
.portfolio-section h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); margin-bottom: 1rem; }
.portfolio-section p { color: var(--text-muted); line-height: 1.7; margin-bottom: 1.25rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; transition: .25s; }

@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .portfolio-section { padding: 2rem 1rem; } .portfolio-section h2 { font-size: 1.5rem; } .gallery { grid-template-columns: 1fr; } }

.btn-video { padding: .85rem 1.25rem; border-radius: 999px; background: var(--accent); color:#fff; font-weight: 700; }
.btn-video:hover { background: #e052a8; }

/*─────────────────────────────────────────────────────────────
  5) Další drobnosti
─────────────────────────────────────────────────────────────*/
@media (max-width: 800px) {
  header.main-header { padding: 1rem; }
  .quote { display: none; }
  .hero-content { padding: 1rem 0; }
  .graphics-main { padding: 1rem; }
}

/* Utility */
.hidden{ display:none !important; }
.center{ display:grid; place-items:center; }
.mt-1{ margin-top:.5rem } .mt-2{ margin-top:1rem } .mt-3{ margin-top:1.5rem }
.mb-1{ margin-bottom:.5rem } .mb-2{ margin-bottom:1rem } .mb-3{ margin-bottom:1.5rem }

/* Footer button fix */
.bottom-nav {
  text-align: center;
  padding: 2rem 1rem;
}
.bottom-nav .btn-my-work {
  position: static !important;
  display: inline-block;
  margin: 0 auto;
}

/*─────────────────────────────────────────────────────────────
  6) PODSTRÁNKY – FIX „Back to main“ + nadpis uprostřed
  (tohle je to, co ti teď chybí)
─────────────────────────────────────────────────────────────*/
.simple-header{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.75rem 1rem 1rem;
  text-align: center;
}

/* obal pro Back + MY WORK */
.simple-header .back-wrapper{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-bottom: 1.25rem;
}

/* na podstránce nesmí být absolutní */
.simple-header .btn-my-work{
  position: static !important;
  right: auto !important;
  top: auto !important;
  width: 200px;
  max-width: 90vw;
  margin: 0 auto;
}

/* „Back to main“ – růžové a uprostřed */
.simple-header .back-button{
  position: static !important;
  margin: 0 auto;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 2px solid currentColor;
  line-height: 1.2;
}
.simple-header .back-button:hover{
  filter: brightness(.95);
}

/* Nadpis stránky uprostřed */
.page-title{
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1;
  margin: .25rem 0 0;
  text-align: center;
}

/* Nadpisy sekcí na podstránkách – ať jsou hezké (ne jako homepage work heading) */
.graphics-main .section-heading{
  text-align: center;
  text-transform: none;
  letter-spacing: .02em;
  font-weight: 800;
  margin: 2.25rem auto 1.1rem;
  padding: 0 1rem;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}
