﻿:root {
    --dark-bg: #121212;
    --dark-card: #1E1E1E;
    --accent-color: #4CAF50;
    --text-color: #E0E0E0;
    --bubble-bg: rgba(30, 30, 30, 0.7);
    --menu-bg: rgba(30, 30, 30, 0.95);
}

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

body {
    font-family: 'Courier New', monospace;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow: hidden;
}

/* Menu hamburger */
.menu-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
}

.menu-toggle {
    background-color: var(--menu-bg);
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .menu-toggle:hover {
        background-color: var(--accent-color);
        color: var(--dark-bg);
        box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
    }

    .menu-toggle span {
        display: inline-block;
        transition: transform 0.3s ease;
    }

    .menu-toggle.active span {
        transform: rotate(90deg);
    }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background-color: var(--menu-bg);
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

    .dropdown-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.menu-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

    .menu-item:hover {
        background-color: rgba(76, 175, 80, 0.1);
        padding-left: 25px;
    }

    .menu-item a {
        color: var(--text-color);
        text-decoration: none;
        display: block;
        font-size: 16px;
    }

    .menu-item .description {
        font-size: 12px;
        color: #808080;
        margin-top: 5px;
        line-height: 1.4;
    }

/* Modal dla współpracy */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background-color: var(--dark-card);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s ease;
}

    .modal-close:hover {
        color: var(--accent-color);
        transform: rotate(90deg);
    }

.modal h2 {
    color: var(--accent-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.modal ul {
    list-style: none;
    padding: 0;
}

.modal li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(76, 175, 80, 0.1);
}

    .modal li:before {
        content: "▸ ";
        color: var(--accent-color);
        margin-right: 10px;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#welcome-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    position: relative;
    z-index: 2;
    padding: 20px;
    pointer-events: none;
}

    #welcome-container h1 {
        font-size: clamp(2rem, 5vw, 3.5rem);
        margin-bottom: 0.5em;
        text-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
    }

    #welcome-container .intro-text {
        font-size: clamp(1rem, 2.5vw, 1.25rem);
        max-width: 700px;
        color: #b0b0b0;
        margin-bottom: 20px;
        line-height: 1.8;
    }

    #welcome-container .instruction {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
        color: var(--accent-color);
        opacity: 0.8;
        margin-top: 10px;
    }

#bubbles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bubble {
    position: absolute;
    bottom: -150px;
    background-color: var(--bubble-bg);
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    text-align: center;
    padding: 5px;
    animation: flyUp linear;
    backdrop-filter: blur(2px);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.2);
    will-change: transform, opacity;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    pointer-events: all;
    z-index: 1000;
    user-select: none;
}

    .bubble * {
        pointer-events: none;
        user-select: none;
    }

    .bubble:hover {
        transform: scale(1.1) !important;
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
        border-color: #81C784;
        animation-play-state: paused;
    }

@keyframes flyUp {
    0% {
        transform: translateY(0) translateZ(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-120vh) translateZ(0);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bubble {
        animation-duration: 5s !important;
    }
}

@media (max-width: 768px) {
    .bubble {
        font-size: 12px;
        backdrop-filter: none;
    }

    .modal-content {
        padding: 20px;
        width: 95%;
    }

    .menu-container {
        top: 10px;
        left: 10px;
    }
}
.projects-menu-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.projects-menu-toggle {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

    .projects-menu-toggle:hover {
        background-color: var(--accent-color);
        transform: scale(1.1);
    }

    .projects-menu-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        background-color: white;
        border-radius: 3px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Animacja hamburgera do X */
    .projects-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .projects-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .projects-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

.projects-menu-panel {
    position: absolute;
    bottom: 65px; /* Tuż nad przyciskiem */
    right: 0;
    width: 250px;
    background-color: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    /* Ukrycie i animacja */
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .projects-menu-panel.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .projects-menu-panel h3 {
        color: white;
        margin-top: 0;
        margin-bottom: 15px;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 10px;
    }

    .projects-menu-panel ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .projects-menu-panel li a {
        display: block;
        color: #e0e0e0;
        text-decoration: none;
        padding: 10px 5px;
        border-radius: 4px;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

        .projects-menu-panel li a:hover {
            background-color: var(--accent-color);
            color: white;
        }