:root {
    --nav: rgb(25, 25, 25);
    --card: rgb(255, 255, 255);
    --cardBlack: rgb(75, 75, 75);
    --c1: #002ac4;
    --c2: #000000;
    --c3: #000676;
    --speed: 18s;
    --background: rgb(239, 239, 239);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: white;
    font-family: "Open Sans", sans-serif;
}

a {
    display: flex;
    /* sprawia, że <a> zachowuje się jak blok */
    align-items: center;
    justify-content: center;
    width: 100%;
    /* dopasowuje się do szerokości rodzica */
    height: 100%;
    /* dopasowuje się do wysokości rodzica (opcjonalnie) */
    color: inherit;
    /* kolor tekstu jak rodzic */
    text-decoration: none;
    /* brak podkreślenia */
}

.logo a {
    justify-content: left;
}

.gthlnk {
    display: block;
    width: 27px;
    height: 27px;
    font-size: 27px;
}
.gthlnk_big {
    display: block;
    width: 30px;
    height: 30px;
    font-size: 30px;
}
nav {
    width: 100%;
    height: 35px;
    background-color: var(--nav);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

.nav {
    width: 80%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    margin: 0 auto 0 auto;
}

.logo {
    height: 100%;
    display: flex;
    justify-content: left;
    align-items: center;
}

.nav ul {
    display: flex;
    flex-direction: row;
    justify-content: right;
    align-items: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 30%;
}

.nav ul li {
    width: 24%;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav ul li:hover {
    cursor: pointer;
    color: #bdbdbd;
}

.nav ul li:last-of-type {
    background-color: rgb(29, 100, 255);
    padding: 4px;
    border-radius: 20px;
}

section {
    width: 100%;
    margin: 10px 0 10px 0;
    color: black;
}

section:first-of-type {
    height: 80vh;
    margin: 35px 0 0 0;
}

.header {
    width: 80%;
    height: 100%;
    margin: 0 auto 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.left {
    width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: white;
}

.left h1 {
    padding: 0;
    margin: 0;
    font-size: 50px;
}

.left h1:nth-of-type(2) {
    background: -webkit-linear-gradient(#00ffb7, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.button {
    margin: 20px auto 20px 0;
    background-color: rgb(55, 126, 247);
    padding: 14px 22px 14px 22px;
    font-size: 20px;
    border-radius: 20px;
}

.headLinkWrapper {
    display: flex;
    flex-direction: row;
    justify-content: left;
}

.link {
    width: 50px;
    height: 50px;
    border-radius: 20px;
    background-color: #d0d0d089;
    margin: 0px 20px 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: black;
}

.right {
    width: 30%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photoborder {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    width: 80%;
    aspect-ratio: 1/1;
    padding: 10px;
    border-radius: 50%;
    background: -webkit-linear-gradient(#00ffb7, #ffffff);
    overflow: hidden;
}

.photoborder img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

section:nth-of-type(3) {
    background-color: white;
}

.bg-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg,
            var(--c1),
            var(--c2),
            var(--c3),
            var(--c1));
    background-size: 400% 400%;
    animation: shift var(--speed) infinite;
    filter: saturate(1.05) contrast(1.02);
}

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

    50% {
        background-position: 100% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bg-gradient {
        animation: none;
    }
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto 0 auto;
    display: flex;
    flex-direction: column;
}

.center {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@media only screen and (max-width: 1500px) {
    .container {
        width: 100%;
    }
}

.cardContainer {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.card {
    width: 28%;
    padding: 1%;
    margin: 1%;
    background-color: var(--card);
    border-radius: 20px;
    min-height: 160px;
    color: black;
    border: 1px solid #cdcdcd;
    transition: all 0.3s ease-in-out;
}

.card:hover {
    scale: 1.05;
    -webkit-box-shadow: 0px 0px 15px -3px rgba(193, 193, 193, 1);
    -moz-box-shadow: 0px 0px 15px -3px rgba(193, 193, 193, 1);
    box-shadow: 0px 0px 15px -3px rgba(193, 193, 193, 1);
}

.card img {
    display: block;
    width: 50px;
    height: 50px;
    margin: 0 10px 0 0;
}

.card h1 {
    font-size: 20px;
}

.cardWrapper {
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
}

.skillsWrapper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: left;
    align-items: center;
    margin: 10px 0 0 0;

}

.skill {
    margin: 4px 10px 4px 10px;
    padding: 10px 20px 10px 20px;
    background-color: var(--background);
    border-radius: 20px;
    border: 1px solid #cdcdcd;
    transition: all 0.3s ease-in-out;
}

.skill:hover {
    border: 1px solid #00a2ff;
}

.projectsWrapper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
}

.projectCard {
    width: 30%;
    margin: 1%;
    border-radius: 20px;
    overflow: hidden;
    color: black;
    -webkit-box-shadow: 0px 0px 15px -3px rgba(193, 193, 193, 1);
    -moz-box-shadow: 0px 0px 15px -3px rgba(193, 193, 193, 1);
    box-shadow: 0px 0px 15px -3px rgba(193, 193, 193, 1);
    padding-bottom: 10px;
}

.projectCarContainer {
    width: 95%;
    margin: 0 auto 0 auto;
}

.projectCard img {
    display: block;
    width: 100%;
    aspect-ratio: 1/1;
    max-height: 200px;
    overflow: hidden;
}

.projectCard i {
    font-size: 27px;
}

.technologiesWrapper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: left;
    align-items: center;
    margin: 10px 0 10px 0;
}

.technologies {
    margin: 4px 10px 4px 10px;
    padding: 10px 20px 10px 20px;
    background-color: var(--background);
    border-radius: 20px;
    border: 1px solid #cdcdcd;
    transition: all 0.3s ease-in-out;
}

.linkWrapper {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.linkWrapper p {
    margin: 0;
    padding: 0;
}

.twoLink {
    justify-content: space-between;
}

.oneLink {
    justify-content: right;
}


.posts-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

.post {
    display: flex;
    align-items: center;
    gap: 20px;
}

.post.normal .post-image {
    order: 0;
}

.post.normal .post-content {
    order: 1;
}

.post.reverse .post-image {
    order: 1;
}

.post.reverse .post-content {
    order: 0;
}

/* Responsywność */
.post {
    flex-wrap: wrap;
}

.post-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    border-radius: 10px;
}

.post-content {
    flex: 1;
    min-width: 250px;
}

.projectContainer {
    margin: 40px auto 0 auto;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: black;
}

.projectContainer img {
    display: block;
    width: 45%;
    height: auto;
}

.projectContainer .technologiesWrapper {
    justify-content: center;
}

.projectContainer main {
    text-align: justify;
    margin-bottom: 16px;
}

.projectLinkWrapper p {
    display: block;
    padding: 10px 20px 10px 20px;
    background-color: var(--background);
    border: solid 2px var(--c1);
    color: black;
    margin: 5px 0 12px 0;
    border-radius: 24px;
}

.projectLinkWrapper p:first-of-type {
    background-color: var(--c1);
    color: white;
}

.contactContainer {
    width: 80%;
    height: calc(100vh - 40px);
    margin: 0 auto 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#work-from-home {
    display: block;
    width: 50%;
    aspect-ratio: 1/1;
}

#contact-form {
    display: flex;
    flex-direction: column;
    width: 30%;
    justify-content: center;
}

#contact-image {
    display: none;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 5px 10px;
    border-radius: 20px;
    border: none;
    outline: none;
    margin: 10px auto;
    box-sizing: border-box;

    line-height: 1.5;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    resize: vertical;
    /* lub none jeśli chcesz zablokować powiększanie */
}

#contact-form input[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px 0;
    margin: 20px auto;
    border-radius: 25px;
    border: none;
    background-color: #969696;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact-form input[type="submit"]:hover {
    background-color: #0056b3;
}

#about {
    background-color: var(--nav);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    text-align: center;
}
#about h1 {
    font-size: 5em;
    margin: 0;
    padding: 0;
}
#about p {
    font-size: 21px;
}
#interests {
    background-color: var(--background);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 50px;
}
#interests h1 {
    font-size: 3em;
    margin: 10px 0 20px 0;
}
.headWrapper, #interest .headWrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin-top: 18px;
}
#interests .headWrapper {
    width: 80%;
}
.headWrapper .headCard, #interest .headWrapper .headCard {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 25%;
    padding: 35px 0 35px 0;
    border-radius: 25px;
    background-color: var(--cardBlack);
    -webkit-box-shadow: inset 0px 0px 24px -9px var(--nav);
    -moz-box-shadow: inset 0px 0px 24px -9px var(--nav);
    box-shadow: inset 0px 0px 24px -9px var(--nav);
    color: rgb(200, 200, 200);
    letter-spacing: 2px;
}
#interests .headWrapper .headCard {
    width: 30%;
    background-color: var(--background);
    justify-content: left;
    align-items: flex-start;
    color: black;
    padding: 35px 10px 35px 15px;
    height: 300px;
    -webkit-box-shadow: 0px 0px 24px -9px var(--nav);
    -moz-box-shadow: 0px 0px 24px -9px var(--nav);
    box-shadow: 0px 0px 24px -9px var(--nav);
}
.blue {
    background-color: rgb(148, 225, 255);
}
.green {
    background-color: rgb(121, 255, 128);
}
.red {
    background-color: rgb(255, 77, 77);
}
#interests .headCard img {
    width: 15%;
}
.light {
    background-color: var(--card);
    -webkit-box-shadow: inset 0px 0px 24px -9px var(--nav);
    -moz-box-shadow: inset 0px 0px 24px -9px var(--nav);
    box-shadow: inset 0px 0px 24px -9px var(--nav);
    color: rgb(0, 0, 0);
}
.headCard h2 {
    margin: 0;
    padding: 0;
    font-size: 2em;
}
.headCard p {
    font-size: 21px;
    margin: 8px 0 0 0;
    padding: 0;
}
.headCard img {
    display: block;
    width: 40%;
    aspect-ratio: 1/1;
    margin-bottom: 10px;
}