html {
    scroll-behavior: smooth; 
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 2000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
    font-size: 1.2em;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #007bff;
}

.nav-toggle {
    display: none; 
    background: none;
    border: none;
    font-size: 1.5em;
    color: #007bff;
    cursor: pointer;
}

header {
    margin-top: 60px; 
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        text-align: center;
    }

    .nav-menu.active {
        display: flex; 
    }

    .nav-menu li {
        margin: 15px 0;
    }
}


/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}
header {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}
header h1 {
    font-size: 3em;
    margin: 0;
    animation: fadeInDown 1s ease-out;
}
header p {
    font-size: 1.5em;
    animation: fadeInUp 1s ease-out 0.5s;
    opacity: 0;
    animation-fill-mode: forwards;
}
.hero-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: zoomIn 1s ease-out;
}
section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
section.visible {
    opacity: 1;
    transform: translateY(0);
}
h2 {
    text-align: center;
    color: #007bff;
    font-size: 2.5em;
    margin-bottom: 40px;
    position: relative;
}
h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background: #00c6ff;
    display: block;
    margin: 10px auto 0;
    transition: width 0.3s;
}
h2:hover::after {
    width: 100px;
}
.services-grid, .prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.special-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.service-box, .price-box, .special-box, .electro-box {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.4s, box-shadow 0.4s;
}
.service-box:hover, .price-box:hover, .special-box:hover, .electro-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.icon {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: #007bff;
}
#sluzby, #ceny {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: white;
}
#sluzby h2, #ceny h2 {
    color: white;
}
#sluzby .service-box, #ceny .price-box, #sluzby .electro-box {
    background: rgba(255,255,255,0.95);
    color: #333;
}
.electro-box {
    grid-column: 1 / -1;
    background: rgba(255,255,255,0.95) !important;
    font-weight: bold;
    font-size: 1.1em;
    color: #d32f2f;
}

#specialni-prace {
    background-color: #e9ecef;
}
#specialni-prace h2 {
    color: #495057;
}
#specialni-prace .special-box {
    background: white;
    padding: 30px 20px;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.4s;
}
.gallery-item:hover {
    transform: scale(1.08);
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
    transition: opacity 0.3s;
}
.gallery-item:hover .gallery-caption {
    opacity: 1;
}
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}
.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.close:hover {
    opacity: 1;
}
#o-mne {
    text-align: center;
}

.slogan {
    font-size: 1.6em;
    font-style: italic;
    color: #007bff;
    margin: 40px 0;
    font-weight: 600;
}
.about-contact {
    margin-top: 40px;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: inline-block;
}
.about-contact p {
    font-size: 1.4em;
    margin: 20px 0;
}
.about-contact a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}
.about-contact a:hover {
    text-decoration: underline;
}
#kontakt {
    text-align: center;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: white;
    padding: 80px 20px;
    font-size: 1.3em;
}
#kontakt h2 {
    color: white;
    font-size: 3em;
    margin-bottom: 50px;
}
#kontakt p {
    font-weight: bold;
    margin: 15px 0;
    font-size: 1.2em;
}
#kontakt .highlight {
    font-size: 1.5em;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
footer {
    background: #007bff;
    color: white;
    text-align: center;
    padding: 25px;
    font-size: 1em;
}
/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
@media (max-width: 768px) {
    header h1 { font-size: 2.3em; }
    header p { font-size: 1.3em; }
    h2 { font-size: 2.2em; }
    section { padding: 50px 15px; }
    .icon { font-size: 3em; }
    #kontakt h2 { font-size: 2.5em; }
    #kontakt { font-size: 1.1em; padding: 60px 20px; }
    .gallery-caption { font-size: 0.8em; }
    .slogan { font-size: 1.4em; }
    .about-contact p { font-size: 1.2em; }
}