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

body {
    font-family: 'Arial', sans-serif;
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    line-height: 1.6;
}

/* ===== NAVIGACE ===== */
.navbar {
    background: rgba(0, 0, 0, 0.7);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 1rem 1.8rem;
    border: 2px solid transparent;
    border-radius: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: rgba(0, 255, 136, 0.3);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-link:hover {
    color: #00ff88;
    border-color: #00ff88;
    box-shadow: 0 0 20px #00ff88,
                0 0 40px #00ff88,
                inset 0 0 20px rgba(0, 255, 136, 0.1);
    transform: translateY(-3px);
}

.nav-link:active {
    color: #00ff88 !important;
    border-color: #00ff88 !important;
    box-shadow: 0 0 15px #00ff88,
                inset 0 0 10px rgba(0, 255, 136, 0.2) !important;
    transform: scale(0.95) !important;
    transition: all 0.1s ease !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

/* Aktivní stav navigace */
.nav-link.active {
    color: #00ff88;
    border-color: #00ff88;
    box-shadow: 0 0 15px #00ff88,
                inset 0 0 10px rgba(0, 255, 136, 0.2);
    background: rgba(0, 255, 136, 0.1);
}

.nav-link.active:hover {
    color: #00ff88;
    border-color: #00ff88;
    box-shadow: 0 0 20px #00ff88,
                0 0 40px #00ff88,
                inset 0 0 20px rgba(0, 255, 136, 0.1);
    transform: translateY(-3px);
}

.nav-link.active:active {
    transform: scale(0.95);
}

/* ===== HLAVNÍ OBSAH ===== */
.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 120px 20px 50px;
}

.text-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.text-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.text-container h1 {
    color: #2c5530;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 400;
}

.text-container h2 {
    color: #2c5530;
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
    border-bottom: 2px solid #00ff88;
    padding-bottom: 0.5rem;
}

.text-container p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
}

.text-container .highlight {
    background: rgba(0, 255, 136, 0.1);
    padding: 1.5rem;
    border-left: 4px solid #00ff88;
    border-radius: 5px;
    font-weight: bold;
    font-style: italic;
    margin: 2rem 0;
}

.text-container .closing {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c5530;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #00ff88;
}

/* ===== HOME PAGE ===== */
.home-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 0 20px;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.7);
    font-weight: 300;
}

.hero-message {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.hero-message:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.hero-message p {
    font-size: 1.4rem;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-block;
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    border: 2px solid #00ff88;
    border-radius: 30px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: rgba(0, 255, 136, 0.3);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-btn:hover {
    background: #00ff88;
    color: #000;
    box-shadow: 0 0 40px #00ff88;
    transform: translateY(-3px);
}

.hero-btn:active {
    background: #00ff88 !important;
    color: #000 !important;
    box-shadow: 0 0 20px #00ff88 !important;
    transform: scale(0.95) !important;
}

/* ===== GALERIE ===== */
.gallery-container {
    padding: 120px 20px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.image-frame {
    position: relative;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    margin: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gallery-image {
    width: 100%;
    height: 400px; /* KONSTANTNÍ VÝŠKA */
    object-fit: contain; /* ZACHOVÁ POMĚR STRAN */
    border-radius: 8px;
    display: block;
    background: #f8f8f8; /* Pozadí pro obrázky s průhledností */
}

.image-caption {
    text-align: center;
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 5px;
    color: #2c5530;
    font-weight: bold;
    font-size: 1.1rem;
    border: 1px solid rgba(0, 255, 136, 0.2);
    flex-shrink: 0;
}

/* ===== KONTAKT ===== */
.contact-container {
    padding: 120px 20px 50px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c5530;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.submit-btn {
    background: #00ff88;
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    -webkit-tap-highlight-color: rgba(0, 255, 136, 0.3);
}

.submit-btn:hover {
    background: #00cc66;
    box-shadow: 0 0 20px #00ff88;
    transform: translateY(-2px);
}

.submit-btn:active {
    background: #00cc66 !important;
    box-shadow: 0 0 15px #00ff88 !important;
    transform: scale(0.98) !important;
}

.contact-info {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    text-align: center;
}

/* ===== POČÍTADLO NÁVŠTĚV - OPRAVDOVÝ PENTAGRAM ===== */
.visit-counter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    transition: all 0.4s ease;
}

.visit-counter:hover {
    transform: scale(1.1);
}

.pentagram-container {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pentagram {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 30s linear infinite;
}

.star {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #00ff88;
    clip-path: polygon(
        50% 0%,
        61% 35%,
        98% 35%,
        68% 57%,
        79% 91%,
        50% 70%,
        21% 91%,
        32% 57%,
        2% 35%,
        39% 35%
    );
    opacity: 0.3;
    box-shadow: 0 0 20px #00ff88,
                inset 0 0 10px #00ff88;
}

.circle {
    position: absolute;
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border: 2px solid #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 15px #00ff88,
                inset 0 0 10px #00ff88;
    opacity: 0.5;
}

.counter-number {
    color: #00ff88;
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff88,
                 0 0 20px #00ff88;
    z-index: 2;
    background: rgba(0, 0, 0, 0.9);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #00ff88;
    box-shadow: 0 0 15px #00ff88,
                inset 0 0 10px rgba(0, 255, 136, 0.3);
}

/* Animace rotace */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Pulsování čísla */
@keyframes pulse-glow {
    0% {
        text-shadow: 0 0 10px #00ff88,
                     0 0 20px #00ff88;
        box-shadow: 0 0 15px #00ff88,
                   inset 0 0 10px rgba(0, 255, 136, 0.3);
    }
    50% {
        text-shadow: 0 0 15px #00ff88,
                     0 0 30px #00ff88,
                     0 0 40px #00ff88;
        box-shadow: 0 0 25px #00ff88,
                   inset 0 0 15px rgba(0, 255, 136, 0.5);
    }
    100% {
        text-shadow: 0 0 10px #00ff88,
                     0 0 20px #00ff88;
        box-shadow: 0 0 15px #00ff88,
                   inset 0 0 10px rgba(0, 255, 136, 0.3);
    }
}

.counter-number {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ===== PORTRÉT S OBTÉKAJÍCÍM TEXTEM ===== */
.portrait-section {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.portrait {
    width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid #00ff88;
    flex-shrink: 0;
}

.portrait-text {
    flex: 1;
}

.portrait-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
}

/* ===== RESPONZIVNÍ DESIGN ===== */
@media (max-width: 768px) {
    /* Navigace - kompaktní */
    .navbar {
        padding: 0.8rem 0;
        height: auto;
        min-height: 60px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
        min-height: 40px;
        letter-spacing: 1px;
        border-radius: 20px;
    }
    
    /* Upravíme padding obsahu pro mobil */
    .content-wrapper {
        padding: 80px 15px 30px;
    }
    
    .home-hero {
        padding-top: 60px;
        min-height: calc(100vh - 60px);
    }
    
    .gallery-container,
    .contact-container {
        padding: 80px 15px 30px;
    }
    
    /* Text container */
    .text-container {
        padding: 1.5rem;
        margin: 0 10px;
    }
    
    .text-container h1 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .text-container p {
        font-size: 0.95rem;
    }
    
    /* Home page */
    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
        margin-bottom: 1.5rem;
    }
    
    .hero-message {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-message p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 200px;
    }
    
    /* Galerie */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-image {
        height: 350px; /* Menší výška na mobilech */
    }
    
    .image-frame {
        padding: 1rem;
        margin: 0.8rem;
    }
    
    /* Kontakt */
    .contact-form {
        padding: 2rem;
    }
    
    /* Počítadlo */
    .visit-counter {
        bottom: 15px;
        right: 15px;
    }
    
    .pentagram-container {
        width: 70px;
        height: 70px;
    }
    
    .counter-number {
        font-size: 1.1rem;
        width: 40px;
        height: 40px;
    }
    
    /* Portrét */
    .portrait-section {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .portrait {
        width: 250px;
        margin: 0 auto;
    }
    
    .portrait-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 0;
        min-height: 50px;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
        min-height: 35px;
    }
    
    .content-wrapper {
        padding: 70px 10px 20px;
    }
    
    .home-hero {
        padding-top: 50px;
        min-height: calc(100vh - 50px);
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .text-container h1 {
        font-size: 1.4rem;
    }
    
    .portrait {
        width: 200px;
    }
    
    .gallery-image {
        height: 300px; /* Ještě menší na malých mobilech */
    }
    
    .visit-counter {
        bottom: 10px;
        right: 10px;
    }
    
    .pentagram-container {
        width: 60px;
        height: 60px;
    }
    
    .counter-number {
        font-size: 1rem;
        width: 35px;
        height: 35px;
    }
}

/* ===== ANIMACE ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-container,
.gallery-item,
.contact-form {
    animation: fadeIn 0.8s ease-out;
}

/* ===== SCROLL BAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: #00ff88;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc66;
}

/* ===== SAFARI OPRAVY - VYPNUTÍ HOVER EFEXTŮ NA MOBILU ===== */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover {
        color: #fff;
        border-color: transparent;
        box-shadow: none;
        transform: none;
    }
    
    .nav-link.active:hover {
        color: #00ff88;
        border-color: #00ff88;
        box-shadow: 0 0 15px #00ff88,
                    inset 0 0 10px rgba(0, 255, 136, 0.2);
        transform: none;
    }
    
    .hero-btn:hover {
        background: rgba(0, 255, 136, 0.2);
        color: #00ff88;
        box-shadow: none;
        transform: none;
    }
    
    .text-container:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .visit-counter:hover {
        transform: none;
    }
}
/* ===== OPRAVA PRO IPHONE ===== */
@supports (-webkit-touch-callout: none) {
    body {
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    }
    
    .navbar {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .content-wrapper,
    .gallery-container,
    .contact-container,
    .home-hero {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

/* Zajistíme, že obsah bude mít 100% šířku */
html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    position: relative;
}
