* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: "Rubik", sans-serif;
    background-color: #1e1e1e;
    color: white;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Header background */
.head-bg {
    position: relative;
    width: 100%;
    height: 45vh; 
    background: url("image (1).png") no-repeat center center;
    background-size: cover;
    overflow: hidden;
    z-index: 1; 
}

.head-bg::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 33%; 
    background: linear-gradient(to bottom, rgba(30,30,30,0) 0%, rgba(30,30,30,1) 100%);
    pointer-events: none;
    z-index: 3; 
}

.head-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 40%);
    pointer-events: none;
    z-index: -2; 
}

.content-wrapper {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2; 
}

.header {
    width: 100%;
    padding: 0; 
    position: relative;
    z-index: 10; 
}

/* container logo a nav */
.header-logo {
    display: flex;
    align-items: center; 
    gap: 60px; 
    width: 100%; 
    justify-content: flex-start; 
    padding: 15px 0; 
}

.logo {
    height: 70px;
    width: auto;
    transform: none; 
}

/* container nav */
.nav-container-pc {
    display: flex;
    align-items: center; 
    flex-grow: 0; 
    justify-content: flex-start;
}


.navbar {
    display: flex;
}

/* Seznam odkazů */
.nav-list {
    list-style: none;
    display: flex;
    gap: 40px;
    padding: 0;
    margin: 0; 
}
.nav-list a {
    position: relative; 
    text-decoration: none;
    font-family: "Rubik", sans-serif;
    font-weight: 470;
    font-size: 1.3rem;
    color: white;
    transition: color 0.3s ease;
}

.nav-list i {
    margin-right: 0.3em;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px; 
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #868686; 
    transition: width 0.25s ease, background 0.25s ease;
}

.nav-list a:hover {
    color: #868686;
}

.nav-list a:hover::after {
    width: 40%; 
}

.hamburger {
    display: none; 
}

.nav-overlay {
    display: none;
}

/* OPRAVA: Snížení marginu, aby scroll zastavil správně u tlačítka */
#section-join {
 scroll-margin-top: 140px;
}

/* Pokud bys chtěl animaci scrollu ještě více kontrolovat přes JS, 
   zde je třída pro odkaz, který ten scroll spouští */
.scroll-link {
    cursor: pointer;
}

/* Zajištění, že kontejner tlačítka má dost místa pro vyniknutí po doscrolování */
.join-button-container {
    display: flex;
    justify-content: center;
    margin: 60px 0;
    padding-bottom: 20px;
}

/* content */
.content {
    padding: 40px 0 60px;
    text-align: left;
    position: relative;
    z-index: 4;
    margin-top: -33vh; 
}

.introonas {
    font-size: 55px;
    background-color: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.919);
    border-radius: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.75);
    padding: 7px;
}

.content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: "Rubik", sans-serif;
}

.content p {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 1300px;
}

.logovelke {
    top: 100px;
    width: 400px;
    max-width: 100%; 
    height: auto;
    margin-top: -57px; 
    transform: translateY(0px);
    animation: float 6s ease-in-out infinite;

}

/* Animace "float" pro logo */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-40px); }
    100% { transform: translateY(0px); }
}

.image-block {
    position: relative;
    display: flex;
    flex-direction: column; /* Slider bude nad logem */
    align-items: center;    /* Vycentrování vodorovně */
}

.switch-container {
    position: absolute;
    top: -82px;
    z-index: 10; 
}

.glass-switch {
    position: relative;
    display: flex;
    align-items: center;
    width: 280px;
    height: 54px;
    padding: 4px; 
    background: rgba(30, 30, 30, 0.5); 
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    border-radius: 20px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.switch-option {
    flex: 1; 
    text-align: center;
    z-index: 2; 
    text-decoration: none;
    font-family: "Rubik", sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.644); 
    transition: color 0.3s ease;
    pointer-events: auto;
}

.switch-option:not(.active):hover {
    color: rgba(255, 255, 255, 0.8);
}

.switch-option.active {
    color: #1e1e1e;
    font-weight: 600;
}

.switch-glider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px); 
    height: calc(100% - 8px);
    background: rgba(220, 220, 220, 0.993);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    z-index: 1; 
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
}

/* Výchozí stav (Public) */
.glass-switch .switch-glider {
    transform: translateX(0%);
}

/* Stav po kliknutí na Whitelist (přidáme třídu přes JS) */
.glass-switch.is-whitelist .switch-glider {
    transform: translateX(calc(100% + 0px));
}

/* Stav po kliknutí na Public */
.glass-switch.is-public .switch-glider {
    transform: translateX(0%);
}

.text-left {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-top: 30px;
}

.podnadpis {
    width: 100%; 
    margin-top: 50px; 
    margin-bottom: 50px; 
    font-family: "Rubik", sans-serif;
    font-weight: 550;
    color: white;
    transition: color 0.3s ease;
    text-align: center;
    justify-content: center;
}
.podnadpis::after {
    background: #868686; 
    transition: width 0.25s ease, background 0.25s ease;
}

.card-container1 {
    justify-content: flex-start; /* centr doleva */
    margin-left: 110px;
}

.card1{
  width: 290px;
  max-height: 250px;
  background: rgba(41, 41, 42, 0.938);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, background-color 0.3s ease-out;
}
.card1:hover {
    transform: scale(1.02); 
    box-shadow: 0px 0px 15px rgb(35, 35, 36);
    animation: none;
}
.clean-icon {
    color: white; 
    filter: none;
    margin: center;
    display: inline-block;
    font-size: 40px;
    
}

.card1text1 {
    color: #005effe1;
    font-size: 90px;
    margin-top: -10px;
    font-weight: normal;
}

.card1text2 {

margin-top: -10px;

}
.card-container2 {
    display: flex;
    justify-content: center; 
    margin-top: -185px;

}
.card2 {
  width: 290px;
  max-height: 250px;
  background: rgba(41, 41, 42, 0.938);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, background-color 0.3s ease-out;
}
.card2:hover {
    transform: scale(1.02); 
    box-shadow: 0px 0px 15px rgb(35, 35, 36);
    animation: none;
}
.clean-icon {
    color: white; 
    filter: none;
    margin: center;
    display: inline-block;
    font-size: 40px;
    
}

.card2text1 {
    color: #005effe1;
    font-size: 90px;
    margin-top: -10px;
    font-weight: normal;
}

.card2text2 {

margin-top: -10px;
padding: 2%;


}

.card-container3 {
    justify-content: flex-end; /* centr doprava */
    margin: -185px 0px 0px 900px;
}

.card3{
  width: 290px;
  max-height: 250px;
  background: rgba(41, 41, 42, 0.938);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
 transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, background-color 0.3s ease-out;

}

.card3:hover {
    transform: scale(1.02); 
    box-shadow: 0px 0px 15px rgb(35, 35, 36);

    animation: none;
}
.clean-icon {
    color: white; 
    filter: none;
    margin: center;
    display: inline-block;
    font-size: 40px;
    
}

.card3text1 {
    color: #005effe1;
    font-size: 90px;
    margin-top: -10px;
    font-weight: normal;
}

.card3text2 {

margin-top: -10px;
padding: 2%;

}

.join-button-container {
    display: flex;
    justify-content: center; 
    width: 100%;
    margin: 60px 0;
    
}

.join-button {
    text-decoration: none;
    display: inline-block; 
    cursor: pointer;
    font-size: 2.2rem;
    font-weight: bold;
    color: white;
    background-color: #005effe1;
    box-shadow: 0 0 20px rgba(0, 94, 255, 0.8);
    padding: 15px 40px;
    border-radius: 10px;
 transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, background-color 0.3s ease-out;
  animation: linear ;
}

.join-button:hover {
    transform: scale(1.05); 
    box-shadow: 0 0 27px rgba(0, 94, 255, 1);
    background-color: #007bff;
    animation: none;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(0, 94, 255, 0.7);
    }
    100% {
        box-shadow: 0 0 15px rgba(0, 94, 255, 1);
    }
}

.aktuality {

    position: relative;
    margin: auto;
    width: 650px;
    justify-content: center;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.973);
    border-radius: 13px;
    box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.75);
    padding: 2px;
}

.new-footer {
    background-color: #000000;
    padding: 80px 0 60px 0;
    width: 100%;
    color: #ffffff;
    font-family: 'Rubik', sans-serif;
}

.footer-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 10px;
}

.red-line {
    width: 45px;
    height: 3px;
    background-color: #ff0000;
    margin-bottom: 25px;
    border-radius: 2px;
}

.footer-column a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.footer-column a:hover {
    color: #ff0000; /* Při najetí na odkaz zčervená */
}

/* Ikony sociálních sítí bez kruhů */
.social-link-icon {
    font-size: 24px; /* Velikost ikony */
    color: #ffffff !important;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
}

.social-link-icon:hover {
    transform: scale(1.2);
    color: #ff0000 !important;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    width: 180px;
}

.stat-text {
    font-size: 15px;
    color: #ffffff;
}

/* Styl pro proklikávací "Web vytvořil: Adas" */
.footer-credits {
    margin-top: 70px;
    text-align: center;
}

.creator-link {
    text-decoration: none;
    display: inline-block;
}

.creator-link h2 {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    transition: 0.3s ease;
}

.creator-link:hover h2 {
   
    transform: scale(1.02);
}

.copyright {
    text-align: center;
    font-size: 20px;
}
@media (max-width: 768px) {
    .footer-links-grid { flex-direction: column; align-items: center; }
    .footer-column { margin-bottom: 30px; }
    .creator-link h2 { font-size: 24px; }
}
/* ==================================================== */
/* MOBILNÍ VERZE (max-width: 768px) - FINÁLNÍ FIXY VRSTEV A ANIMACE */
/* ==================================================== */
@media (max-width: 768px) {
    
    /* 1. Header: Fixní nahoře a Z-INDEX */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 15px 20px;
        
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
        border: none;
        box-shadow: none;
        
        /* ZMĚNA: Agresivní Z-INDEX a Vytvoření nové vrstvy (stacking context) */
        z-index: 100000; 
        /* Nastavíme transform pro vytvoření nového Stacking Contextu */
        transform: translateZ(0); 
    }

    .header-logo {
        width: 100%;
        justify-content: space-between;
        gap: 0;
    }

    .logo {
        height: 50px;
        position: relative;
        z-index: 100001; 
    }

    /* Skryjeme PC navigaci */
    .nav-container-pc { display: none; }

    /* 2. Hamburger Ikona */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        cursor: pointer;
        position: relative;
        /* ZMĚNA: Nejvyšší Z-index */
        z-index: 100001; 
    }

    .hamburger .line {
        width: 100%;
        height: 3px;
        background-color: white;
        border-radius: 4px;
        transition: all 0.4s ease-in-out;
    }

    .hamburger.active .line:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger.active .line:nth-child(2) { opacity: 0; }
    .hamburger.active .line:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    /* 3. Full-screen Menu Overlay */
    .nav-overlay {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        
        background-color: rgba(30, 30, 30, 0.95); 
        
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        
        padding-top: 80px; 

        /* ANIMACE: Zajistíme, že transform je konzistentní */
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        
        /* ZMĚNA: Z-index pod headerem */
        z-index: 99999; 
    }

    .nav-overlay.active {
        /* ZMĚNA: Pouze posun X pro konzistentní animaci (žádný posun Y) */
        transform: translateX(0);
    }

    .nav-list-mobile {
        list-style: none;
        text-align: center;
        width: 100%;
        padding: 0;
    }

    .nav-list-mobile li {
        margin: 25px 0;
        opacity: 0;
        transform: translateY(20px);
        transition: 0.3s ease;
    }

    .nav-overlay.active .nav-list-mobile li { opacity: 1; transform: translateY(0); }
    .nav-overlay.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-overlay.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-overlay.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-overlay.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-overlay.active li:nth-child(5) { transition-delay: 0.5s; }

    .nav-link {
        font-size: 2rem;
        color: white;
        text-decoration: none;
        font-weight: 500;
    }

    /* PŮVODNÍ STYLY OBSAHU - ZŮSTÁVAJÍ PŮVODNÍ */
    .content-wrapper {
        padding: 0 15px;
    }
    
    .head-bg {
        height: 120vh; 
        margin-top: 0;
        background-position: center center;
    }
    
    .head-bg::after {
        height: 50%;
    }
/* Responzivita pro mobily */
@media (max-width: 768px) {
    .footer-links-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-column {
        margin-bottom: 30px;
    }
    .footer-credits h2 {
        font-size: 24px;
    }
}
    .content {
        margin-top: -100vh; 
        padding-top: 80px; 
        z-index: 4; 
        /* OPRAVA: Odstraněno pointer-events: none, aby šlo na mobilu klikat */
        pointer-events: none;
    }
/* ALTERNATIVA PRO MOBILNÍ ZAŘÍZENÍ */
@media (max-width: 768px) {
    .glass-switch {
        width: 240px;
        height: 50px;
        pointer-events: auto;
    }
}
    .text-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .text-block { width: 100%; order: 1; }
    .image-block { width: 100%; order: 2; margin-top: 60px; }
    .logovelke { width: 70%; margin-top: 0; }
    .introonas { font-size: 1.2rem; }
    .content h1 { font-size: 2rem; }
}

@media (orientation: portrait) { 
    /* PŮVODNÍ HODNOTY */
    .head-bg {
        height: 103vh;
        background-position: center center;
    }

    .head-bg::after {
        height: 45%;
    }
}