/* ==========================================================================
   VARIABLES
   ========================================================================== */
:root {
    --bg-color: #ffffff; /* Čistě bílá pro prémiový vzhled */
    --text-color: #111111; /* Téměř černá pro vysoký kontrast */
    --text-muted: #666666; /* Jemnější šedá pro odstavce */
    --border-color: #eaeaea; /* Velmi jemná linka */

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   PAGE TRANSITION OVERLAY
   ========================================================================== */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--text-color);
    z-index: 9999;
    pointer-events: none;
    transform: translateY(100%);
    transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.page-transition-overlay.is-animating {
    transform: translateY(0);
}

.page-transition-overlay.is-leaving {
    transform: translateY(-100%);
}

/* ==========================================================================
   TYPOGRAPHY & LAYOUT (Premium feel)
   ========================================================================== */
.container { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 0 2rem 8rem 2rem; 
}

.mega-title { 
    font-size: clamp(3.5rem, 8vw, 5.5rem); 
    line-height: 1.05; 
    font-weight: 800; 
    letter-spacing: -0.04em; 
    margin-bottom: 3rem; 
}

.section-title { 
    font-size: 2.5rem; 
    font-weight: 800; 
    margin-bottom: 2rem; 
    letter-spacing: -0.03em; 
}

.tagline { 
    font-size: 1rem; 
    color: var(--text-muted); 
    font-weight: 500; 
    letter-spacing: 0.05em; 
    text-transform: uppercase;
    margin-bottom: 1.5rem; 
}

p { 
    font-size: 1.15rem; 
    color: var(--text-muted); 
    margin-bottom: 1.8rem; 
}

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

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    padding: 3rem 0;
    margin-bottom: 4rem;
}

.nav-container {
    max-width: 900px; 
    margin: 0 auto; 
    padding: 0 2rem;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.logo { 
    font-size: 1.4rem; 
    font-weight: 800; 
    color: var(--text-color); 
    text-decoration: none; 
    letter-spacing: -0.03em; 
}

.nav-links { 
    display: flex; 
    gap: 2.5rem; 
}

.nav-links a { 
    color: var(--text-muted); 
    text-decoration: none; 
    font-weight: 500; 
    font-size: 1rem; 
    transition: color 0.3s; 
}

.nav-links a:hover, .nav-links a.active { 
    color: var(--text-color); 
}

/* ==========================================================================
   HERO HEADER S PROFILOVKOU
   ========================================================================== */
.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 6rem;
}

.hero-text {
    flex: 1; 
}

.hero-text .mega-title {
    margin-bottom: 0;
}

.hero-profile-pic {
    width: 240px;
    height: 240px;
    flex-shrink: 0; 
    border-radius: 50%; 
    background-color: #f8f8f8;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.avatar-placeholder {
    color: #bbb;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

/* ==========================================================================
   IMAGE PLACEHOLDERS (Pro projekty na stránce Praxe)
   ========================================================================== */
.image-placeholder {
    width: 100%;
    min-height: 400px;
    background-color: #f8f8f8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* ==========================================================================
   INDEX.HTML (Editorial Blocks)
   ========================================================================== */
.story-block { 
    margin-bottom: 5rem; 
}

.story-block h2 { 
    font-size: 2rem; 
    margin-bottom: 1.5rem; 
    letter-spacing: -0.02em; 
}

.skills-editorial {
    display: flex;
    flex-direction: column;
}

.skill-row {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
}

.skill-row h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.skill-row p {
    margin-bottom: 0;
}

/* ==========================================================================
   WORK.HTML (Editorial Layout)
   ========================================================================== */
.editorial-timeline {
    display: flex;
    flex-direction: column;
}

.work-row {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.work-meta {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

.work-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.work-company {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.work-visual .image-placeholder {
    min-height: 300px;
}

/* ==========================================================================
   CONTACT.HTML (Massive Links)
   ========================================================================== */
.editorial-contact {
    display: flex;
    flex-direction: column;
}

.contact-row {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.contact-row h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-row p {
    max-width: 600px;
}

.large-link {
    display: inline-block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.02em;
    margin-top: 1rem;
    position: relative;
}

.large-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.large-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */
.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-item.is-revealed { 
    opacity: 1; 
    transform: translateY(0); 
}

.stagger-item:nth-child(2).is-revealed { transition-delay: 0.15s; }
.stagger-item:nth-child(3).is-revealed { transition-delay: 0.3s; }

.reveal-nav {
    opacity: 0; 
    transform: translateY(-20px);
    animation: slideDown 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.4s;
}

@keyframes slideDown { 
    to { opacity: 1; transform: translateY(0); } 
}

/* ==========================================================================
   RESPONSIVE GRID & MEDIA QUERIES
   ========================================================================== */
@media (min-width: 768px) {
    .work-row:has(.work-visual) {
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 1.5rem; }
    .nav-links { gap: 1.5rem; }
    .mega-title { font-size: 3rem; }
    .work-title { font-size: 1.8rem; }
    .large-link { font-size: 1.5rem; }

    /* Mobilní zobrazení pro fotku vedle textu */
    .hero-flex {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 2.5rem;
    }

    .hero-profile-pic {
        width: 150px;
        height: 150px;
    }
}