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

        html {
            scroll-behavior: smooth;
        }

        :root {
            --phase1-light: #E8EAF6;
            --phase1-medium: #C5CAE9;
            --phase2-light: #E8F5E9;
            --phase2-medium: #C8E6C9;
            --phase3-light: #E3F2FD;
            --phase3-medium: #BBDEFB;
            --accent-blue: #1976D2;
            --dark-blue: #1565C0;
            --dark-text: #212121;
            --heading-gray: #424242;
            --medium-text: #616161;
            --light-gray: #F5F5F5;
            --border-gray: #E0E0E0;
            --white: #FFFFFF;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            line-height: 1.6;
            color: var(--dark-text);
            background-color: var(--white);
            padding-top: 70px;
        }

        /* Sticky Navigation */
        .sticky-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: var(--white);
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            z-index: 1000;
            border-bottom: 3px solid var(--accent-blue);
        }

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

        .nav-brand {
            font-size: 20px;
            font-weight: 700;
            color: var(--dark-text);
        }

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

        .nav-links a {
            color: var(--medium-text);
            text-decoration: none;
            font-weight: 500;
            font-size: 15px;
            transition: color 0.3s ease;
            padding: 8px 0;
            border-bottom: 2px solid transparent;
        }

        .nav-links a:hover {
            color: var(--accent-blue);
            border-bottom-color: var(--accent-blue);
        }

        .nav-links a.active {
            color: var(--accent-blue);
            border-bottom-color: var(--accent-blue);
        }

        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 60px 40px;
        }

        /* Header */
        header {
            background: linear-gradient(135deg, var(--phase3-light) 0%, var(--white) 100%);
            border-radius: 8px;
            padding: 40px;
            margin-bottom: 60px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 32px;
            align-items: center;
        }

        .header-content {
            display: flex;
            flex-direction: column;
        }

        .header-photo {
            width: auto;
            max-width: 180px;
            max-height: 250px;
            height: auto;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            object-fit: contain;
        }

        @media (max-width: 768px) {
            header {
                grid-template-columns: 1fr;
                text-align: center;
            }
            
            .header-photo {
                margin: 0 auto;
                width: 150px;
            }
        }

        h1 {
            font-size: 42px;
            font-weight: 700;
            color: var(--heading-gray);
            margin-bottom: 8px;
            letter-spacing: -0.5px;
        }

        .subtitle {
            font-size: 20px;
            color: var(--accent-blue);
            font-weight: 600;
            margin-bottom: 24px;
        }

        .contact-info {
            display: flex;
            gap: 24px;
            flex-wrap: wrap;
            color: var(--medium-text);
            font-size: 15px;
        }

        .contact-info span {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .contact-info a {
            color: var(--accent-blue);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .contact-info a:hover {
            color: var(--dark-text);
            text-decoration: underline;
        }

        /* Section Styling */
        section {
            margin-bottom: 60px;
        }

        h2 {
            font-size: 28px;
            font-weight: 700;
            color: var(--heading-gray);
            margin-bottom: 24px;
            cursor: default;
        }

        h2.collapsible {
            cursor: pointer;
            user-select: none;
            transition: color 0.3s ease;
        }

        h2.collapsible:hover {
            color: var(--accent-blue);
        }

        h2.collapsible::after {
            content: ' ▼';
            font-size: 20px;
            color: var(--accent-blue);
            transition: transform 0.3s ease;
            display: inline-block;
        }

        h2.collapsible.expanded::after {
            transform: rotate(180deg);
        }

        h3.collapsible {
            cursor: pointer;
            user-select: none;
            transition: color 0.3s ease;
            margin-top: 32px;
        }

        h3.collapsible:hover {
            color: var(--accent-blue);
        }

        h3.collapsible::after {
            content: ' ▼';
            font-size: 18px;
            color: var(--accent-blue);
            transition: transform 0.3s ease;
            display: inline-block;
        }

        h3.collapsible.expanded::after {
            transform: rotate(180deg);
        }

        h3 {
            font-size: 20px;
            font-weight: 600;
            color: var(--heading-gray);
            margin-bottom: 16px;
        }

        p {
            margin-bottom: 16px;
            color: var(--dark-text);
            font-size: 16px;
            line-height: 1.7;
        }

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

        /* ============================================
           GLOBÁLNÍ STYL PRO TEXTOVÉ ODKAZY
           Varianta B: Světlé pozadí + čára venku pod
           ============================================ */
        p a,
        .summary-box p a,
        .phase-card p a,
        .experience-card p a,
        .timeline-details p a,
        .position-description a,
        .expertise-item li a {
            color: var(--accent-blue);
            text-decoration: none;
            font-weight: 500;
            background: var(--light-blue);
            padding: 2px 8px;
            border-radius: 4px;
            position: relative;
            transition: color 0.3s ease;
            display: inline-block;
        }

        p a::after,
        .summary-box p a::after,
        .phase-card p a::after,
        .experience-card p a::after,
        .timeline-details p a::after,
        .position-description a::after,
        .expertise-item li a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -3px;
            left: 0;
            background: var(--accent-blue);
            transition: width 0.3s ease;
        }

        p a:hover,
        .summary-box p a:hover,
        .phase-card p a:hover,
        .experience-card p a:hover,
        .timeline-details p a:hover,
        .position-description a:hover,
        .expertise-item li a:hover {
            color: var(--dark-blue);
        }

        p a:hover::after,
        .summary-box p a:hover::after,
        .phase-card p a:hover::after,
        .experience-card p a:hover::after,
        .timeline-details p a:hover::after,
        .position-description a:hover::after,
        .expertise-item li a:hover::after {
            width: 100%;
        }

        /* Summary Box */
        .summary-box {
            background: var(--light-gray);
            padding: 32px;
            border-radius: 8px;
            border-left: 4px solid var(--accent-blue);
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }

        /* Phase Cards */
        .phase-card {
            background: var(--white);
            padding: 40px;
            border-radius: 8px;
            margin-bottom: 40px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .phase-card:hover {
            box-shadow: 0 4px 20px rgba(0,0,0,0.12);
            transform: translateY(-2px);
        }

        .phase-card.phase1 {
            background: var(--white);
            border: 1px solid var(--border-gray);
            border-left: 6px solid var(--phase1-medium);
        }

        .phase-card.phase2 {
            background: var(--white);
            border: 1px solid var(--border-gray);
            border-left: 6px solid var(--phase2-medium);
        }

        .phase-card.phase3 {
            background: var(--white);
            border: 1px solid var(--border-gray);
            border-left: 6px solid var(--phase3-medium);
        }

        .phase-card.phase3 .phase-header {
            border-bottom-color: var(--phase3-medium);
        }

        .phase-card.phase2 .phase-header {
            border-bottom-color: var(--phase2-medium);
        }

        .phase-card.phase1 .phase-header {
            border-bottom-color: var(--phase1-medium);
        }

        .phase-header {
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 2px solid var(--border-gray);
        }

        .phase-title {
            font-size: 26px;
            font-weight: 700;
            color: var(--heading-gray);
            margin-bottom: 8px;
        }

        .phase-duration {
            font-size: 16px;
            color: var(--medium-text);
            font-weight: 600;
        }

        /* Logo Grid */
        .logo-section {
            margin-top: 32px;
        }

        .logo-section-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--medium-text);
            margin-bottom: 16px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .logo-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
            margin-bottom: 24px;
        }

        .logo-grid.small {
            gap: 16px;
        }

        .logo-placeholder {
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 0;
            transition: transform 0.2s ease;
        }

        .logo-placeholder:hover {
            transform: scale(1.05);
        }

        .logo-placeholder img {
            max-height: 100px;
            width: auto;
            height: auto;
            object-fit: contain;
        }

        .logo-text {
            font-size: 13px;
            color: var(--medium-text);
            text-align: center;
            font-weight: 500;
        }

        /* Expertise Grid */
        .expertise-grid {
            display: grid;
            gap: 20px;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        }

        .expertise-item {
            background: var(--white);
            padding: 24px;
            border-radius: 8px;
            border: 1px solid var(--border-gray);
            border-left: 4px solid var(--accent-blue);
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            transition: all 0.3s ease;
        }

        .expertise-item:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            transform: translateY(-2px);
        }

        .expertise-item h4 {
            font-size: 17px;
            font-weight: 600;
            color: var(--accent-blue);
            margin-bottom: 12px;
        }

        .expertise-item ul {
            list-style: none;
            padding-left: 0;
        }

        .expertise-item li {
            padding: 6px 0;
            color: var(--dark-text);
            font-size: 15px;
        }

        .expertise-item li::before {
            content: "▸";
            color: var(--accent-blue);
            font-weight: bold;
            margin-right: 8px;
        }

        /* Competencies Table */
        .competencies-table {
            width: 100%;
            border-collapse: collapse;
            background: var(--white);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        }

        .competencies-table th {
            background: var(--accent-blue);
            color: var(--white);
            padding: 16px;
            text-align: left;
            font-weight: 600;
            font-size: 16px;
        }

        .competencies-table td {
            padding: 20px 16px;
            border-bottom: 1px solid var(--border-gray);
            font-size: 15px;
        }

        .competencies-table tr:last-child td {
            border-bottom: none;
        }

        .competencies-table tr:hover {
            background: var(--light-gray);
        }

        /* Consolidated Experience Cards */
        .experience-grid {
            display: grid;
            gap: 24px;
        }

        .experience-card {
            background: var(--white);
            padding: 32px;
            border-radius: 8px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
        }

        .experience-card:hover {
            box-shadow: 0 4px 20px rgba(0,0,0,0.12);
            transform: translateY(-2px);
        }

        .experience-card.exp-phase3 {
            border-left: 6px solid var(--phase3-medium);
        }

        .experience-card.exp-phase2 {
            border-left: 6px solid var(--phase2-medium);
        }

        .experience-card.exp-phase1 {
            border-left: 6px solid var(--phase1-medium);
        }

        .experience-header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 16px;
        }

        .experience-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--heading-gray);
        }

        .experience-duration {
            font-size: 15px;
            color: var(--medium-text);
            font-weight: 600;
        }

        /* Timeline */
        .timeline-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease;
        }

        .timeline-content.expanded {
            max-height: 20000px;
        }

        /* Company Group Box */
        .company-group {
            background: var(--white);
            border: 2px solid var(--border-gray);
            border-radius: 8px;
            padding: 24px;
            margin-bottom: 32px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }

        .company-group-header {
            background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
            padding: 16px 20px;
            margin: -24px -24px 24px -24px;
            border-radius: 6px 6px 0 0;
            border-bottom: 2px solid var(--border-gray);
        }

        .company-group-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--dark-text);
            margin-bottom: 6px;
        }

        .company-group-meta {
            font-size: 14px;
            color: var(--medium-text);
            font-weight: 600;
        }

        /* Position within company */
        .position-item {
            padding: 20px 0;
            border-bottom: 1px solid var(--light-gray);
        }

        .position-item:last-child {
            border-bottom: none;
        }

        .position-header {
            display: grid;
            grid-template-columns: 30px 180px 1fr;
            gap: 16px;
            margin-bottom: 8px;
        }

        .position-icon {
            font-size: 18px;
            color: var(--accent-blue);
            font-weight: bold;
        }

        .position-date {
            font-weight: 600;
            color: var(--accent-blue);
            font-size: 15px;
        }

        .position-title {
            font-size: 17px;
            font-weight: 600;
            color: var(--dark-text);
        }

        .position-company {
            color: var(--medium-text);
            font-size: 14px;
            margin-left: 46px;
            margin-bottom: 8px;
        }

        .position-description {
            margin-left: 46px;
            color: var(--dark-text);
            font-size: 15px;
            line-height: 1.6;
        }

        /* Single timeline item (no group) */
        .timeline-item {
            padding: 24px 0;
            border-bottom: 1px solid var(--border-gray);
        }

        .timeline-item:last-child {
            border-bottom: none;
        }

        .timeline-item-header {
            display: grid;
            grid-template-columns: 180px 1fr;
            gap: 30px;
            margin-bottom: 8px;
        }

        .timeline-date {
            font-weight: 600;
            color: var(--accent-blue);
            font-size: 15px;
        }

        .timeline-details h4 {
            font-size: 17px;
            font-weight: 600;
            color: var(--heading-gray);
            margin-bottom: 4px;
        }

        .timeline-details .company {
            color: var(--medium-text);
            font-size: 15px;
            margin-bottom: 8px;
        }

        .timeline-details p {
            color: var(--dark-text);
            font-size: 15px;
            line-height: 1.6;
            margin-bottom: 0;
        }

        /* Phase Separators in Timeline */
        .timeline-phase-separator {
            background: linear-gradient(135deg, var(--accent-blue) 0%, #1565C0 100%);
            color: var(--white);
            padding: 16px 24px;
            border-radius: 8px;
            margin: 40px 0 32px 0;
            font-size: 20px;
            font-weight: 700;
            text-align: center;
            box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
        }

        .timeline-phase-separator:first-child {
            margin-top: 24px;
        }

        /* Education */
        .education-grid {
            display: grid;
            gap: 16px;
        }

        .education-item {
            background: var(--light-gray);
            padding: 20px 24px;
            border-radius: 8px;
            border-left: 3px solid var(--accent-blue);
        }

        .education-item h4 {
            font-size: 17px;
            font-weight: 600;
            color: var(--heading-gray);
            margin-bottom: 6px;
        }

        .education-item p {
            color: var(--medium-text);
            margin-bottom: 0;
            font-size: 15px;
        }

        /* Courses */
        .courses-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease;
        }

        .courses-content.expanded {
            max-height: 5000px;
        }

        .courses-category {
            margin-bottom: 28px;
        }

        .courses-category h5 {
            font-size: 16px;
            font-weight: 600;
            color: var(--accent-blue);
            margin-bottom: 16px;
            margin-top: 20px;
        }

        .courses-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 12px;
        }

        .course-item {
            background: var(--light-gray);
            padding: 12px 16px;
            font-size: 14px;
            color: var(--dark-text);
            border-radius: 6px;
            border-left: 2px solid var(--border-gray);
            transition: all 0.2s ease;
        }

        .course-item:hover {
            border-left-color: var(--accent-blue);
            background: var(--white);
            box-shadow: 0 2px 6px rgba(0,0,0,0.06);
        }

        .course-item-with-cert {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
        }

        .cert-icon {
            background: var(--accent-blue);
            color: var(--white);
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .cert-icon:hover {
            background: #1565C0;
            transform: scale(1.05);
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.85);
            animation: fadeIn 0.3s ease;
        }

        .modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-content {
            background-color: var(--white);
            margin: auto;
            padding: 30px;
            border-radius: 8px;
            max-width: 90%;
            max-height: 90vh;
            position: relative;
            animation: slideIn 0.3s ease;
            box-shadow: 0 8px 32px rgba(0,0,0,0.3);
        }

        @keyframes slideIn {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 2px solid var(--border-gray);
        }

        .modal-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--dark-text);
            margin: 0;
        }

        .close-modal {
            color: var(--medium-text);
            font-size: 32px;
            font-weight: bold;
            cursor: pointer;
            line-height: 1;
            transition: color 0.3s ease;
            padding: 0 8px;
        }

        .close-modal:hover {
            color: var(--accent-blue);
        }

        .modal-body {
            max-height: calc(90vh - 120px);
            overflow: auto;
        }

        .modal-body img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 4px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        /* Motto */
        .motto {
            background: linear-gradient(135deg, var(--accent-blue) 0%, #1565C0 100%);
            color: var(--white);
            padding: 32px;
            text-align: center;
            font-size: 22px;
            font-weight: 600;
            font-style: italic;
            margin: 60px 0;
            border-radius: 8px;
            box-shadow: 0 4px 16px rgba(25, 118, 210, 0.3);
        }

        /* Footer */
        footer {
            background: transparent;
            padding: 32px 0;
            border-radius: 0;
            text-align: center;
            margin-top: 60px;
            border-top: 2px solid var(--border-gray);
        }

        footer p {
            color: var(--medium-text);
            margin: 0;
            font-size: 14px;
        }

        footer a {
            color: var(--accent-blue);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        footer a:hover {
            color: #1565C0;
            text-decoration: underline;
        }
