/* Definice CSS proměnných z tvého FSA stylu */
body.light-mode {
    ---bg: #f8f8f8;
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --hover-bg: #e9e9e9;
}

body.dark-mode {
    --page-bg: #000000; /* Čistá černá dle designu */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --hover-bg: #131313;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Google Sans Flex", sans-serif;
    background-color: var(--page-bg);
    color: var(--text-primary);
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
}

/* Horní navigace - vycentrovaná */
.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease; /* Hover animace z tvého kódu */
}

.nav-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Dark Mode Toggle - Fixní vlevo dole */
.theme-switch-wrapper {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1001;
}

.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 46px;
}

.theme-switch input { display: none; }

.slider {
    background-color: #333;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 16px;
    border-radius: 50%;
}

input:checked + .slider { background-color: #555; }
input:checked + .slider:before { transform: translateX(22px); }

/* Obsah portfolia */
.main-header {
    padding: 180px 5% 40px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -3px;
    text-transform: uppercase;
    margin: 0;
}

.hero-section {
    display: flex;
    padding: 40px 5% 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 5%;
    align-items: center;
}

.hero-content { flex: 1.2; }

.section-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 25px;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 85%;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-about-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
}

/* Responzivita pro mobilní telefony */
@media (max-width: 768px) {
    .hero-section { flex-direction: column; text-align: center; }
    .hero-image-wrapper { justify-content: center; margin-top: 40px; }
    .intro-text { max-width: 100%; }
    .nav-links { gap: 20px; }
}