:root {
    --bg-body: #121214; /* Ciemne tło strony */
    --bg-card: #28282e; /* Jaśniejsze tło karty */
    --text-main: #ffffff;
    --text-sub: #a9a9b3;
    --accent-purple: #c299ff; /* Kolor przycisków i tagów */
    --bg-button: #44444a; /* Tło ciemniejszych przycisków */
    --clr-typescript: #3178c6;
    --clr-python: #3776ab;
    --clr-html: #e34c26;
    --clr-css: #264de4;
    --clr-kotlin: #7f52ff;
    --clr-dart: #00d2b8;
    --clr-go: #00add8;
    --clr-discord: #5865f2;
    --clr-github: #44444a;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family:
        "Inter",
        -apple-system,
        sans-serif;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh; 
}

.profile-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    display: flex; 
    flex-direction: row; 
    align-items: center; 
    gap: 30px;
    max-width: 800px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); 
}


.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* AVATAR */
.avatar {
    width: 150px;
    height: 150px;
    border-radius: 5px;
    object-fit: cover;
}



h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 800;
}

h1 span {
    font-family: "Impact", sans-serif; /* Nyx używa ciężkiego fontu */
    text-transform: uppercase;
}

.subtitle {
    color: var(--text-sub);
    margin: 10px 0 20px 0;
    font-size: 1.1rem;
}


.languages {
    margin-bottom: 20px;
    display: flex;         /* Zmieniamy na flex, żeby kontrolować odstępy */
    flex-wrap: wrap;       /* Pozwala tagom przechodzić do nowej linii */
    gap: 8px;              /* Tworzy równe odstępy poziome i pionowe */
}

.languages h3 {
    width: 100%;           /* Nagłówek "Languages" zajmie całą szerokość */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    margin-top: 15px;      /* Odstęp od tagów powyżej */
}

.tag {
    /* Usuwamy margin-right, bo 'gap' w .languages załatwia sprawę */
    color: #28282e;
    padding: 6px 12px;     /* Nieco większy padding dla lepszego wyglądu */
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-flex;  /* Inline-flex lepiej trzyma tekst w środku */
    align-items: center;
    white-space: nowrap;   /* Zapobiega łamaniu tekstu wewnątrz jednego tagu */
}

/* PRZYCISKI */
.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    text-transform: uppercase;
}

/* Kolory przycisków */

.btn-dark {
    background-color: var(--bg-button);
    color: white;
}
.btn-purple {
    background-color: var(--accent-purple);
    color: #28282e;
}
.bg-ts {
    background-color: var(--clr-typescript) !important;
    color: white !important;
}
.bg-py {
    background-color: var(--clr-python) !important;
    color: white !important;
}
.bg-html {
    background-color: var(--clr-html) !important;
    color: white !important;
}
.bg-css {
    background-color: var(--clr-css) !important;
    color: white !important;
}
.bg-kotlin {
    background-color: var(--clr-kotlin) !important;
    color: white !important;
}
.bg-dart {
    background-color: var(--clr-dart) !important;
    color: white !important;
}
.bg-go {
    background-color: var(--clr-go) !important;
    color: white !important;
}
.bg-discord {
    background-color: var(--clr-discord) !important;
    color: white !important;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Responsywność dla telefonów */
@media (max-width: 600px) {
    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 20px;
    }
    .actions {
        justify-content: center;
    }
}




/* KONTENER DLA PODSTRONY */
.projects-bg {
    height: auto; /* Pozwalamy stronie rosnąć w dół */
    min-height: 100vh;
    padding: 50px 20px;
    align-items: flex-start; /* Resetujemy centrowanie z body */
}

.projects-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.projects-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

/* GRID DLA KART */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsywne kolumny */
    gap: 25px;
}

/* OSOBNA KARTA PROJEKTU */
.project-card-standalone {
    background-color: var(--bg-card);
    border-radius: 15px;
    overflow: hidden; /* Żeby zdjęcie nie wystawało poza rogi */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.project-card-standalone:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(194, 153, 255, 0.15);
    border-color: var(--accent-purple);
}

.project-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #333;
    opacity: 0.8;
    transition: 0.3s;
}

.project-card-standalone:hover .project-img {
    opacity: 1;
}

.project-details {
    padding: 20px;
}

.project-details h3 {
    margin: 0 0 10px 0;
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 15px;
    box-sizing: border-box;
}

/* Mini karta dla mniejszych rzeczy */
.project-item-mini {
    background-color: var(--bg-card);
    border-radius: 15px;
    padding: 20px;
    border: 1px dashed #444;
    display: flex;
    align-items: center;
}