@import url('https://fonts.googleapis.com/css2?family=Noto+Znamenny+Musical+Notation&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-image: radial-gradient(circle at 25% 25%, rgba(180, 140, 80, 0.07) 0%, transparent 60%), radial-gradient(circle at 75% 35%, rgba(200, 160, 90, 0.06) 0%, transparent 55%), radial-gradient(circle at 35% 75%, rgba(170, 130, 70, 0.05) 0%, transparent 50%), repeating-linear-gradient(40deg, rgba(255, 255, 255, 0.009) 0px, transparent 2px, transparent 26px), repeating-linear-gradient(-50deg, rgba(255, 255, 255, 0.007) 0px, transparent 1.5px, transparent 24px), linear-gradient(135deg, #0f1116 0%, #1a1d24 100%);
    background-image: radial-gradient(circle at 25% 25%, rgba(180, 140, 80, 0.07) 0%, transparent 60%), radial-gradient(circle at 75% 35%, rgba(200, 160, 90, 0.06) 0%, transparent 55%), radial-gradient(circle at 35% 75%, rgba(170, 130, 70, 0.05) 0%, transparent 50%), repeating-linear-gradient(40deg, rgba(255, 255, 255, 0.009) 0px, transparent 2px, transparent 26px), repeating-linear-gradient(-50deg, rgba(255, 255, 255, 0.007) 0px, transparent 1.5px, transparent 24px), linear-gradient(135deg, #0f1116 0%, #1a1d24 100%);
    background-size: 650px 650px, 820px 820px, 480px 480px, auto, auto, cover;
    background-blend-mode: overlay, overlay, overlay, normal;
    opacity: 0.94;
}

/* NAVBAR + JEHO CHOVÁNÍ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center; 
    gap: 40px;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); 
    transition: all 0.3s ease;
}

.navbar a {
    color: #E6E6E6;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.35s ease;
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 50%;
    background: #f0d9a0;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar a:hover {
    color: #f0d9a0;
    text-shadow: 0 0 10px rgba(240, 217, 160, 0.6);
}

.navbar a:hover::after {
    width: 80%;
}


/* TEXTY A JEJICH VLASTNOSTI */
h1 {
    font-size: clamp(4.2rem, 8vw, 6.2rem);
    margin: 0 0 12px;
    color: #f0d9a0;
    text-shadow: 0 0 20px rgba(240, 217, 160, 0.3);
}

h2 {
    font-size: clamp(5rem, 15vw, 15rem);
    color: #f0d9a0;
    text-shadow: 0 0 20px rgba(240, 217, 160, 0.3);
}

h2 :hover {
    text-shadow: 0 0 8px rgba(240, 217, 160, 0.5), 0 4px 12px rgba(240, 217, 160, 0.35);
}

h4 {
    font-size: small;
}


/* CHOVÁNÍ OBSAHU */
.main {
    text-align: center;
    font-family: Noto Znamenny Musical Notation;
    /* slideshow efekt */
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.section {
    /* slideshow efekt */
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: clamp(2.3rem, 4vw, 6rem);
    padding: 20px;
    box-sizing: border-box;
    position: relative; 
    overflow: hidden;
    z-index: 1;
}

.section > div:first-child, .section > h2 {
    position: relative; 
    z-index: 10;
    pointer-events: none; }

.section > div, [class^="img"] {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

.section.is-visible > div, 
.section.is-visible [class^="img"] {
    opacity: 0.9;
    filter: blur(0px);
    transform: translateY(0) scale(1);
}


/* CHOVÁNÍ A UMÍSTĚNÍ OBRÁZKŮ */
[class^="img"] {
    position: absolute;
    z-index: 1; 
    opacity: 0;
    filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate(-50%, -45%) scale(1.1);
    transition: 
        opacity 2.5s cubic-bezier(0.05, 0.7, 0.1, 1),
        transform 2.5s cubic-bezier(0.05, 0.7, 0.1, 1),
        filter 2.5s cubic-bezier(0.05, 0.7, 0.1, 1);
    transition-delay: 0.3s;
    will-change: transform, opacity;
}

[class^="img"] img {
    max-width: 550px; 
    height: auto;
}

/* OBRÁZKY PO ANIMACI/NAČTENÍ */
.section.is-visible [class^="img"] {
    opacity: 0.3; 
}

.section.is-visible .img1 { 
    top: 50%; left: 20%; transform: translate(-50%, -50%) rotate(-15deg); 
}

.section.is-visible .img2 { 
    top: 50%; right: 20%; transform: translate(50%, -50%) rotate(15deg); 
}

.section.is-visible .img3 { 
    opacity: 1; 
    transform: translateY(0); 
}

.section.is-visible .img4 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    opacity: 0.2;
    filter: blur(0px);
}

.section.is-visible .img6 {
    top: 50%;
    left: 15%;
    transform: translate(-50%, -50%) rotate(-20deg);
    opacity: 0.3;
    filter: blur(0px);
}

.section.is-visible .img7 {
    top: 55%;
    right: 15%;
    transform: translate(50%, -50%) rotate(20deg);
    opacity: 0.3;
    filter: blur(0px);
}

.img1 {
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%) rotate(-15deg);
}

.img2 {
    top: 50%;
    right: 20%;
    transform: translate(50%, -50%) rotate(15deg);
}

.img3 {
    position: static; 
    transform: none;
    opacity: 1;
    margin-top: 20px;
}
.img3 img { max-width: 800px; }

.img4 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
}

.img6 {
    top: 50%;
    left: 15%;
    transform: translate(-50%, -50%) rotate(-20deg);
}

.img7 {
    top: 55%;
    right: 15%;
    transform: translate(50%, -50%) rotate(20deg);
}


/* VALSTNOSTI TEXTŮ */
.text1, .text3, .text5, .text7, .text9 {
    color: aliceblue;
    text-shadow: 0 0 20px #a07cff;
}   

.text2, .text4, .text6, .text8, .text10 {
    color: aliceblue;
    text-shadow: 0 0 20px #5eb8ff;
}


/* FORMULÁŘ */
.form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    padding: 40px;
    margin-bottom: 60px;
    border-radius: 20px;
    border: 1px solid rgba(240, 217, 160, 0.2);
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 100;
    pointer-events: all;        
}

.section.text10 {
    z-index: 50;
}

.form-group {
    width: 100%;
}

input[type="text"],
input[type="url"],
textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-bottom: 1px solid rgba(240, 217, 160, 0.4);
    color: white;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
    outline: none;
}

input:focus, textarea:focus {
    border-bottom: 1px solid #f0d9a0;
    background: rgba(240, 217, 160, 0.05);
}

input[type="file"] {
    display: none;
}

.custom-file-upload {
    display: block;
    padding: 10px;
    border: 1px dashed rgba(240, 217, 160, 0.5);
    cursor: pointer;
    color: rgba(240, 217, 160, 0.8);
    transition: 0.3s;
}

.custom-file-upload:hover {
    background: rgba(240, 217, 160, 0.1);
    color: #f0d9a0;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid #f0d9a0;
    color: #f0d9a0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-btn:hover {
    background: #f0d9a0;
    color: black;
    box-shadow: 0 0 20px rgba(240, 217, 160, 0.4);
}

input, textarea, button, .custom-file-upload {
    pointer-events: all !important;
    position: relative;
    z-index: 101;
}

.text10 footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(240, 217, 160, 0.3);
    color: #f0d9a0;
    z-index: 110;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 1.2s; 
}

.section.text10.is-visible footer {
    opacity: 0.6;
    transform: translateY(0);
}

.text10 footer p {
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin: 0;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}


/* RESPONZIVITA PRO TELEFONY */
@media (max-width: 768px) {
    .navbar {
        gap: 65px;
        padding: 10px 5px;
        flex-wrap: wrap;
    }
    
    .navbar a {
        font-size: 1rem;
    }

    [class^="img"] {
        position: absolute !important; 
        z-index: 1; 
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        pointer-events: none; 
    }

    [class^="img"] img {
        max-width: 70%;
        height: auto;
    }

    .section.is-visible .img1, 
    .section.is-visible .img6,
    .section.is-visible .img7 {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(5deg) !important;
        opacity: 0.2 !important; 
    }

    .section.is-visible .img2 {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-5deg) !important;
        opacity: 0.2 !important;
    }

    .section.is-visible .img3 {
        position: relative !important;
        opacity: 0.9 !important;
        transform: none !important;
        margin-top: 20px;
    }
    .section.is-visible .img3 img {
        max-width: 100%;
    }

    .section > div, .section > h2 {
        position: relative;
        z-index: 10;
        width: 100%;
        word-wrap: break-word; 
    }

    .form-container {
        padding: 20px;
        width: 95%;
        box-sizing: border-box;
    }
}

/* RESPONZIVITA PRO 2K A 4K */
@media (min-width: 2000px) {
    .form-container {
        max-width: 800px;
    }
    
    .navbar a {
        font-size: 1.5rem;
    }
    
    [class^="img"] img {
        max-width: 800px;
    }
}