* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}


/*FRONTEND: HEADER SEKCE ==============================================================================================  */


.headerIntroduction {
    justify-content: space-between;
    display: flex;
    align-items: center;
    padding: 1rem 3rem;
}


.introductionTitle {
    font-family: "WDXL Lubrifont TC", sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 2rem);

}


@media (max-width: 768px) {
    .headerIntroduction {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .introductionTitle {
        font-size: clamp(1rem, 4.5vw, 1.4rem);
    }

    /* ... zbytek tvého existujícího mobilního bloku (hamburger, MainNav, atd.) ... */
}

.Menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.Menu li a {
    font-family: "Urbanist", sans-serif;
    text-decoration: none;
    color: black;
    font-size: 1.3vw;
    font-variation-settings: "wght" 300;


}

/*TODO: Hamburger Menu */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: auto;

}

.hamburgerLine {
    display: block;
    width: 100%;
    height: 2px;
    background: #212838;
    transition: transform 0.3s ease, opacity 0.3s ease;

}

/*TODO: Animace aktivního stavu hamburger menu */
.hamburger.active .hamburgerLine:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active .hamburgerLine:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburgerLine:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/*TODO: Breakpoint pro smartphone */

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

    .MainNav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 50dvh;
        background: #212838;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .MainNav.active {
        right: 0;
    }

    .Menu {
        flex-direction: column;
        gap: 0;
        height: 100%;
        justify-content: center;
        align-items: center;
    }

    .Menu li {
        width: 100%;
        text-align: center;
    }

    .Menu li a {
        display: block;
        padding: 1.25rem;
        color: white;
        font-size: 1.2rem;
    }
}



/*FRONTEND: HEADER SEKCE 2 ============================================================================== */

.heroSection {
    background-image: url('/HeaderPhoto.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: block;
    margin-inline: auto;
    width: 98%;
    height: 100vh;


}

.Nadpis {
    color: white;
    font-family: "Urbanist", sans-serif;
    text-align: center;
    padding-top: 5vh;
    letter-spacing: 0.2vw;
}


.Containers {
    display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding-top: 3rem;
}

.serviceCard {
  width: 11vw;
  height: 29vh;
  min-width: 140px;
  min-height: 200px;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: white;
  cursor: pointer;
  margin-inline: -1.5rem;
  transform-origin: center;
  transition: transform 0.4s ease, opacity 0.4s ease, z-index 0.4s ease, background 0.4s ease;
}

.serviceCard.active {
  background: rgba(255, 255, 255, 0.25);
}



.serviceCard .icon {
  width: 3.5rem;
  height: 3.5rem;
}

.serviceCard p {
  font-family: "Urbanist", sans-serif;
  font-size: 0.9rem;
}


.Nadpis2 {
    color: white;
    font-family: "Urbanist", sans-serif;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    text-align: center;
    padding-top: 5vh;
    margin: 1vw;
    letter-spacing: 0.08vw;
    font-variation-settings: "wght" 300;

}


.heroSectionServices {

}


.SmallService {
    color: #212838;
    font-family: "Urbanist", sans-serif;
    font-size: clamp(0.9rem, 1.3vw, 1.2rem);
    text-align: center;
    padding-top: 2rem;
    font-variation-settings: "wght" 300;



}


.largeServices {
    color: #212838;
    font-family: "WDXL Lubrifont TC", sans-serif;
    font-size: clamp(1.3rem, 2.1vw, 2rem);
    text-align: center;
    padding-top: 2rem;
    letter-spacing: 0.2vw;


}

@media (max-width: 768px) {
    .largeServices {
        margin-bottom: 2rem;
    }


    .Container,
    .Container2,
    .Container3,
    .Container4,
    .ContainerAnother {
        margin-bottom: 2rem;
}

}


/*TODO: Service container =================================== */

.serviceContainer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;

}

/* ===== Sdílené vlastnosti pro postranní karty ===== */
.Container,
.Container2,
.Container3,
.Container4 {
  width: 13vw;
  height: 45vh;
  min-width: 200px;
  min-height: 280px;
  border-radius: 0.7rem;
  border: 2px solid #212838;
  background: white;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  box-shadow: 0 2px 4px rgba(33, 40, 56, 0.08), 0 12px 28px rgba(33, 40, 56, 0.1);
  transition: background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.Container:hover,
.Container2:hover,
.Container3:hover,
.Container4:hover {
  background: #212838;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(33, 40, 56, 0.15), 0 20px 40px rgba(33, 40, 56, 0.2);
}

/* Individuální odsazení - vlnitý efekt dle návrhu */
.Container  { margin-top: 6vh; }
.Container2 { margin-top: 14vh; }
.Container3 { margin-top: 9vh; }
.Container4 { margin-top: 3vh; }

/* ===== Ikony ===== */
.iconArchitecture {
  width: 8vw;
  height: 15vh;
  min-width: 40px;
  min-height: 40px;
  max-width: 60px;
  max-height: 60px;
  transition: filter 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.Container:hover .iconArchitecture,
.Container2:hover .iconArchitecture,
.Container3:hover .iconArchitecture,
.Container4:hover .iconArchitecture {
  filter: invert(1);
}



/* ===== Texty postranních karet ===== */
.architecture,
.branding,
.development,
.automation {
  align-items: center;
  text-align: center;
  justify-content: center;
  display: flex;
  font-family: "Urbanist", sans-serif;
  font-variation-settings: "wght" 300;
  color: #212838;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.Container:hover .architecture,
.Container2:hover .branding,
.Container3:hover .development,
.Container4:hover .automation {
  color: white;
}
@media (max-width: 768px) {
    .serviceContainer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .Container,
    .Container2,
    .Container3,
    .Container4,
    .ContainerAnother {
        width: 48%;
        margin: 0 !important;
    }
}



/* ===== Prostřední karta (UI/UX) - opačný směr inverze ===== */
.ContainerAnother {
  width: 13vw;
  height: 45vh;
  min-width: 200px;
  min-height: 280px;
  border-radius: 0.7rem;
  border: 2px solid #212838;
  background: #212838;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  margin-top: -8vh;
  box-shadow: 0 8px 20px rgba(33, 40, 56, 0.25), 0 4px 8px rgba(33, 40, 56, 0.15);
  transition: background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ContainerAnother:hover {
  background: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(33, 40, 56, 0.12), 0 20px 40px rgba(33, 40, 56, 0.15);
}

.ContainerAnother .iconArchitecture {
  filter: invert(1);   /* defaultně bílá ikona na tmavém pozadí */
}

.ContainerAnother:hover .iconArchitecture {
  filter: invert(0);   /* na hoveru černá ikona na bílém pozadí */
}

.uiux {
  align-items: center;
  text-align: center;
  justify-content: center;
  display: flex;
  font-family: "Urbanist", sans-serif;
  font-variation-settings: "wght" 300;
  color: white;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ContainerAnother:hover .uiux {
  color: #212838;
}



/* TODO: Progress Work Section ============================================= */

.progressWorkSection {
    padding-top: 7rem;

}


.progressWork {
    background: #212838;
    width: 98%;
    height: 70vh;
    margin-inline: auto;

}

/*TODO: Title section ====================================== */

.SmallWork {
    color: white;
    font-family: "Urbanist", sans-serif;
    font-size: clamp(0.9rem, 1.3vw, 1.2rem);
    text-align: center;
    padding-top: 2rem;
    font-variation-settings: "wght" 300;


}

.titleWorkSection {
    justify-content: center;
    align-items: baseline;
    display: flex;
    gap: 6rem;
    flex-wrap: wrap;
    padding-inline: 1rem;
}

.largeWorkArchitecture,
.largeWorkDesigne,
.largeWorkCode {
    white-space: nowrap;
}



@media (max-width: 600px) {
    .titleWorkSection {
        gap: 1.5rem;
        align-items: center;
    }

    .largeWorkArchitecture,
    .largeWorkDesigne,
    .largeWorkCode {
        white-space: normal;
        flex: 1 1 auto;
        min-width: 0;
    }
}



.largeWorkArchitecture {
    color: white;
    font-family: "WDXL Lubrifont TC", sans-serif;
    font-size: clamp(1.1rem, 2.1vw, 2rem);
    text-align: center;
    padding-top: 2rem;
    letter-spacing: 0.2vw;


}

.largeWorkDesigne {
    color: white;
    font-family: "WDXL Lubrifont TC", sans-serif;
    font-size: clamp(1.1rem, 2.1vw, 2rem);
    text-align: center;
    padding-top: 2rem;
    letter-spacing: 0.2vw;


}

.largeWorkCode {
    color: white;
    font-family: "WDXL Lubrifont TC", sans-serif;
    font-size: clamp(1.1rem, 2.1vw, 2rem);
    text-align: center;
    padding-top: 2rem;
    letter-spacing: 0.2vw;
}


/*TODO: Efektová sekce linie ======================================================= */

.lineWork {
    width: 74%;
    height: 3rem;
    margin-inline: auto;
    display: block;
    margin-top: 7.5rem;



}


/*TODO: Efektová sekce linie ======================================================= */

.workTimeline {
  position: relative;
  width: 74%;
  margin-inline: auto;
  margin-top: 7.5rem;
  padding-bottom: 2.75rem;   /* nahrazuje prostor, co dřív zabíral workLabels */
}



.lineWork {
  display: block;
  width: 100%;
  height: auto;
}

.timelineLight {
  position: absolute;
  top: 30%;
  left: 0;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 12px 4px rgba(255, 255, 255, 0.8), 0 0 28px 10px rgba(255, 255, 255, 0.35);
  pointer-events: none;

}

@media (max-width: 1024px) {
    .timelineLight {
        margin-top: -7.2px;
    }
}

@media (max-width: 768px) {
    .timelineLight {
        margin-top: -10.2px;

    }
}


.workLabels {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 2rem;
  margin-top: 0.75rem;
  overflow: visible;
}

.workLabel {
  position: absolute;
  top: 0;
  font-family: "Urbanist", sans-serif;
  font-size: 1rem;
  font-variation-settings: "wght" 300;
  color: #FFFFFF;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.workLabel[data-label="architecture"] {
  left: 2.97%;
  transform: translateX(-50%) translateY(6px);   /* přidán translateX(-50%) */
}

.workLabel[data-label="uiux"] {
  left: 50.94%;
  transform: translateX(-50%) translateY(6px);
}

.workLabel[data-label="code"] {
  left: 97.03%;
  transform: translateX(-50%) translateY(6px);   /* změněno ze -100% na -50% */
}

/* Aktivní stav */
.workLabel[data-label="architecture"].active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.workLabel[data-label="uiux"].active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.workLabel[data-label="code"].active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/*TODO: Portfolio Hero Section ================================= */

.portfolioSection {
    width: 98%;
}

.PortfolioHeroSection {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 4rem;
}


.SmallHeroPortfolio {
    color: #212838;
    font-family: "Urbanist", sans-serif;
    font-size: clamp(0.9rem, 1.3vw, 1.2rem);
    text-align: center;
    padding-top: 2rem;
    font-variation-settings: "wght" 300;


}

.largePortfolio {
    color: #212838;
    font-family: "WDXL Lubrifont TC", sans-serif;
    font-size: clamp(1.3rem, 2.1vw, 2rem);
    text-align: center;
    padding-top: 2rem;
    letter-spacing: 0.2vw;
}

.ContainerPortfolio {
  position: relative;
  width: 45vw;
  height: 45vh;
  min-width: 200px;
  min-height: 280px;
  border-radius: 0.7rem;
  overflow: hidden;

  padding: 0;
  cursor: pointer;
  margin-top: 2vh;
  box-shadow: 0 8px 20px rgba(33, 40, 56, 0.25), 0 4px 8px rgba(33, 40, 56, 0.15);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ContainerPortfolio:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(33, 40, 56, 0.12), 0 20px 40px rgba(33, 40, 56, 0.15);
}

.PortfolioImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  border-radius: 0.7rem;
  border: 2px solid #212838;
}

.PortfolioOverlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
  color: white;
  background: #212838;
}

.PortfolioTitle {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  font-variation-settings: "wght" 300;
    font-family: "Urbanist", sans-serif;

}

.PortfolioSubtitle {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.85;
  font-variation-settings: "wght" 300;
    font-family: "Urbanist", sans-serif;

}

.ProjectModal {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 32, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

#modalDescription {
  white-space: pre-line;
}

.ProjectModal.isOpen {
  opacity: 1;
  pointer-events: auto;
}

.ProjectModalContent {
  background: white;
  border-radius: 0.9rem;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.ProjectModal.isOpen .ProjectModalContent {
  transform: translateY(0);
}

.ProjectModalClose {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}


/*TODO: FOOOTER SECTION ============================================================ */

.FooterSetup {
    margin-top: 7rem;

}


.FooterSection {
    background: #212838;
    width: 98%;
    height: 93vh;
    margin-inline: auto;



}


.SmallHeroFooter {
    color: white;
    font-family: "Urbanist", sans-serif;
    font-size: clamp(0.9rem, 1.3vw, 1.2rem);
    text-align: center;
    padding-top: 2rem;
    font-variation-settings: "wght" 300;


}

.largePortfolioPortfolio {
    color: white;
    font-family: "WDXL Lubrifont TC", sans-serif;
    font-size: clamp(1.3rem, 2.1vw, 2rem);
    text-align: center;
    padding-top: 2rem;
    letter-spacing: 0.2vw;

}


.FormSection {
    padding-top: 3rem;
}

.FormInput {
    margin-inline: auto;
    flex-direction: column;
    display: flex;
    width: 30%;
}


.nameLabel,
.emailLabel,
.textLabel {
    color: white;
    font-variation-settings: "wght" 300;
    font-family: "Urbanist", sans-serif;
    padding: 0.5rem;
}


.nameInput,
.emailInput,
.TextArea {
    background: none;
    border: 2px solid white;
    border-radius: 0.7rem;
    background: #212838;
    padding: 0.7rem;
    color: white;

}


.submitButton {
    margin-inline: auto;
    background: white;
    font-variation-settings: "wght" 300;
    font-family: "Urbanist", sans-serif;
    color: #212838;
    width: 40%;
    height: 3rem;
    border: none;
    border-radius: 0.7rem;
    margin-top: 1.5rem;




}


.socSites {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding-top: 4rem;

}

.iconSocSite {
    width: 8vw;
    height: 8vh;
    min-width: 40px;
    min-height: 40px;
    max-width: 60px;
    max-height: 60px;



}


.FooterPwd {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding-top: 4rem;
    padding: 0.7rem;
    color: white;
    font-variation-settings: "wght" 300;
    font-family: "Urbanist", sans-serif;
    margin-inline: auto;
    padding-top: 2rem;

}



.odsazení {
    padding-top: 0.8rem;
}

/*TODO: ======================================== RESPONZIVITA ============================================
=============================================================================================================
===========================================================================================================


/* Mobil: 0–767px = výchozí stav, BEZ media query

@media (min-width: 768px)  { /* Tablet

 }


@media (min-width: 1024px) { /* Notebook / malý desktop

}



@media (min-width: 1440px) { /* Velký desktop

 }
*/

@media (max-width: 1024px) {
    .FormInput {
        width: 60%;
    }

    .nameInput,
    .emailInput,
    .TextArea {
        padding: 0.6rem;
        font-size: 0.95rem;
    }

    .nameLabel,
    .emailLabel,
    .textLabel {
        padding: 0.4rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .FormInput {
        width: 85%;
    }

    .nameInput,
    .emailInput,
    .TextArea {
        padding: 0.65rem 0.75rem;
        font-size: 1rem;
        border-radius: 0.5rem;
    }

    .nameLabel,
    .emailLabel,
    .textLabel {
        padding: 0.5rem 0.25rem;
        font-size: 1rem;
    }

    .submitButton {
        width: 60%;
        height: 2.75rem;
    }
}

@media (max-width: 480px) {
    .FormInput {
        width: 92%;
    }

    .submitButton {
        width: 75%;
    }
}



@media (max-width: 768px) {
    .FooterSection {
        min-height: 100vh;
        padding-bottom: 2rem;
    }

    .socSites {
        padding-top: 2.5rem;
    }

    .FooterPwd {
        padding-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .FooterSection {
        min-height: 101vh;
    }

    .socSites {
        padding-top: 2rem;
    }

    .FooterPwd {
        padding-top: 1rem;
    }
}
