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

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            color: #333;
            line-height: 1.6;
        }

        /* Header z menu */
        .header {
            background: rgba(0,0,0,0.4);
            backdrop-filter: blur(15px);
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

        .header-title {
            color: white;
            font-size: 1.8rem;
            font-weight: 700;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        .header-subtitle {
            color: rgba(255,255,255,0.8);
            font-size: 0.9rem;
            margin-top: 2px;
        }

        .category-menu {
            display: flex;
            gap: 5px;
            flex-wrap: wrap;
            margin-top: 10px;
        }

        .category-btn {
            background: rgba(255,255,255,0.1);
            color: rgba(255,255,255,0.9);
            border: 1px solid rgba(255,255,255,0.2);
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.85rem;
            font-weight: 500;
        }

        .category-btn:hover {
            background: rgba(255,255,255,0.2);
            transform: translateY(-1px);
        }

        .category-btn.active {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

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

        .timeline-container {
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 40px 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            margin: 30px 0;
            border: 1px solid rgba(255,255,255,0.2);
        }

        /* Pionowa linia czasu na środku */
        .timeline {
            position: relative;
            padding: 20px 0;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 4px;
            background: linear-gradient(to bottom, #667eea, #764ba2);
            transform: translateX(-50%);
            border-radius: 2px;
        }

        .timeline-item {
            position: relative;
            margin: 40px 0;
            display: flex;
            justify-content: center;
            cursor: pointer;
            opacity: 1;
            transform: translateY(0);
            transition: all 0.5s ease;
        }

        .timeline-item.fade-out {
            opacity: 0;
            transform: translateY(-20px);
        }

        .timeline-item.fade-in {
            animation: fadeInUp 0.6s ease forwards;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Punkt na linii czasu - kolory według kategorii */
        .timeline-point {
            position: absolute;
            left: 50%;
            top: 50%;
            width: 20px;
            height: 20px;
            border: 4px solid white;
            border-radius: 50%;
            transform: translate(-50%, -50%);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
            z-index: 2;
            transition: all 0.3s ease;
        }

        /* Kolory punktów według kategorii */
        .timeline-point.hardware {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
        }

        .timeline-point.software {
            background: linear-gradient(135deg, #3498db, #2980b9);
            box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
        }

        .timeline-point.sieci {
            background: linear-gradient(135deg, #2ecc71, #27ae60);
            box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
        }

        .timeline-point.teorie {
            background: linear-gradient(135deg, #9b59b6, #8e44ad);
            box-shadow: 0 4px 12px rgba(155, 89, 182, 0.4);
        }

        .timeline-point.wydarzenia {
            background: linear-gradient(135deg, #f39c12, #e67e22);
            box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
        }

        .timeline-point.ai {
            background: linear-gradient(135deg, #1abc9c, #16a085);
            box-shadow: 0 4px 12px rgba(26, 188, 156, 0.4);
        }

        .timeline-point.default {
            background: linear-gradient(135deg, #667eea, #764ba2);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        /* Label przywiązany do punktu */
        .timeline-label {
            position: relative;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 15px 25px;
            border-radius: 25px;
            font-weight: 600;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
            transition: all 0.3s ease;
            border: 2px solid rgba(255,255,255,0.2);
            backdrop-filter: blur(5px);
            max-width: 300px;
            text-align: center;
        }

        /* Naprzemiennie po lewej i prawej stronie */
        .timeline-item:nth-child(odd) .timeline-label {
            margin-right: calc(50% + 40px);
        }

        .timeline-item:nth-child(even) .timeline-label {
            margin-left: calc(50% + 40px);
        }

        /* Linie łączące label z punktem */
        .timeline-label::after {
            content: '';
            position: absolute;
            top: 50%;
            width: 30px;
            height: 2px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            transform: translateY(-50%);
        }

        .timeline-item:nth-child(odd) .timeline-label::after {
            right: -30px;
        }

        .timeline-item:nth-child(even) .timeline-label::after {
            left: -30px;
        }

        .timeline-label:hover {
            box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
            transform: scale(1.05);
        }

        .timeline-date {
            font-size: 0.9rem;
            opacity: 0.9;
            margin-bottom: 5px;
        }

        .timeline-title {
            font-size: 1.1rem;
            font-weight: 700;
        }

        /* Modal */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0,0,0,0.8);
            backdrop-filter: blur(10px);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background: white;
            border-radius: 20px;
            width: 95vw;
            height: 95vh;
            box-shadow: 0 25px 50px rgba(0,0,0,0.3);
            position: relative;
            transform: scale(0.9) translateY(50px);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .modal-overlay.active .modal-content {
            transform: scale(1) translateY(0);
        }

        .modal-header {
            padding: 30px 40px 20px;
            border-bottom: 3px solid #667eea;
            position: relative;
            flex-shrink: 0;
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-close:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
        }

        .modal-title {
            font-size: 2.2rem;
            color: #333;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .modal-subtitle {
            font-size: 1.2rem;
            color: #666;
            font-weight: 400;
        }

        .modal-body {
            padding: 30px 40px 40px;
            font-size: 1.1rem;
            line-height: 1.8;
            color: #444;
            flex: 1;
            overflow-y: auto;
        }

        /* Stylowanie scrollbara w modal-body */
        .modal-body::-webkit-scrollbar {
            width: 8px;
        }

        .modal-body::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .modal-body::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 10px;
        }

        .modal-body::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #5a6fd8, #6a419a);
        }

        .modal-body h2 {
            color: #667eea;
            margin: 30px 0 15px 0;
            font-size: 1.8rem;
        }

        .modal-body h3 {
            color: #764ba2;
            margin: 25px 0 12px 0;
            font-size: 1.4rem;
        }

        .modal-body p {
            margin-bottom: 20px;
        }

        .modal-body img {
            max-width: 100%;
            height: auto;
            border-radius: 12px;
            margin: 20px 0;
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
            display: block;
            margin-left: auto;
            margin-right: auto;
        }

        .modal-body figure {
            text-align: center;
            margin: 30px 0;
        }

        .modal-body figure img {
            margin-bottom: 10px;
        }

        .modal-body figcaption {
            font-style: italic;
            color: #666;
            font-size: 0.95rem;
            max-width: 80%;
            margin: 0 auto;
        }

        /* Specjalne klasy dla pozycjonowania obrazów */
        .modal-body img.left-aligned {
            margin-left: 0;
            margin-right: auto;
        }

        .modal-body img.right-aligned {
            margin-left: auto;
            margin-right: 0;
        }

        .modal-body img.centered {
            margin-left: auto;
            margin-right: auto;
        }

        .loading {
            text-align: center;
            padding: 40px;
            font-size: 1.2rem;
            color: #667eea;
        }

        .loading::after {
            content: '';
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid #667eea;
            border-radius: 50%;
            border-top-color: transparent;
            animation: spin 1s linear infinite;
            margin-left: 10px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .no-items {
            text-align: center;
            padding: 60px 20px;
            color: #666;
            font-size: 1.2rem;
            opacity: 0;
            animation: fadeInUp 0.8s ease 0.3s forwards;
        }

        /* Responsywność mobile */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }

            .header-title {
                font-size: 1.5rem;
            }

            .category-menu {
                width: 100%;
                justify-content: flex-start;
                margin-top: 5px;
            }

            .category-btn {
                font-size: 0.8rem;
                padding: 6px 12px;
            }

            .timeline::before {
                left: 30px;
            }

            .timeline-item:nth-child(odd) .timeline-label,
            .timeline-item:nth-child(even) .timeline-label {
                margin-left: 70px;
                margin-right: 0;
                max-width: calc(100vw - 120px);
            }

            .timeline-point {
                left: 30px;
            }

            .timeline-item:nth-child(odd) .timeline-label::after,
            .timeline-item:nth-child(even) .timeline-label::after {
                left: -30px;
                right: auto;
            }

            .container {
                padding: 10px;
            }

            .timeline-container {
                padding: 20px 10px;
            }

            .modal-content {
                width: 98vw;
                height: 98vh;
                border-radius: 15px;
            }

            .modal-header {
                padding: 20px 20px 15px;
            }

            .modal-body {
                padding: 20px;
            }

            .modal-title {
                font-size: 1.8rem;
            }

            .modal-subtitle {
                font-size: 1.1rem;
            }
        }

        @media (max-width: 480px) {
            .header-title {
                font-size: 1.3rem;
            }

            .timeline-label {
                padding: 12px 18px;
                font-size: 0.95rem;
            }

            .timeline-date {
                font-size: 0.8rem;
            }

            .timeline-title {
                font-size: 1rem;
            }

            .category-btn {
                font-size: 0.75rem;
                padding: 5px 10px;
            }
        }

