/* Základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: #000000;
    color: #ffffff;
}

::-moz-selection {
    background: #000000;
    color: #ffffff;
}

body {
    font-family: 'Figtree', sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Navigace */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    background-color: #ffffff;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.nav-bar ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    margin: 0 auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.nav-bar ul li {
    margin-right: 25px;
    margin-left: 25px;
}

.nav-bar ul li a {
    text-decoration: none;
    color: #000000;
    font-size: 14px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 0.9em;
    transition: all 0.4s ease;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.nav-bar ul li:nth-child(1) a { animation-delay: 0.1s; }
.nav-bar ul li:nth-child(2) a { animation-delay: 0.2s; }
.nav-bar ul li:nth-child(3) a { animation-delay: 0.3s; }
.nav-bar ul li:nth-child(4) a { animation-delay: 0.4s; }
.nav-bar ul li:nth-child(5) a { animation-delay: 0.5s; }

.nav-bar ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: #000000;
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.nav-bar ul li a:hover::after {
    width: 90%;
}

.nav-bar ul li a:hover {
    color: #000000;
    text-shadow: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hero sekce */
.hero-section {
    background: #2b2b2b;
    background-size: cover;
    background-position: center;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 6rem 2rem;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.05s forwards;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.2s forwards;
}

/* Galerie sekce */
.gallery-section {
    padding: 60px 20px;
    position: relative;
    z-index: 2;
    background-color: #f8f9fa;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.3s forwards;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.4s forwards;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #C95603;
    background: none;
    color: #C95603;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #C95603;
    color: white;
}

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

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:hover .gallery-item-info {
    transform: translateY(0);
}

.gallery-item-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.gallery-item-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Reference sekce */
.testimonials-section {
    padding: 60px 20px;
    background-color: #f5f5f5;
    position: relative;
    z-index: 1;
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    opacity: 0;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.testimonial-card:nth-child(1) { animation-delay: 0.45s; }
.testimonial-card:nth-child(2) { animation-delay: 0.5s; }
.testimonial-card:nth-child(3) { animation-delay: 0.55s; }

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-author {
    color: #C95603;
    font-weight: 500;
}

/* CTA sekce */
.cta-section {
    background-color: #2b2b2b;
    color: #C95603;
    text-align: center;
    padding: 4rem 2rem;
    opacity: 0;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.cta-section h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    opacity: 0;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.65s forwards;
}

.cta-section p {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: #C95603;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transform: scale(1);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.75s forwards;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background: #2b2b2b;
    padding: 10px;
    text-align: center;
    color: white;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responzivní design */
@media (max-width: 768px) {
    .nav-bar ul {
        flex-direction: column;
        text-align: center;
    }

    .nav-bar ul li {
        margin: 10px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        position: relative;
        z-index: 1;
    }

    .gallery-item-info {
        position: relative;
        opacity: 1;
        transform: none;
        background: rgba(0, 0, 0, 0.7);
        padding: 15px;
        margin-top: -5px;
    }

    .gallery-item-info h3 {
        color: #fff;
        margin-bottom: 5px;
    }

    .gallery-item-info p {
        color: #fff;
        margin: 0;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed !important;
    z-index: 999999 !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    box-sizing: border-box;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999 !important;
}

.lightbox-content {
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
    border: 3px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 999999;
    margin-bottom: 60px;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 999999;
}

.lightbox-close:hover {
    color: #C95603;
}

.lightbox-caption {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 16px 12px;
    border: none;
    cursor: pointer;
    font-size: 24px;
    transition: background-color 0.3s ease;
    z-index: 999999;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(201, 86, 3, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Gallery item hover effect */
.gallery-img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}

.lightbox.active ~ header .hamburger,
.lightbox.active ~ .hamburger,
body:has(.lightbox.active) .hamburger {
    display: none !important;
} 