


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== ZÁKLAD STRÁNKY ===== */
body {
    font-family: 'Montserrat', sans-serif;
    width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: black;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;

    background-image: url("img/ambarsoft.jpeg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center 65%;   /* ✔ správné místo */

    opacity: 0;
    transform: scale(0.92);           /* lehce menší začátek */

    animation: logoFadeIn 5s cubic-bezier(0.16, 1, 0.3, 1) forwards;

    z-index: -1;
    pointer-events: none;
}





/* ===== MENU ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;

    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    padding: 0 40px;

    gap: 80px;
    z-index: 2;
}

nav a {
    color: rgb(236, 182, 4);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;

    transition: color 0.25s ease;
}

nav a.active {
    color: #8d7712; /* nebo jiný kontrast */
}


/* ===== LANGUAGE SWITCH ===== */
.lang-switch {
    position: fixed;
    top: 15px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.lang-switch img {
    width: 28px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-switch img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ===== HERO (INTRO) ===== */
.hero {
    position: relative;
    z-index: 2;
    max-width: 700px;

    margin: 160px 0 0 120px; /* ← POSUN DOPRAVA */
}

/* ===== HERO TYPOGRAFIE ===== */

.hero h1 {
  font-family: 'Cinzel', serif;
    font-size: 43px;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 30px;
    color: rgb(236, 182, 4);
}

.hero p {
    font-size: 17px;
    line-height: 1.7;
    color: #ddd;
}

/* ===== ABOUT TYPOGRAFIE ===== */
#about h2 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-top: 60px;
    margin-bottom: 20px;
}

#about p {
    font-size: 17px;
    line-height: 1.7;
    max-width: 720px;
    color: #ddd;
    white-space: pre-line;
}


/* ===== SEKCE (ABOUT + PROJECTS) ===== */
#about,
#projects {
    display: none;
    max-width: 720px;
    margin: 100px 0 240px 120px;

    opacity: 0;
    transform: translateY(10px);
}

#about.show,
#projects.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
    
}
/* ===== SEKCE – DEKORATIVNÍ OSA ===== */
#about,
#projects {
    border-left: 1px solid rgba(236, 182, 4, 0.25);
    padding-left: 40px;
}

/* ===== PROJECTS (VNITŘNÍ STRUKTURA) ===== */
#projects {
    max-width: 720px;
    margin: 180px 0 240px 120px;
}

.project {
    margin-bottom: 48px;
}

.project h3 {
    font-size: 20px;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    color: #fff;
}

.project-desc {
    color: #ccc;
    max-width: 400px;      /* text do sloupce */
    line-height: 1.55;     /* klidnější rytmus */
    margin-bottom: 6px;
}


.project-status {
    font-size: 12px;
    letter-spacing: 0.12em;
    color: rgba(236,182,4,0.8);
    text-transform: uppercase;
}
#contact {
    display: none;
    max-width: 720px;
    margin: 180px 0 240px 120px;

    opacity: 0;
    transform: translateY(10px);

    border-left: 1px solid rgba(236, 182, 4, 0.25);
    padding-left: 40px;
}

#contact.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-mail a {
    color: rgb(236, 182, 4);
    text-decoration: none;
    font-weight: 600;
}

.contact-mail a:hover {
    text-decoration: underline;
}


@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== PROJECT VIEWER (PRAVÁ STRANA) ===== */
#project-viewer {
    position: fixed;
    top: 120px;
    right: 80px;

    width: 420px;
    padding: 10px;

    display: none;
    flex-direction: column;
    gap: 12px;

    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(236,182,4,0.25);
}

.project-img {
    width: 100%;
    height: auto;
    object-fit: contain;
     cursor: pointer;   /* 👈 IKONA RUKY */
}
/* ===== PROJECT TITLES ===== */
.project h3 {
    color: #ececec;
    cursor: pointer;
    transition: color 0.2s ease;
}

/* hover */
.project h3:hover {
    color: #ecb604; /* zlatá / accent */
}

/* aktivní (kliknutý projekt) */
.project.active h3 {
    color: #ecb604;
}
/* ===== LIGHTBOX ===== */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
}

#lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}
