
* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
        Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
        sans-serif;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}


body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
background:
    radial-gradient(
        ellipse at 15% 15%,
        rgba(70, 180, 85, 0.10),
        transparent 25%
    ),
    radial-gradient(
        ellipse at 85% 30%,
        rgba(40, 140, 70, 0.09),
        transparent 45%
    ),
    radial-gradient(
        ellipse at 45% 75%,
        rgba(75, 170, 90, 0.08),
        transparent 20%
    ),
    radial-gradient(
        ellipse at 90% 95%,
        rgba(60, 150, 75, 0.07),
        transparent 70%
    ),
    #101110;

    color: white;
    position: relative;
    isolation: isolate;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background-image:
        linear-gradient(
            to right,
            rgba(150, 200, 140, 0.055) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(150, 200, 140, 0.055) 1px,
            transparent 1px
        );

    background-size: 40px 40px;

    /* Delikatne wygaszenie kratki przy krawędziach */
    mask-image: radial-gradient(
        ellipse at 50% 20%,
        black 20%,
        transparent 85%
    );
}

#cursor-glow {
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none;

    background: radial-gradient(
        250px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(191, 235, 12, 0.12),
        rgba(12, 234, 8, 0.06) 25%,
        transparent 85%
    );
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 30px;
    background-color: #f0f0f0;
    color: black;
}

nav a {
    text-decoration: none;
    color: black;
}

.site-brand {
    width: 30%;
}

.site-brand h5 {
    font-size: 18px;
    margin: 15px 0;
}

.nav-links {
    width: 70%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}


header {
    width: 100%;
    margin: 0;
    padding: 50px 20px;
    text-align: center;

    background-image:
        linear-gradient(
            to bottom,
            rgba(21, 21, 21, 0) 30%,
            rgb(21, 21, 21) 100%
        ),
        url("baner.jpg");

    background-size: cover;
    background-position: center;
}

header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

header h4 {
    font-size: 18px;
    font-weight: normal;
}

header p {
    max-width: 650px;
    margin: 20px auto;
    line-height: 1.6;
}


button {
    background-color: rgb(10, 57, 29);
    border: none;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}

button a {
    color: white;
    text-decoration: none;
}

#btnZobaczProjekty {
    background-color: rgb(10, 57, 29);
    border: 1px solid rgb(255, 255, 255);
    padding: 15px 30px;
    border-radius: 40px;
    color: white;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#btnZobaczProjekty:hover {
    transform: scale(1.05);
}

#btnPorozmawiajmy {
    background-color: rgba(255, 255, 255, 0);
    border: 1px solid white;
    padding: 15px 10px;
    border-radius: 40px;
    color: white;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#btnPorozmawiajmy:hover {
    transform: scale(1.05);
}


.stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.stat-card {
    width: 125px;
    padding: 10px;
    border: 1px solid white;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.stat-card:hover {
    background-color: rgb(10, 57, 29);
    transform: translateY(-10px);
}

.stat-card h3 {
    font-size: 28px;
    margin: 10px 0 5px;
}

.stat-card p {
    margin-top: 0;
}

/* =========================
   INFORMACJE O MNIE
========================= */

#informacje {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;

    width: 100%;
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 30px;
}

.about-copy {
    flex: 1;
    min-width: 0;
    padding: 10px;
}

.about-copy h2 {
    margin-top: 0;
}

.about-copy p {
    line-height: 1.8;
    color: #ccc;
}

/* =========================
   UMIEJĘTNOŚCI
========================= */

.skills-list {
    width: 35%;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-card {
    width: 100%;
    padding: 15px;
    border: 1px solid white;
    border-radius: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.skill-card:hover {
    background-color: rgb(10, 57, 29);
    transform: translateY(-4px);
}

.skill-bar {
    width: 100%;
    height: 10px;
    margin-top: 8px;
    background-color: #333;
    border-radius: 5px;
    overflow: hidden;
}

.skill-bar span {
    display: block;
    height: 100%;
    background-color: #ffea00;
    border-radius: 5px;
}


.skill-bar .skill-ui {
    width: 81%;
}

.skill-bar .skill-html {
    width: 86%;
}

.skill-bar .skill-js {
    width: 35%;
}

.skill-bar .skill-creativity {
    width: 2990px;
}



#projekty {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 20px;

    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 200px;
    min-height: 285px;
    padding: 15px;
    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-align: center;

    background-color: rgba(255, 255, 255, 0.02);

    text-decoration: none;
    color: inherit;
    cursor: pointer;

    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.project-card:hover {
    background-color: rgb(10, 57, 29);
    border-color: rgba(100, 220, 130, 0.6);
    transform: translateY(-8px);
}

.project-img {
    display: block;
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 6px;
}

.project-card h4 {
    width: 100%;
    margin: 15px 0 0;
    text-align: center;
}

.project-description,
.project-card > p {
    width: 100%;
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 20px;
    box-sizing: border-box;

    text-align: left;
    line-height: 1.5;
    color: #ccc;
}

.project-description p {
    margin: 0;
    text-align: left;
}

#categorie {
    width: 100%;
    padding: 100px 0;
    overflow: hidden;
    text-align: center;
}

.categorie-track {
    display: flex;
    width: max-content;
    animation: przesuwanie 18s linear infinite;
}

.categorie-group {
    display: flex;
    flex-shrink: 0;
    gap: 20px;
    padding-right: 20px;
}

.categorie-card {
    flex: 0 0 220px;
    padding: 10px;
    box-sizing: border-box;

    border: 1px solid white;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.03);

    text-align: center;
    white-space: nowrap;
}

@keyframes przesuwanie {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-20%);
    }
}

.categorie-track:hover {
    animation-play-state: paused;
}



#porozmawiajmy {
    padding: 40px 30px;
    padding-bottom: 100px;
}

.contact-form {
    border: 1px solid white;
    border-radius: 10px;
    padding-left: 10px;
    padding-bottom: 15px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.contact-form p{
    color: #ccc;
}
#btn-contact-idea {
    margin-top: 25px;
    background-color: rgb(10, 57, 29);
    border: 1px solid rgb(255, 255, 255);
    font-size: 16px;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 40px;
    color: white;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
#btn-contact-idea:hover {
    transform: scale(1.05);
}



/* =========================
   FAQ
========================= */

#faq {
    width: 100%;
    max-width: 750px;
    margin: 0 auto 60px;
    padding: 0;

    text-align: center;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
}

#faq h3 {
    margin: 0;
    padding: 20px;
}

.faq-item {
    border-bottom: 1px solid #333;
    text-align: left;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item details {
    width: 100%;
}

.faq-item summary {
    position: relative;
    padding: 18px 45px 18px 18px;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #bfeb0c;
    font-size: 20px;
}

.faq-item details[open] summary::after {
    content: "−";
}

.faq-item p {
    padding: 0 18px 18px;
    margin: 0;
    color: #bbb;
    line-height: 1.6;
}

/* =========================
   STOPKA
========================= */

footer {
    text-align: center;
    padding: 20px;
    background-color: #151515;
    color: #bbb;
}

footer p {
    margin: 0;
    line-height: 1.6;
}



/* =========================
   TABLETY I TELEFONY
========================= */

@media (max-width: 700px) {
    nav {
        padding: 0 15px;
    }

    .site-brand {
        width: auto;
    }

    .nav-links {
        width: auto;
        gap: 10px;
    }

    header {
        padding: 50px 20px;
    }

    header h1 {
        font-size: 32px;
    }

    #informacje {
        flex-direction: column;
        gap: 20px;
        margin-top: 40px;
        padding: 0 20px;
    }

    .about-copy {
        width: 100%;
        padding: 10px 0;
    }

    .skills-list {
        width: 100%;
    }

    #projekty {
        margin: 50px auto;
        padding: 0 15px;
        gap: 15px;
    }

    .project-card {
        width: min(100%, 280px);
    }

    #porozmawiajmy {
        padding: 30px 20px;
    }

    #faq {
        width: calc(100% - 30px);
        margin-bottom: 40px;
    }

    #btnZobaczProjekty,
    #btnPorozmawiajmy {
        margin: 5px;
    }
}

@media (max-width: 400px) {
    header h1 {
        font-size: 28px;
    }

    #btnZobaczProjekty,
    #btnPorozmawiajmy {
        width: 100%;
        max-width: 250px;
    }

    .stats {
        gap: 10px;
    }

    .stat-card {
        width: 110px;
    }
}
