body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    scroll-behavior: smooth;
}
a {
    text-decoration: none;
    color: inherit;
}
.navbar {
    background: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 40px;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li a:hover {
    color: #38bdf8;
}
.hero {
    background-image: url('images/banner.jpg');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.overlay {
    background-color: rgba(0,0,0,0.6);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}
.overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.overlay p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}
.button {
    padding: 0.5rem 1.5rem;
    border: 2px solid #f8fafc;
    background: transparent;
    color: #f8fafc;
    border-radius: 30px;
    transition: background 0.3s, color 0.3s;
}
.button:hover {
    background: #f8fafc;
    color: #1e293b;
}
.services {
    padding: 4rem 2rem;
    text-align: center;
}
.service-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}
.box {
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    width: 350px;
    text-align: left;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}
.box ul {
    list-style: disc;
    padding-left: 1.2rem;
}

.contact {
    max-width: 700px;
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
    background-color: #1e293b;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    transition: all 0.5s ease;
}

.contact-method {
    margin-top: 1rem;
}
.contact select {
    padding: 0.5rem;
    margin: 1rem;
    border-radius: 5px;
}
.contact p {
    font-size: 1rem;
    margin: 0.5rem 0;
}
.icon-align {
    padding-right: 8px;
}
.about {
    padding: 4rem 2rem;
    text-align: center;
}
.blok {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    font-size: 1rem;
    line-height: 1.8;
    color: #e2e8f0;
}

.round-logo {
    border-radius: 35%;
    padding: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.icons .fa{
    color: #white;
    margin: 0 13px;
    padding: 18px 0;
}

/* Výchozí – tmavý režim */
body.dark-mode {
    background-color: #0f172a;
    color: #f8fafc;
}

body.dark-mode .navbar,
body.dark-mode .contact,
body.dark-mode .box,
body.dark-mode footer {
    background-color: #1e293b;
    color: #f8fafc;
}

/* Světlý režim */
body.light-mode {
    background-color: #f8fafc;
    color: #0f172a;
}

body.light-mode .navbar,
body.light-mode .contact,
body.light-mode .box,
body.light-mode footer {
    background-color: #e2e8f0;
    color: #0f172a;
}

/* Přepínač vzhledu */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    transition: transform 0.2s ease;
}
.theme-toggle:hover {
    transform: scale(1.2);
}

/* Ve světlém režimu nastav sytě černý text pro sekci O mně */
body.light-mode .about,
body.light-mode .about h2,
body.light-mode .blok {
    color: #111 !important;
}
.hero h1 {
    color: #fff !important;
}


footer {
    background: #1e293b;
    padding: 1rem;
    text-align: center;
    color: #cbd5e1;
}

/* Responsive */
@media (max-width: 768px) {
    .service-boxes {
        flex-direction: column;
        align-items: center;
    }

    .overlay h1 {
        font-size: 1.8rem;
    }

    .overlay p {
        font-size: 1rem;
    }
	
	.nav-links {
        display: none;
    }
	
	.box {
        width: 90%; /* nebo 100% s paddingem */
        padding: 1.5rem;
        box-sizing: border-box;
    }

    .box ul li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        font-size: 1rem;
        line-height: 1.5;
    }

    .box h3 {
        font-size: 1.3rem;
        text-align: center;
    }

}
