:root {
    /* Visentio Brand Colors */
    --primary-teal: #00B294;
    --secondary-teal: #008080;
    --soft-coral: #FF7F7F;
    --graphite-gray: #4A4A4A;
    --pale-mint: #E8F5F5;
    --white: #fff;
    --dark-background: #1a2f2e;
    
    /* Legacy compatibility */
    --mint-green: var(--primary-teal);
    --mint-green-dark: var(--dark-background);
    --dark-green: var(--dark-background);
}

/* Default (system preference based) theme variables */
:root {
    --bg-color: var(--dark-background);
    --text-primary: var(--primary-teal);
    --text-secondary: var(--white);
    --main-bg: rgba(26, 47, 46, 0.85);
    --border-color: rgba(0, 153, 161, 0.15);
    --hover-bg: rgba(0, 153, 161, 0.15);
}

/* Light mode variables */
@media (prefers-color-scheme: light) {
    :root {
        --bg-color: var(--pale-mint);
        --text-primary: var(--secondary-teal);
        --text-secondary: var(--graphite-gray);
        --main-bg: rgba(255, 255, 255, 0.95);
        --border-color: rgba(0, 128, 128, 0.15);
        --hover-bg: rgba(0, 128, 128, 0.1);
    }
}

/* Manual theme overrides */
[data-theme="light"] {
    --bg-color: var(--pale-mint);
    --text-primary: var(--secondary-teal);
    --text-secondary: var(--graphite-gray);
    --main-bg: rgba(255, 255, 255, 0.95);
    --border-color: rgba(0, 128, 128, 0.15);
    --hover-bg: rgba(0, 128, 128, 0.1);
}

[data-theme="dark"] {
    --bg-color: var(--dark-background);
    --text-primary: var(--primary-teal);
    --text-secondary: var(--white);
    --main-bg: rgba(26, 47, 46, 0.85);
    --border-color: rgba(0, 153, 161, 0.15);
    --hover-bg: rgba(0, 153, 161, 0.15);
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Nunito', 'Poppins', 'Segoe UI', Arial, sans-serif;
    font-size: 0.9rem;
    background: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    z-index: 1;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.background {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: url('../img/bgimg.png') center/cover no-repeat;
    z-index: 0;
    pointer-events: none;
    transition: background-image 0.3s ease;
}

/* Light theme background */
@media (prefers-color-scheme: light) {
    .background {
        background: url('../img/bgimgLight.png') center/cover no-repeat;
        color: white;
        opacity: 0.5;
    }
}

/* Manual theme overrides for background */
[data-theme="light"] .background {
    background: url('../img/bgimgLight.png') center/cover no-repeat;
    color: white;
    opacity: 0.5;}

[data-theme="dark"] .background {
    background: url('../img/bgimg.png') center/cover no-repeat;
}

header {
    position: relative;
    z-index: 2;
    display: flex;
    font-size: 1rem;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0 1rem 0;
    background: transparent;
}

.logo-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    max-width: 700px; /* Stejná šířka jako main kontejner */
    margin: 0 auto; /* Vycentrování */
    width: 100%;
}

.logo {
    width: 90%; /* 90% šířky kontejneru */
    max-width: 630px; /* 90% z 700px */
    height: auto; /* Zachová poměr stran */
    margin: 10px;
    filter: drop-shadow(0 0 8px var(--primary-teal));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px var(--primary-teal));
}

h1 {
    color: var(--text-secondary);
    margin: 0;
    letter-spacing: 1px;
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1,8rem;
    margin: 1rem 0 0 0;
    padding: 0;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}

nav a:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

.lang-switch {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.theme-toggle {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 3;
}

.theme-toggle button {
    background: var(--main-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle button:hover {
    background: var(--hover-bg);
    transform: translateY(-1px);
}

.theme-toggle button:active {
    transform: translateY(0);
}

.lang-switch button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 50%;
    transition: background 0.2s;
}

.lang-switch button:hover {
    background: var(--hover-bg);
}

.lang-switch button.active {
    background: var(--text-primary);
    color: var(--bg-color);
}

.lang-switch button.active h4 {
    color: var(--bg-color);
}



main {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 3rem auto 2rem auto;
    background: var(--main-bg);
    border-radius: 18px;
    box-shadow: 0 4px 32px var(--border-color);
    padding: 2.5rem 2rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

section {
    margin-bottom: 2.5rem;
}

h2 {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: 0;
}

h3 {
    color: var(--text-secondary);
    margin-top: 0;
}

h4 {
    color: var(--text-secondary);
    margin: 0;
}

a {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Brand-specific styles */
.tagline {
    color: var(--soft-coral) !important;
    font-style: italic;
    font-weight: 500;
}

strong {
    color: var(--text-secondary);
    font-weight: 600;
}

ul {
    padding-left: 1.5em;
}

ul li {
    margin-bottom: 1.2em; /* Increase space between list items */
}

footer {
    position: relative;
    z-index: 2;
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    padding: 2 2 2 2;
    font-size: 0.7rem;
    margin-top: 1px;
    border-top: 1px solid var(--border-color);
}

/* Responsive design for mobile devices */
@media (max-width: 768px) {
    .theme-toggle {
        top: 1rem;
        left: 1rem;
    }
    
    .theme-toggle button {
        padding: 0.4rem 0.8rem;
        font-size: 0.6rem;
    }
    
    .theme-toggle button span:last-child {
        display: none; /* Hide text on mobile, keep only icon */
    }
    
    .lang-switch {
        top: 1rem;
        right: 1rem;
    }
    
    .logo-nav {
        margin: 0 1rem; /* Přidáme margin pro mobilní */
    }
    
    .logo {
        width: 90%; /* Stále 90% kontejneru */
        max-width: none; /* Odstraníme max-width omezení na mobilu */
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    nav a {
        font-size: 0.85rem;
        padding: 0.3rem 1rem;
    }
    
    main {
        margin: 2rem 1rem;
        padding: 2rem 1.5rem;
    }
}