/* =========================================
   ZÁKLADNÍ NASTAVENÍ A POZADÍ
========================================= */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #1a1d22;
    color: #f0f2f5;
    overflow-x: hidden;
}

body.dark-theme {
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(74, 144, 226, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(74, 144, 226, 0.06) 0%, transparent 50%),
        repeating-linear-gradient(
            -45deg,
            rgba(74, 144, 226, 0.03),
            rgba(74, 144, 226, 0.03) 1px,
            transparent 1px,
            transparent 60px
        );
    background-attachment: fixed;
}

/* =========================================
   HLAVIČKA (PEVNĚ NAHOŘE)
========================================= */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
}

.logo img {
    height: 40px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.social-links a {
    color: #a0a0a0;
    font-size: 24px;
    margin-left: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #4A90E2;
    transform: scale(1.15) translateY(-2px);
}

/* =========================================
   HLAVNÍ OBSAH (NADPIS UPROSTŘED)
========================================= */
.main-content {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 100;
    margin-top: -48px;
}

.hero-text {
    animation: fadeInContent 1s ease-out 0.5s forwards;
    opacity: 0;
}

.hero-text h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: clamp(40px, 8vw, 80px);
    color: #4A90E2;
    margin: 0;
    text-shadow: 0 0 15px rgba(74, 144, 226, 0.8), 0 0 30px rgba(74, 144, 226, 0.6);
}

.hero-text p {
    font-weight: 500;
    font-size: clamp(16px, 3vw, 26px);
    color: #ffffff;
    margin: 32px 0 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* =========================================
   POSTRANNÍ PRVKY (PEVNĚ V 60 % VÝŠKY)
========================================= */
.sides-wrapper {
    position: fixed;
    top: 60%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    pointer-events: none;
}

.roles, .action-button {
    pointer-events: auto;
}

.roles span {
    display: block;
    font-weight: 500;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 21px;
    margin-bottom: 12px;
    transition: all 0.4s ease;
}

.roles:hover span {
    color: #f0f2f5;
    letter-spacing: 2px;
}

.action-button a {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    color: #f0f2f5;
    text-decoration: none;
    text-transform: uppercase;
    padding: 19px 32px;
    border: 2px solid rgba(240, 242, 245, 0.5);
    border-radius: 4px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.4s ease;
    display: inline-block;
    font-size: 25px;
}

.action-button a::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #4A90E2;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

.action-button a:hover::before { transform: scaleX(1); }
.action-button a:hover { border-color: #4A90E2; color: #ffffff; }

/* =========================================
   SPODNÍ VRSTVA (FOTKA + PATIČKA PEVNĚ DOLE)
========================================= */
.bottom-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    pointer-events: none; 
}

.hero-photo {
    width: 100%;
    max-width: 1100px;
    opacity: 0;
    transform: translateY(50px);
    animation: riseUpPhoto 1.2s ease-out 0.2s forwards;
}

.hero-photo img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.5);
    margin: 0 auto;
}

/* Patička */
.site-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 24px 0;
    color: #a0a0a0;
    font-size: 14px;
    z-index: 20;
    pointer-events: auto;
}

.site-footer p {
    margin: 0;
    letter-spacing: 0.5px;
}

/* =========================================
   ANIMACE
========================================= */
@keyframes fadeInContent { to { opacity: 1; transform: translateY(0); } }
@keyframes riseUpPhoto { to { opacity: 1; transform: translateY(0); } }

/* =========================================
   RESPONSIVITA C - SPLIT LAYOUT (DOPORUČENÉ)
========================================= */
@media (max-width: 991.98px) {
    
    body.dark-theme {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .page-header {
        padding: 24px 16px;
        background: #1a1d22;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-content, .sides-wrapper, .bottom-wrapper {
        display: contents; 
    }

    /* 1. Hlavní text */
    .hero-text {
        order: 1;
        padding-top: 130px; 
        animation: none;
        opacity: 1;
        width: 100%;
    }
/* 2. ZMĚNA POŘADÍ - FOTKA PŮJDE NAD ROLE */
    .hero-photo {
        order: 2;
        animation: none;
        opacity: 1;
        transform: none;
        margin: 32px auto 0 auto; /* Zásadní změna: tohle "auto" to vycentruje na střed */
        width: 180px;  /* Pevná šířka */
        height: 180px; /* Pevná výška pro dokonalý kruh */
    }

    .hero-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Zajistí, že se fotka ořízne a nedeformuje */
        object-position: top center; /* Posune ořez tak, aby ti nechyběla hlava */
        filter: none;
        border-radius: 50%;
        border: 3px solid #4A90E2;
    }

    /* 3. Role pod fotkou */
    .roles {
        order: 3;
        text-align: center !important;
        margin-top: 32px;
        pointer-events: auto;
        width: 100%;
    }

    /* 4. Tlačítko na konec, dominantní a roztažené */
    .action-button {
        order: 4;
        pointer-events: auto;
        z-index: 50;
        text-align: center;
        width: 100%;
        margin-top: 64px;
        position: relative;
        padding: 0 16px;
    }

    .action-button a {
        display: block;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 18px 0;
        font-size: 18px;
    }

 /* 5. Patička */
    .site-footer {
        order: 5;
        position: relative;
        padding: 48px 0 16px; /* Trochu jsem zmenšil horní i spodní padding, ať to působí kompaktněji */
        margin-top: auto; /* <--- TOHLE JE TO KOUZLO, KTERÉ JI NATLAČÍ NA DNO */
        pointer-events: auto;
        width: 100%;
    }
}