:root {
            --bg: #030303;
            --white: #ffffff;
        }

        html,
        body {
            margin: 0;
            padding: 0;
            overflow: hidden;
            height: 100%;
            width: 100%;
            touch-action: none;
        }

        * {
            box-sizing: border-box;
            user-select: none;
            -webkit-user-select: none;
            -webkit-user-drag: none;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            background-color: var(--bg);
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: clamp(20px, 5vmin, 50px) clamp(20px, 5vmin, 50px);
            background-position: center center;
            display: flex;
            justify-content: center;
            align-items: center;
            perspective: 1500px;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* --- ZOPTYMALIZOWANA FALA KOLORÓW --- */
        .color-wave {
            position: fixed;
            top: 50%;
            left: 50%;
            width: 200vmax;
            height: 200vmax;
            margin-top: -100vmax;
            margin-left: -100vmax;
            border-radius: 50%;
            background: linear-gradient(120deg, #ff0055, #4a00e0, #00ff99, #ffcc00);
            background-size: 300% 300%;
            animation: rgb-bg 12s ease infinite;

            -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 65%);
            mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 65%);

            transform: scale(0);
            opacity: 0;
            z-index: -4;
            pointer-events: none;
            transition: transform 2.5s cubic-bezier(0.25, 1, 0.25, 1), opacity 2s ease;
        }

        body.colorful-mode .color-wave {
            transform: scale(1);
            opacity: 0.85;
        }

        @keyframes rgb-bg {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }

        .vignette {
            position: fixed;
            inset: 0;
            background: radial-gradient(circle at center, transparent 30%, #030303 100%);
            z-index: -3;
            pointer-events: none;
            transition: opacity 2.5s ease;
        }

        body.colorful-mode .vignette {
            opacity: 0.15;
        }

        .glass-wrapper {
            position: relative;
            transform-style: preserve-3d;
            will-change: transform;
            z-index: 10;
            transition: opacity 0.5s ease;
        }

        .glass-wrapper.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .glass-panel {
            position: relative;
            width: 90vw;
            max-width: 400px;
            max-height: 90vh;
            padding: clamp(10px, 5vmin, 32px) clamp(10px, 4vmin, 24px);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
            backdrop-filter: blur(30px) saturate(120%);
            -webkit-backdrop-filter: blur(30px) saturate(120%);
            border-radius: clamp(10px, 3vmin, 20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow:
                0 20px 40px -10px rgba(0, 0, 0, 0.6),
                0 10px 20px -5px rgba(0, 0, 0, 0.4),
                inset 0 0 30px rgba(255, 255, 255, 0.05);
            pointer-events: auto;
            transform-style: preserve-3d;
            transition: box-shadow 2.5s ease, border-color 2.5s ease, background 2.5s ease;
        }

        body.colorful-mode .glass-panel {
            box-shadow:
                0 30px 60px -10px rgba(0, 0, 0, 0.4),
                0 0 50px rgba(255, 255, 255, 0.15),
                inset 0 0 40px rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.6);
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
        }

        .glass-panel::before {
            content: '';
            position: absolute;
            inset: 0;
            background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)" opacity="0.04"/%3E%3C/svg%3E');
            z-index: -1;
            pointer-events: none;
            border-radius: inherit;
        }

        .glass-glare {
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
            opacity: 0;
            transition: opacity 0.4s ease;
            pointer-events: none;
            z-index: 1;
            border-radius: inherit;
        }

        .main-text {
            font-family: 'Syncopate', sans-serif;
            font-size: clamp(14px, 8vmin, 3rem);
            font-weight: 700;
            color: var(--white);
            text-transform: lowercase;
            line-height: 1;
            transform: translateZ(40px);
            text-shadow: 0 10px 20px rgba(0, 0, 0, 0.8), 0 5px 10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 255, 255, 0.2);
            transition: text-shadow 2.5s ease;
        }

        body.colorful-mode .main-text {
            text-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 5px 10px rgba(0, 0, 0, 0.2), 0 0 50px rgba(255, 255, 255, 0.9);
        }

        .sub-text {
            font-family: 'Noto Sans JP', sans-serif;
            font-size: clamp(8px, 3.5vmin, 1.5rem);
            font-weight: 300;
            color: rgba(255, 255, 255, 0.75);
            margin-top: clamp(2px, 1.5vmin, 8px);
            line-height: 1;
            transform: translateZ(30px);
            text-shadow: 0 8px 16px rgba(0, 0, 0, 0.7), 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.15);
        }

        .buttons-container {
            display: flex;
            flex-wrap: wrap;
            gap: clamp(4px, 2vmin, 16px);
            margin-top: clamp(10px, 5vmin, 32px);
            width: 100%;
            max-width: 300px;
            transform: translateZ(45px);
            justify-content: center;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: clamp(4px, 2vmin, 12px) clamp(8px, 4vmin, 24px);
            border-radius: 50px;
            color: var(--white);
            text-decoration: none;
            font-family: 'Syncopate', sans-serif;
            font-size: clamp(6px, 2.5vmin, 0.8rem);
            font-weight: 700;
            text-transform: uppercase;
            flex: 1;
            min-width: fit-content;
            white-space: nowrap;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.5);
            transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        }

        .full-page-section {
            position: fixed;
            inset: 0;
            background: transparent;
            z-index: 99999;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s ease;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: var(--white);
            overflow: hidden;
        }

        .full-page-section.active {
            opacity: 1;
            pointer-events: auto;
        }

        .full-page-section .close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: var(--white);
            font-size: 24px;
            cursor: pointer;
            z-index: 100000;
            transition: all 0.3s ease;
            line-height: 1;
        }

        .full-page-section .close-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }

        .panel-nav {
            display: flex;
            gap: 10px;
            margin-bottom: 30px;
            justify-content: center;
            width: 100%;
        }

        .panel-nav .btn {
            font-size: clamp(10px, 3vmin, 14px);
            padding: 8px 16px;
        }

        .panel-nav .btn.active {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.8);
            box-shadow: 0 0 15px rgba(255,255,255,0.2);
        }

        @media (max-width: 600px) {
            .panel-nav {
                flex-direction: column;
                align-items: center;
                background: rgba(255, 255, 255, 0.08);
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
                border-radius: 20px;
                padding: 8px;
                gap: 0;
                border: 1px solid rgba(255, 255, 255, 0.2);
                transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            }

            .panel-nav .btn {
                display: flex;
                width: 100%;
                background: rgba(255, 255, 255, 0.05);
                border: 1px solid transparent;
                
                max-height: 0;
                opacity: 0;
                margin-top: 0;
                padding-top: 0;
                padding-bottom: 0;
                border-width: 0;
                overflow: hidden;
                transition: all 0.4s ease;
                order: 2;
            }

            .panel-nav .btn.active {
                max-height: 60px;
                opacity: 1;
                padding: 12px 20px;
                border-width: 1px;
                background: rgba(255, 255, 255, 0.2);
                border-color: rgba(255, 255, 255, 0.5);
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
                order: 1;
            }

            .panel-nav.expanded .btn {
                max-height: 60px;
                opacity: 1;
                margin-top: 8px;
                padding: 12px 20px;
                border-width: 1px;
            }

            .panel-nav.expanded .btn.active {
                margin-top: 0;
            }

            .panel-nav .btn.active::after {
                content: ' ▼';
                font-size: 10px;
                margin-left: 10px;
            }
            .panel-nav.expanded .btn.active::after {
                content: ' ▲';
            }
        }

        .panel-section {
            display: none;
            width: 100%;
            animation: fadeIn 0.4s ease forwards;
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 30px;
            width: 100%;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }

        .project-card {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 15px;
            padding: 25px;
            text-align: left;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .project-card:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.4);
            box-shadow: 0 10px 20px rgba(0,0,0,0.4);
        }

        .project-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }

        .project-logo {
            width: 45px;
            height: 45px;
            border-radius: 10px;
            object-fit: cover;
            background: rgba(255, 255, 255, 0.1);
        }

        .project-title {
            font-family: 'Syncopate', sans-serif;
            font-size: clamp(16px, 4vmin, 22px);
            font-weight: 700;
            color: var(--white);
            margin-bottom: 0;
        }

        .project-desc {
            font-size: clamp(12px, 3vmin, 14px);
            line-height: 1.5;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 20px;
            flex-grow: 1;
        }

        .project-details {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 20px;
        }

        .project-badge {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 4px 12px;
            font-size: 11px;
            color: rgba(255,255,255,0.9);
            white-space: nowrap;
        }

        .project-link {
            display: inline-block;
            background: rgba(255, 255, 255, 0.1);
            color: var(--white);
            text-decoration: none;
            padding: 10px 20px;
            border-radius: 30px;
            font-size: 12px;
            font-family: 'Syncopate', sans-serif;
            border: 1px solid rgba(255, 255, 255, 0.3);
            transition: all 0.2s ease;
            text-align: center;
        }

        .project-link:hover {
            background: var(--white);
            color: #000;
        }

        .panel-section.active {
            display: block;
        }

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

        .full-page-content {
            position: relative;
            text-align: center;
            width: calc(100vw - clamp(20px, 4vmin, 60px));
            height: calc(100vh - clamp(20px, 4vmin, 60px));
            max-width: none;
            max-height: none;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
            padding: clamp(20px, 6vmin, 60px);
            transform: translateY(30px);
            transition: transform 0.5s ease, opacity 0.5s ease;
            opacity: 0;
            background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
            backdrop-filter: blur(30px) saturate(120%);
            -webkit-backdrop-filter: blur(30px) saturate(120%);
            border-radius: clamp(10px, 3vmin, 20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow:
                0 20px 40px -10px rgba(0, 0, 0, 0.6),
                0 10px 20px -5px rgba(0, 0, 0, 0.4),
                inset 0 0 30px rgba(255, 255, 255, 0.05);
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
        }

        .full-page-content::-webkit-scrollbar {
            width: 10px;
            display: block;
        }

        .full-page-content::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 10px;
            margin: 15px 0;
        }

        .full-page-content::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
        }
        
        .full-page-content::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
            border-color: rgba(255, 255, 255, 0.3);
        }

        .full-page-section.active .full-page-content {
            transform: translateY(0);
            opacity: 1;
            transition-delay: 0.2s;
        }

        .btn:hover {
            background: rgba(255, 255, 255, 0.25);
            border-color: rgba(255, 255, 255, 0.6);
            box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.7);
            transform: translateZ(50px) translateY(-2px);
        }

        .btn:active {
            transform: translateY(0);
            box-shadow: 0 5px 10px -2px rgba(0, 0, 0, 0.6);
        }

        .lang-options {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 30px;
        }

        .lang-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--white);
            padding: 10px 20px;
            border-radius: 20px;
            font-family: 'Syncopate', sans-serif;
            font-size: clamp(10px, 3vmin, 14px);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .lang-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .lang-btn.active {
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.6);
            box-shadow: 0 0 10px rgba(255,255,255,0.2);
        }

        /* Sekretny kwadrat */
        #secret-btn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 30px;
            height: 30px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 16px;
            opacity: 0.05;
            cursor: pointer;
            z-index: 100;
            transition: opacity 0.3s ease, transform 0.3s ease;
            border-radius: 5px;
        }

        #secret-btn:hover {
            opacity: 0.8;
            transform: scale(1.2);
        }

        #fw-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            pointer-events: none;
            z-index: 9999;
        }

        /* --- ABOUT ME --- */
        .about-text {
            font-size: clamp(14px, 3.5vmin, 1.1rem);
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.85);
            margin-top: 15px;
            margin-bottom: 20px;
            text-align: left;
            max-width: 700px;
            background: rgba(255, 255, 255, 0.05);
            padding: 20px;
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }

        .hobby-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: center;
            margin-top: 15px;
            margin-bottom: 30px;
            max-width: 700px;
        }

        .hobby-tag {
            background: rgba(255, 255, 255, 0.1);
            color: var(--white);
            padding: 10px 18px;
            border-radius: 30px;
            font-size: clamp(12px, 3vmin, 0.95rem);
            font-weight: 600;
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-family: 'Noto Sans JP', sans-serif;
        }

        .hobby-tag:hover {
            transform: translateY(-3px) scale(1.05);
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.4);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.1);
        }