/* === Reset i ogólne === */
* {
    box-sizing: border-box;
}

:root {
    --glowny-kolor-tla: rgb(16, 23, 31);
    --tlo-blokow: #1C2530;
    --tlo-blokow2: #1C2530;
    --motyw-glowny: #8500de;
    /* główny motyw kolorystyczny, paski boczne, linki itp */
    --motyw-hover: #833DE0;
    /* hover do motywu głównego, linki, paski boczne */
    --napisy: #FFFFFF;
    /* napisy, linki, elementy w białym kolorze */
    --motyw-alpha: rgba(0, 0, 0, 0.3);
    /* Motyw zastosowany m.in. w tłach guzików lub bloku stopki */
    --motyw-alpha2: rgba(0, 0, 0, 0.25);
    --motyw-alpha3: rgba(0, 0, 0, 0.5);
    --guziki: rgba(9, 121, 105, 0.5);
    --guziki-hover: #1b2631;

}

button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

body,
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    text-align: center;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    background-color: var(--glowny-kolor-tla);
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    font-family: "Roboto", Arial;
    overflow-y: auto;
}

/* === Selekcja tekstu === */
::selection {
    background: var(--motyw-glowny);
    color: var(--napisy);
}

::-moz-selection {
    background: var(--motyw-glowny);
    color: var(--napisy);
}

/* === Pasek przewijania === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--motyw-alpha3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--motyw-glowny);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--motyw-hover);
}

/* === Nagłówki === */
h1 {
    font-family: "Bebas Neue", Arial;
    font-style: italic;
    font-size: 3rem;
    letter-spacing: 4px;
    text-shadow: 4px 0px 0px rgba(0, 0, 0, 0.8);
    margin: 0;
    color: var(--napisy);
}

h2,
h3 {
    color: var(--motyw-glowny);
    font-family: Roboto, Arial;
    font-weight: bold;
    /* Gradient na tekście */
    background: linear-gradient(-90deg, #ffffff, #8500de);
    -webkit-background-clip: text;
    /* Chrome, Safari, Edge */
    -webkit-text-fill-color: transparent;
    /* Chrome, Safari, Edge */
    background-clip: text;
    /* Firefox */
}

h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}


/* === Tekst i listy === */
p,
ul {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: var(--napisy);
}

ul {
    padding-left: 6%;
    list-style-type: square;
}

.pQuote {
    font-style: Italic;
    letter-spacing: 1px;
    font-size: 1.2rem;
    opacity: 1;
    transition: opacity 0.6s ease;
    /* płynne zanikanie i pojawianie */
}

hr {
    width: 90%;
}

.pLeft {
    font-size: 1.1rem;
    margin-bottom: 35px;
    text-align: left;
    color: var(--napisy);
}

span {
    color: var(--motyw-glowny);
}


.Skills {
    position: relative;
    text-decoration: none;
    font-weight: bold;
    background-color: var(--motyw-alpha);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 7px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--napisy);
    color: var(--napisy);
    z-index: 0;
}

@supports (-webkit-mask: linear-gradient(#fff 0 0)) or (mask: linear-gradient(#fff 0 0)) {
    .Skills {
        border: none;
    }

    .Skills::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 7px;
        padding: 2px;
        background: linear-gradient(90deg, #ffffff, #8500de);
        -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        z-index: -1;
    }
}

/* === Linki === */

.aMore {
    text-decoration: none;
    font-weight: bold;
    background-color: var(--motyw-alpha);
    padding: 10px;
    border-radius: 7px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
}

.aMore:hover {
    background-color: var(--motyw-alpha2);
}

.Ahover {
    margin-bottom: 20px;
    width: 100%;
    max-width: 197px;
    height: auto;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
    transform: scale(1);
}

.Ahover img {
    margin-top: 5px;
    width: 100%;
    height: auto;
    filter: blur(1.5px);
    transition: filter 0.3s ease, transform 0.3s ease;
    transform: scale(1);
}

.Ahover:hover img {
    filter: blur(0);
    transform: scale(1.1);
}

.aBlog {
    text-decoration: none;
    cursor: pointer;
}

a {
    text-decoration: underline;
    color: var(--napisy);
}

a:visited {
    color: var(--napisy);
}

/* === Guziki === */
.basicButton {
    font-size: 1.05rem;
    text-decoration: none;
    padding: 10px;
    margin: 10px 0px 0px;
    border-radius: 7px;
    color: var(--napisy);
    background-color: var(--guziki);
    cursor: pointer;
    transition: color 0.3s, background-color 0.3s;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
}

.basicButton:hover {
    color: var(--motyw-hover);
    background-color: var(--guziki-hover);
}

/* === Sekcje === */
header {
    width: 100%;
    background-color: var(--tlo-blokow);
    text-align: center;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95%;
    max-width: 1000px;
    margin: 20px 0px 50px;
    box-sizing: border-box;
}

.content {
    background: radial-gradient(rgba(255, 255, 255, 0.09), var(--glowny-kolor-tla));
    backdrop-filter: blur(3px);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    overflow-x: hidden;
    border-radius: 7px;
    padding: 10px;
    padding-bottom: 20px;
    margin: 10px 10px 35px;
    box-sizing: border-box;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.5);
}

.Blog {
    margin: 30px auto;
    background-color: var(--tlo-blokow2);
    max-width: 400px;
    height: auto;
    padding: 20px;
    border-radius: 7px;
    color: var(--napisy);
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
}

.contentDiv {
    width: 95%;
    margin: auto;
    margin-bottom: 50px;
    background-color: var(--tlo-blokow2);
    height: auto;
    padding: 10px 10px;
    padding-bottom: 20px;
    border-radius: 7px;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 0px 4px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 0px 4px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0 0px 4px rgba(0, 0, 0, 0.3);
}

.toggle-section {
    overflow: hidden;
}

.section-header {
    align-items: center;
    cursor: pointer;
    padding: 15px 15px;
}

.toggle-btn {
    background: none;
    color: var(--napisy);
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.toggle-btn.rotate {
    transform: rotate(180deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 15px;
}

.section-content .miniaturka,
.section-content iframe {
    width: 650px;
}


.section-content.show {
    max-height: 3000px;
    padding: 15px;
}


.flexBox {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* === Slidery prac – auto loop === */
.drag-slider-container {
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    position: relative;
}

.drag-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.05s linear;
    will-change: transform;
}

.drag-slide {
    flex: 0 0 auto;
    width: 250px;
}

.drag-slide img,
.drag-slide iframe {
    width: 100%;
    border-radius: 12px;
    display: block;
}

/* Responsywność */
@media (max-width: 768px) {

    .section-content iframe,
    .section-content .miniaturka {
        width: 100%;
    }

    .drag-slide {
        width: 180px;
    }

    .drag-slider-track {
        gap: 15px;
    }

}

@media (max-width: 480px) {
    .drag-slide {
        width: 140px;
    }

    .drag-slider-track {
        gap: 10px;
    }

    .drag-slide iframe {
        aspect-ratio: 16 / 9;
    }
}

/* === Elementy formularza === */

form {
    margin: 0 auto;
    align-items: center;
}

label {
    color: var(--napisy);
    margin: 0;
    padding: 0;
}

input {
    background-color: var(--tlo-blokow2);
    color: var(--napisy);
    border: none;
    margin: 0 0 10px 0;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 7px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
}

.formSpan {
    font-size: 1rem;
}

textarea {
    background-color: var(--tlo-blokow2);
    color: var(--napisy);
    font-size: 1.1rem;
    border: none;
    padding: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 0 10px 0;
    border-radius: 7px;
    resize: none;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
}

/* Checkbox stylizacja */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    box-shadow: none;
    border: none;
    outline: none;
    accent-color: var(--motyw-glowny);
}

input[type="checkbox"]:checked {
    background-color: var(--motyw-glowny);
}

/* Etykiety przy checkboxach */
.labelCheckbox {
    display: flex;
    font-size: 1.1rem;
}

/* Formularz kontener */
.Formularz {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding-bottom: 10px;
    margin: 30px 10px 10px 10px;
    box-sizing: border-box;
}

/* === Nawigacja === */
.navigation {
    margin: 20px 0px 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    background-color: var(--tlo-blokow);
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.navigation a {
    display: flex;
    padding: 15px 20px;
    color: var(--napisy);
    text-decoration: none;
    transition: color 0.3s;
}

.navigation a:hover {
    color: var(--motyw-hover);
}

/* === Showbutton i animacja X === */
.showbutton {
    display: none;
    position: relative;
    width: 70px;
    height: 45px;
    background: var(--motyw-glowny);
    border: none;
    border-radius: 7px;
    cursor: pointer;
    margin: 20px auto;
}

.showbutton span {
    display: block;
    height: 4px;
    width: 35px;
    background: var(--napisy);
    margin: 6px auto;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.showbutton.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 6px);
}

.showbutton.active span:nth-child(2) {
    opacity: 0;
}

.showbutton.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -6px);
}

/* === Stopka === */
footer {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-top: auto;
    width: 100%;
    text-align: center;
    padding: 30px;
    background-color: var(--motyw-alpha3);
    color: var(--napisy);
}

footer a {
    text-decoration: underline;
}

footer a.iconLink {
    text-decoration: none;
}

footer a:hover img {
    transform: scale(1.15);
}

/* === Obrazy, grafiki, iframe === */
.svgfooter {
    cursor: pointer;
    vertical-align: middle;
    margin-right: 5px;
    margin-top: 10px;
    width: 32px;
    height: 32px;
}

.svgfooter:hover {
    transform: scale(115%);
}

.svg {
    vertical-align: middle;
    margin-right: 5px;
    width: 24px;
    height: 24px;
}

.imgAvatar {
    border-radius: 100%;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
}

img, video {
    width: 100%;
    height: auto;
    border-radius: 7px;
}


.imgArt {
    display: flex;
    width: 100%;
    height: auto;
    max-width: 200px;
    max-height: 200px;
    margin-right: 20px;
    margin-bottom: 25px;
}

iframe {
    width: 100%;
    height: auto;
    border-radius: 7px;
    aspect-ratio: 16 / 9;
    display: block;
    margin-bottom: 10px;
}


/* === Media queries mobilne === */
@media (max-width: 768px) {

    iframe {
        width: 100%;
    }

    .showbutton {
        display: block;
    }

    .navigation {

        display: block;
        overflow: hidden;
        transition: max-height 0.5s ease;
        max-height: 0;
    }

    .flexBox {
        gap: 10px;
        flex-direction: column;
    }


}

@media (max-width: 480px) {

    .contentDiv {
        width: 100%;
    }

    .content {
        padding: 0px;
        padding-bottom: 20px;
    }

    p,
    ul {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .pLeft {
        line-height: 1.3;
        font-size: 0.95rem;
    }


    /* === Nagłówki === */
    h1 {
        font-size: 2.4rem;

    }

    h2 {
        font-size: 1.8rem;

    }

    h3 {
        font-size: 1.3rem;

    }

    /* === Elementy formularza === */

    .formSpan {
        font-size: 0.8rem;
    }

    .basicButton {
        font-size: 1rem;
    }


}