@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url("/img/1.png");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0; 
    color: white;
    font-family: 'Montserrat', sans-serif;
    transition: background-image 0.6s ease-in-out, background-color 0.6s ease-in-out;
}

body.dark-mode {
    background-image: url("/img/2.png");
    background-color: #1a1a1a;
}

nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: white;
    opacity: 0.8;
    transition: 0.3s;
}

nav a.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-theme-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 10px;
    outline: none;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h2 {
    font-size: 48px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-scroll-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.hero-scroll-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) translateY(3px);
}

.section {
    padding: 120px 20px;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(80px);
    transition: 0.8s ease;
}

.section.show {
    opacity: 1;
    transform: translateY(0);
}

.card, .glass-box {
    max-width: 800px;
    padding: 40px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.seznam-sluzeb {
    list-style: none;
    text-align: left;
}

.seznam-sluzeb li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.seznam-sluzeb li:hover {
    color: #03354d;
}

.seznam-sluzeb i {
    width: 30px;
    margin-right: 15px;
}

footer {
    text-align: center;
    padding: 40px;
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .hero-content h2 {
        font-size: 38px;
        padding: 0 20px;
    }

    .card, .glass-box {
        max-width: 90%;
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    nav {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        padding: 15px 20px;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 40px;
        gap: 25px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.dark-mode nav ul {
        background: rgba(0, 0, 0, 0.4);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    nav:hover ul {
        right: 0;
    }

    nav::after {
        content: "\f0c9";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        transition: opacity 0.2s;
    }

    nav:hover::after {
        opacity: 0;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
        padding: 5px 0;
    }

    .nav-theme-btn {
        margin-left: 0;
        margin-top: 10px;
        background: rgba(255, 255, 255, 0.15);
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .section {
        padding: 80px 15px;
    }
}

@media (max-width: 480px) {
    nav a.nav-brand {
        font-size: 1.3rem;
    }

    .hero-content h2 {
        font-size: 26px;
    }

    .card, .glass-box {
        width: 100%;
        padding: 25px 15px;
        border-radius: 20px;
    }

    .card h2, .glass-box h2 {
        font-size: 1.3rem;
    }

    .seznam-sluzeb li {
        font-size: 0.9rem;
        align-items: flex-start;
    }

    .seznam-sluzeb i {
        margin-top: 3px;
    }
}
