@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;700&display=swap');

:root {
    --purple: #a855f7;
    --purple-glow: rgba(168, 85, 247, 0.4);
    --bg-dark: #050505;
    --glass: rgba(10, 10, 12, 0.8);
    --border-color: rgba(168, 85, 247, 0.3);
    --text: #ffffff;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow-x: hidden;
    position: relative;
}

/* MATRIX CANVAS BACKGROUND */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: #020205;
    opacity: 0.6;
}

.code-keyword { color: #f472b6; font-weight: bold; }
.code-func { color: #60a5fa; }
.code-string { color: #34d399; }
.code-comment { color: #6b7280; font-style: italic; }

/* ANIMATED MESH BACKGROUND (ABSTRAKCYJNE) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(at 0% 0%, rgba(168, 85, 247, 0.08) 0, transparent 50%), 
        radial-gradient(at 50% 0%, rgba(20, 20, 25, 1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.08) 0, transparent 50%), 
        radial-gradient(at 50% 50%, rgba(10, 10, 15, 1) 0, transparent 50%),
        radial-gradient(at 0% 100%, rgba(168, 85, 247, 0.08) 0, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.08) 0, transparent 50%);
    background-size: 200% 200%;
    animation: meshFlow 15s ease infinite;
    z-index: -1;
}

@keyframes meshFlow {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* GŁÓWNA KARTA BIO - COMPACT VERSION */
.main-card {
    width: 100%;
    max-width: 650px;
    background: var(--glass);
    backdrop-filter: blur(40px);
    border-radius: 40px;
    padding: 40px;
    position: relative;
    box-shadow: 0 50px 150px rgba(0,0,0,0.9);
    text-align: center;
    border: 1px solid var(--border-color);
}

/* PROFIL - ZMNIEJSZONY */
.profile-img-container {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.profile-img-container img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 2px solid var(--purple);
    padding: 8px;
    background: rgba(0,0,0,0.4);
    box-shadow: 0 0 30px var(--purple-glow);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: cover;
}

h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: 4rem;
    letter-spacing: 4px;
    margin-bottom: 0px;
    color: #fff;
}

.subtitle {
    color: var(--purple);
    font-weight: 700;
    letter-spacing: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    opacity: 0.8;
}

/* MUSIC INTEGRATED - COMPACT & PREMIUM */
.music-player-inline {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 10px 25px;
    border-radius: 50px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.music-btn-small {
    background: var(--purple);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.music-btn-small:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--purple);
}

/* CUSTOM PURPLE SLIDER */
#volume-slider {
    -webkit-appearance: none;
    width: 80px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--purple);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--purple);
}

.song-info-small {
    font-family: 'Bebas Neue', cursive;
    font-size: 0.9rem;
    color: var(--purple);
    letter-spacing: 1px;
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 15px;
}

/* SOCIALS - TIGHTER */
.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.social-btn {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--purple);
    color: #000;
    transform: translateY(-5px);
}

/* PROJECTS GRID - COMPACT */
.projects-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--purple);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.project-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 20px;
    text-align: left;
    transition: all 0.4s ease;
}

.project-card:hover {
    border-color: var(--purple);
}

.project-card h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.project-card p {
    color: #888;
    font-size: 0.8rem;
    line-height: 1.4;
}
