:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #333333;
    --border-color: #000000;
    --light-gray: #f4f4f4;
    
    --font-main: 'Manrope', sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    --font-size-base: 16px;
    --font-size-h1: 3.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.5rem;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

#loader-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--text-color);
    z-index: 9999;
    transition: width 0.4s ease, opacity 0.4s ease;
}

/* === CUSTOM CURSOR (FAIL-SAFE) === */
/* Only active on devices with mouse */
@media (hover: hover) and (pointer: fine) {
    /* Hide default cursor ONLY when JS activates this class */
    body.hide-cursor {
        cursor: none;
    }
    
    body.hide-cursor a, 
    body.hide-cursor button, 
    body.hide-cursor .portfolio-item {
        cursor: none;
    }

    .cursor-dot,
    .cursor-outline {
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        z-index: 999999;
        pointer-events: none;
        opacity: 0; /* Hidden by default until JS kicks in */
    }

    .cursor-dot {
        width: 8px;
        height: 8px;
        background-color: #ffffff;
        mix-blend-mode: difference;
    }

    .cursor-outline {
        width: 40px;
        height: 40px;
        border: 1px solid #ffffff;
        mix-blend-mode: difference;
        transition: transform 0.15s ease-out, background-color 0.2s, width 0.2s, height 0.2s;
    }
    
    /* Hover State */
    .cursor-outline.hovered {
        transform: translate(-50%, -50%) scale(1.5);
        background-color: rgba(255, 255, 255, 0.2);
        border-color: transparent;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Typography - Swiss Style / Brutalist */
h1 {
    font-size: var(--font-size-h1);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-xs);
}

h2 {
    font-size: var(--font-size-h2);
    font-weight: 300;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
}

h3 {
    font-size: var(--font-size-h3);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

/* Hero Section */
.hero {
    padding: var(--spacing-lg) 0;
    margin-bottom: 4rem; /* Adjusted for filter nav */
    border-bottom: 2px solid var(--border-color);
}

.hero-text {
    font-size: 1.25rem;
    max-width: 600px;
    margin-top: var(--spacing-md);
    font-weight: 300;
    line-height: 1.6; /* Improved readability */
}

/* Filter Navigation */
#portfolio-filter {
    margin-bottom: 2.5rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
    padding-bottom: 1rem; /* Space for scrollbar if visible/needed */
    /* Hide scrollbar visually but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

#portfolio-filter::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.filter-list {
    display: flex;
    gap: 2rem;
}

.filter-item {
    cursor: pointer;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.filter-item:hover {
    color: var(--text-color);
}

.filter-item.active {
    color: var(--text-color);
    font-weight: 600;
}

.filter-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-color);
}

/* Portfolio Grid - Masonry Layout */
#portfolio-grid {
    padding: 2rem 0 4rem 0;
}

.portfolio-grid {
    display: block;
    column-count: 1;
    column-gap: var(--spacing-md);
}

/* Portfolio Item */
.portfolio-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid transparent;
    break-inside: avoid;
    margin-bottom: 4rem; /* Larger vertical gap */
    position: relative;
    /* Fix for some browsers to respect break-inside */
    display: inline-block;
    width: 100%;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

/* Reveal Effect */
.portfolio-item.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.portfolio-item.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.item-image {
    width: 100%;
    height: auto;
    display: block;
    background-color: var(--light-gray); /* Placeholder color if image missing */
    margin-bottom: var(--spacing-sm);
    filter: grayscale(100%);
    transition: filter 0.6s ease-in-out, transform 0.6s ease-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Subtle paper shadow */
}

/* Scroll Focus Effect (Mobile/Touch) */
@media (hover: none) {
    .portfolio-item.in-focus .item-image {
        filter: grayscale(0%);
    }
}

.portfolio-item:hover .item-image {
    filter: grayscale(0%);
}

.item-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.item-category {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-top: 0.25rem;
}

/* Footer - Silent Minimalist */
.footer {
    border-top: 1px solid #EEEEEE;
    padding-top: 10vh;
    padding-bottom: 4rem;
    margin-top: 10vh;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-link {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666666;
    text-decoration: none;
    margin-right: 1.5rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #000000;
}

.rok {
    font-size: 0.9rem;
    color: #999999;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    position: relative;
    overflow-y: auto;
}

.close-lightbox {
    position: fixed;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    z-index: 1002;
    mix-blend-mode: difference;
    color: #fff;
    transition: transform 0.3s ease;
}

.close-lightbox:hover {
    transform: rotate(90deg);
}

#lightbox-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
}

.lightbox-gallery-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.lightbox-info {
    text-align: left;
    position: sticky;
    top: 2rem;
    align-self: start;
}

.lightbox-meta {
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--accent-color);
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

/* === CUSTOM VIDEO PLAYER UI === */
.video-container {
    position: relative;
    width: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden; /* Hide controls when they slide out if needed */
}

.lightbox-video {
    width: 100%;
    height: auto;
    max-height: 85vh;
    display: block;
    cursor: none; /* Hide cursor by default over video (managed by JS) */
}

/* Controls Container */
.custom-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    
    background: rgba(255, 255, 255, 0.15); /* Glass effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px 20px;
    
    display: flex;
    flex-direction: column;
    gap: 8px;
    
    opacity: 0; /* Initially hidden */
    transition: opacity 0.4s ease;
    z-index: 10;
}

/* Hover on controls keeps them visible */
.custom-controls:hover {
    opacity: 1 !important;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: height 0.2s ease;
}

.progress-bar-container:hover {
    height: 6px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #fff;
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* Controls Row */
.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
}

.control-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.spacer {
    flex-grow: 1;
}

/* Icons */
.control-btn svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* === SMART CLIPBOARD TOAST === */
.clipboard-toast {
    position: fixed;
    background-color: #ffffff;
    color: #000000;
    padding: 6px 14px;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 5px);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    white-space: nowrap;
}

.clipboard-toast.visible {
    opacity: 1;
    transform: translate(-50%, -10px);
}


/* --- RESPONSIVE & LAYOUT --- */

/* Tablet & Small Laptops */
@media (min-width: 768px) {
    :root {
        --font-size-h1: 5rem;
        --font-size-h2: 2.5rem;
        --spacing-md: 4rem; /* Větší vzdušnost */
    }

    /* Grid se přepne na 2 sloupce */
    .portfolio-grid {
        display: block;
        column-count: 2;
        column-gap: 2rem;
    }

    .hero-text {
        font-size: 1.5rem;
        max-width: 80%;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-left {
        flex-direction: row;
    }
}

/* Desktop & Large Screens */
@media (min-width: 1024px) {
    /* Grid se přepne na 3 sloupce pro profi vzhled */
    .portfolio-grid {
        display: block;
        column-count: 3;
        column-gap: 4rem; /* Wider horizontal gap */
    }

    .portfolio-item {
        margin-bottom: 8rem; /* Even larger vertical gap on desktop */
    }

    /* Omezení maximální šířky, aby web "neulétl" na 4K */
    body {
        max-width: 1800px;
        margin: 0 auto;
        padding: 0 9%; /* Massive side padding (Swiss Style) */
    }

    /* Lightbox Layout */
    .lightbox-content {
        grid-template-columns: 1.5fr 1fr; /* Obrázek má přednost */
        gap: 3rem;
        align-items: center;
        max-width: 1200px;
        padding: 2rem;
    }

    #lightbox-img {
        max-height: 85vh;
        width: 100%;
        object-fit: contain;
    }

    .lightbox-info {
        text-align: left;
        padding-right: 2rem;
    }
}

</final_file_content>

IMPORTANT: For any future changes to this file, use the final_file_content shown above as your reference. This content reflects the current state of the file, including any auto-formatting (e.g., if you used single quotes but the formatter converted them to double quotes). Always base your SEARCH/REPLACE operations on this final version to ensure accuracy.

<environment_details>
# Visual Studio Code Visible Files
js/main.js

# Visual Studio Code Open Tabs
index.html
js/data.js
css/style.css
js/main.js

# Current Time
1/21/2026, 9:39:27 PM (Europe/Prague, UTC+1:00)

# Context Window Usage
110,654 / 1,048.576K tokens used (10%)

# Current Mode
ACT MODE
</environment_details>
