/* 
 * Bachurek Portfolio V10 - Final Hero & Navbar
 * BASED EXACTLY ON V9 DESIGN PARAMETERS + PURPLE GRADIENT + COMPACT LAYOUT
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
    --hero-bg-1: #F1F5F9;
    --hero-bg-2: #E0F2FE;
    --hero-accent: #2563EB;
    --text-main: #0F172A;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-blur: 20px;
    --font-primary: 'Outfit', sans-serif;
}

body {
    font-family: var(--font-primary);
    background-color: var(--hero-bg-1);
}

/* Glassmorphism Navbar (Fixed/Sticky) */
.public-nav {
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
    height: 90px; /* Slightsly smaller for compactness */
    display: flex;
    align-items: center;
    z-index: 1000;
}

.public-nav.scrolled {
    height: 70px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-brand-main {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    display: block;
}

.nav-brand-sub {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    letter-spacing: 1px;
    display: block;
}

.nav-links {
    margin-left: auto;
}

.nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #2563EB;
}

/* Hero Section V10 - Compact Above the Fold */
.hero-v10 {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, var(--hero-bg-1) 0%, var(--hero-bg-2) 50%, var(--hero-bg-1) 100%);
    padding-top: 60px; /* Reduced for better fit */
}

/* Mesh Graphics & Grid with PURPLE accents */
.hero-v10__grid {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: 
        linear-gradient(#3B82F615 1px, transparent 1px),
        linear-gradient(90deg, #3B82F615 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

.hero-v10::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(at 85% 10%, #3B82F615 0%, transparent 40%),
        radial-gradient(at 10% 90%, #8B5CF615 0%, transparent 40%), /* PURPLE AT BOTTOM LEFT */
        radial-gradient(at 50% 50%, #BD9EFB08 0%, transparent 50%); /* SOFT PURPLE CORE */
    pointer-events: none;
}

.hero-v10 .container {
    max-width: 1440px;
    padding: 0 160px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 120px;
    z-index: 2;
    margin-top: 40px; /* Space from navbar */
}

/* Photo Container (Left Column) */
.hero-v10__photo-box {
    width: auto;
    height: 500px; /* kompaktní výška, aby se za hero vešla i další sekce */
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
    position: relative;
    margin-bottom: -1px;
    flex-shrink: 0;
}

.hero-v10__figure {
    width: auto;
    height: 100%;
    display: block;
    filter: drop-shadow(0 -10px 30px rgba(0,0,0,0.05));
}

/* Content Container (Right Column) */
.hero-v10__content {
    width: 550px;
    padding-bottom: 60px; /* Reduced to sit closer to photo bottom */
}

.hero-badge {
    display: inline-flex;
    padding: 10px 20px;
    background: rgba(16, 185, 129, 0.15);
    border: 1.5px solid rgba(16, 185, 129, 0.5);
    border-radius: 100px;
    color: #059669;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.hero-v10__name {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 16px;
    white-space: nowrap;
}

.hero-v10__subline {
    font-size: 22px;
    color: var(--text-main, #1E293B);
    margin-bottom: 12px;
    font-weight: 400;
}

.hero-v10__motto {
    font-size: 18px;
    color: var(--text-muted, #475569);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Buttons (Compact Layout) */
.hero-v10__actions {
    display: flex;
    flex-direction: column;        /* stacked: Pro HR primarni, Profesni shrnuti sekundarni pod nim */
    align-items: stretch;          /* obe tlacitka stejne siroka — match Pro HR sirky */
    gap: 10px;
    margin-bottom: 40px;
    max-width: 480px;              /* nezvetsovat na celou plochu, drz prirozenou CTA sirku */
}

.btn-v10 {
    padding: 14px 24px;
    border: none;                    /* override default <button> user-agent border */
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;                 /* match <a> hover affordance */
    font-family: inherit;            /* <button> defaultne nezdedi pisma */
}

.btn-v10--primary {
    background: #2563EB;
    color: white;
}

.btn-v10--outline {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid #2563EB;
    color: #2563EB;
    backdrop-filter: blur(5px);
}

.btn-v10--accent {
    background: #EA580C;
    color: white;
}

.btn-v10--primary:hover {
    background: #1d4ed8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-v10--outline:hover {
    background: #2563EB;
    color: white;
    border-color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.btn-v10--accent:hover {
    background: #c2410c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
}

/* HR CTA — velké plnošířkové tlačítko v hero sekci */
.btn-v10--hr-cta {
    width: 100%;
    justify-content: center;
    padding: 20px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 6px 28px rgba(37, 99, 235, 0.38);
    gap: 12px;
    letter-spacing: 0.01em;
}

.btn-v10-hr-label {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-v10-hr-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.btn-v10-hr-arrow {
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.btn-v10--hr-cta:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 55%, #2563eb 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(37, 99, 235, 0.48);
}

.btn-v10--hr-cta:hover .btn-v10-hr-arrow {
    transform: translateX(5px);
}

/* =================================================================
   Sekundarni tlacitko „Profesni shrnuti" — pod Pro HR CTA v hero actions.
   Borderless minimal styl, aby vizualne nesoutezilo s primarnim
   gradient CTA. Sirka 100% akce kontejneru → stejna jako Pro HR
   (parent .hero-v10__actions ma align-items:stretch).
   Animovany bouncing chevron pritahuje pozornost; pri otevreni rotuje
   nahoru a bounce zastavi. Zdedi padding/font z .btn-v10 base.
   ================================================================= */
.btn-v10--about {
    background: rgba(37, 99, 235, 0.08);   /* jemny pastel — naznaceni tlacitka bez vyrazneho ohraniceni */
    color: #1e40af;
    border: none;
    box-shadow: none;
    justify-content: center;        /* obsah centrovan v plne sirce */
}

.btn-v10--about[hidden] { display: none; }

.btn-v10--about:hover {
    background: rgba(37, 99, 235, 0.14);
    color: #1e3a8a;
    transform: translateY(-1px);
}

.btn-v10--about-icon {
    font-size: 1rem;
    opacity: 0.85;
}

.btn-v10--about-chev {
    font-size: 0.95rem;
    margin-left: 4px;
    animation: btn-v10-about-bounce 1.8s ease-in-out infinite;
    transition: transform 0.3s ease;
}

/* Pri otevreni: zastav bounce a otoc chevron nahoru */
.btn-v10--about[aria-expanded="true"] .btn-v10--about-chev {
    animation: none;
    transform: rotate(180deg);
}

@keyframes btn-v10-about-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40%                     { transform: translateY(4px); }
    60%                     { transform: translateY(2px); }
}

@media (prefers-reduced-motion: reduce) {
    .btn-v10--about-chev { animation: none; }
}

.hp-dark-mode .btn-v10--about {
    background: rgba(96, 165, 250, 0.12);
    color: #93c5fd;
}
.hp-dark-mode .btn-v10--about:hover {
    background: rgba(96, 165, 250, 0.2);
    color: #bfdbfe;
}

/* Stats (Compact) */
.hero-v10__stats {
    display: flex;
    gap: 40px;
}

.stat-item-v10__value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
}

.stat-item-v10__label {
    font-size: 10px;
    font-weight: 700;
    color: #94A3B8;
    letter-spacing: 1px;
}

/* DARK MODE OVERRIDES */
.hp-dark-mode .hero-v10 {
    --hero-bg-1: #0F172A;
    --hero-bg-2: #1E293B;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
}

@media (max-width: 1280px) {
    .hero-v10 .container { padding: 0 80px; gap: 80px; }
}

@media (max-width: 1024px) {
    .hero-v10 .container {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        padding: 0 40px;
        margin-top: 20px;
        gap: 0;
    }
    .hero-v10__name { white-space: normal; font-size: 42px; }
    .hero-v10__photo-box { width: 100%; max-width: 500px; height: auto; }
    .hero-v10__content { width: 100%; max-width: 600px; padding-bottom: 32px; }
    .hero-v10__actions { justify-content: center; flex-wrap: wrap; }
    .hero-v10__stats { justify-content: center; }
}

@media (max-width: 768px) {
    .public-nav { height: 64px; }

    /* Hero = přesně jeden viewport (dvh se aktualizuje při schovávání/zobrazení adresního řádku) */
    .hero-v10 {
        height: 100vh;
        height: 100dvh;
        padding-top: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    /* Kontejner zabere veškerou výšku hera */
    .hero-v10 .container {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column-reverse !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 70px !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        gap: 0 !important;
        min-height: 0;
        overflow: hidden;
        align-items: center;
    }

    /* Textový obsah — nezmenšuje se, bere jen přirozený prostor */
    .hero-v10__content {
        flex-shrink: 0 !important;
        width: 100% !important;
        padding-bottom: 8px !important;
    }

    /* Foto — zabere zbývající místo; object-fit přizpůsobí obrázek */
    .hero-v10__photo-box {
        flex: 1 !important;
        min-height: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
    }

    .hero-v10__figure {
        width: auto !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: bottom center !important;
    }

    .hero-badge {
        font-size: 11px;
        padding: 8px 14px;
        margin-bottom: 16px;
    }

    .hero-v10__name {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .hero-v10__subline {
        font-size: 17px;
        margin-bottom: 8px;
    }

    .hero-v10__motto {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .btn-v10 {
        padding: 12px 18px;
        font-size: 13px;
    }

    .hero-v10__actions {
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-v10 .container { padding: 0 16px; }

    .hero-v10__name { font-size: 26px; }
    .hero-v10__subline { font-size: 14px; }
    .hero-v10__motto { font-size: 14px; }

    .btn-v10 {
        padding: 11px 14px;
        font-size: 12px;
        flex: 1 1 auto;
        justify-content: center;
    }
}
