:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --border-color: rgba(255, 255, 255, 0.15);
}

* {
    box-sizing: border-box;
}

/* Ukrycie domyślnego kursora na komputerach */
@media (pointer: fine) {
    body, a, button, input {
        cursor: none !important;
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    perspective: 1000px;
}

/* --- KURSOR CUSTOMOWY --- */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

body.hovered .cursor-outline {
    width: 50px;
    height: 50px;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

#bgVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

/* --- AUDIOCONTROL & SUWAK GĹOĹšNOĹšCI --- */
.audio-control-wrapper {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 4px 12px 4px 4px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.mute-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.volume-container {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
}

.audio-control-wrapper:hover .volume-container {
    width: 80px;
}

#volumeSlider {
    width: 70px;
    height: 4px;
    accent-color: #ffffff;
}

.main-layout {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    min-height: 100vh;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* --- PASEK GÓRNY I WIDGET ZEGARA / GLOBUSA --- */
.top-bar {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    font-family: monospace;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    overflow: hidden;
    max-height: 42px;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.top-bar:hover {
    max-height: 160px;
    background: rgba(255, 255, 255, 0.07);
}

.top-bar-content {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.clock {
    display: flex;
    align-items: center;
    gap: 6px;
}

.seconds-hidden {
    opacity: 0;
    max-width: 0;
    display: inline-block;
    overflow: hidden;
    transition: all 0.3s ease;
}

.top-bar:hover .seconds-hidden {
    opacity: 1;
    max-width: 30px;
}

/* --- PROFESJONALNY REALISTYCZNY GLOBUS 3D (SKUPIONY NA EUROPIE I POLSCE) --- */
.globe-container {
    margin-top: 14px;
    opacity: 0;
    transform: translateY(10px) scale(0.85);
    transition: all 0.35s ease;
}

.top-bar:hover .globe-container {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.css-globe {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    position: relative;
    background-color: #071124;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 0 25px rgba(0, 0, 0, 0.95),
        inset 0 0 15px rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.css-globe::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/e/ec/World_map_blank_without_borders.svg');
    background-size: 240% 100%;
    background-repeat: no-repeat;
    /* Jaśniejsze, doskonale widoczne kontynenty */
    filter: invert(1) grayscale(100%) brightness(1.35) contrast(2.2);
    animation: rotateEurope 8s ease-in-out infinite;
}

.css-globe::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(0, 0, 0, 0.1) 40%, 
        rgba(0, 0, 0, 0.85) 75%, 
        rgba(0, 0, 0, 0.98) 100%
    );
    box-shadow: 
        inset -10px -10px 20px rgba(0, 0, 0, 0.95), 
        inset 4px 4px 10px rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

@keyframes rotateEurope {
    0%, 100% { background-position: 53.5% 42%; }
    50% { background-position: 51.5% 42%; }
}

.poland-pin {
    position: absolute;
    top: 32%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background-color: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 8px #38bdf8, 0 0 16px #38bdf8;
    z-index: 5;
    animation: pulseLocation 1.5s infinite ease-in-out;
}

@keyframes pulseLocation {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(2.2); opacity: 0.4; }
}

/* --- GĹĂ“WNA KARTA Z EFEKTEM 3D TILT --- */
.content {
    text-align: center;
    margin: auto 0;
    width: 100%;
    transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    will-change: transform;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
    user-select: none;
}

.avatar {
    border-radius: 50%;
    width: 130px;
    height: 130px;
    object-fit: cover;
    border: 2px solid var(--text-primary);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.status-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border: 3px solid var(--bg-color);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.status-dot.online { background-color: #23a55a; box-shadow: 0 0 10px #23a55a; }
.status-dot.idle { background-color: #f0b232; box-shadow: 0 0 10px #f0b232; }
.status-dot.dnd { background-color: #f23f43; box-shadow: 0 0 10px #f23f43; }
.status-dot.offline { background-color: #80848e; box-shadow: none; }

.title {
    font-size: 3.5rem;
    margin: 0 0 10px 0;
    font-weight: 900;
    letter-spacing: -2px;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.3);
    animation: titleGlow 2.5s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { transform: scale(1); text-shadow: 0 0 10px rgba(255, 255, 255, 0.4); }
    100% { transform: scale(1.04); text-shadow: 0 0 25px rgba(255, 255, 255, 1), 0 0 45px rgba(255, 255, 255, 0.8); }
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-family: monospace;
    margin-bottom: 25px;
}

.skills-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    background-color: #e4e4e7;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* --- IKONY SOCIAL MEDIA --- */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin-top: 10px;
}

.social-icons a,
.social-icons a:visited,
.social-icons a:hover,
.social-icons a:focus {
    color: var(--text-secondary);
    font-size: 1.4rem;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.social-icons a:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

/* --- EKRAN WEJŚCIA (OVERLAY) --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.overlay-content {
    text-align: center;
    color: #ffffff;
    animation: pulseText 2s infinite ease-in-out;
}

.overlay-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 8px;
    margin-bottom: 12px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.overlay-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    font-family: monospace;
    text-transform: uppercase;
}

@keyframes pulseText {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}


/* --- EFEKT GLITCH (EASTER EGG NA AWATARZE) --- */
.avatar-wrapper.glitch-active .avatar {
    animation: glitchAnim 0.15s infinite;
    filter: hue-rotate(90deg) saturate(2.5) contrast(1.2);
}

@keyframes glitchAnim {
    0%, 100% { transform: translate(0, 0); }
    20%      { transform: translate(-3px, 2px); }
    40%      { transform: translate(3px, -2px); }
    60%      { transform: translate(-2px, -3px); }
    80%      { transform: translate(2px, 3px); }
}
