* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    background: #050815;
    color: #f4f1e8;
    font-family: Georgia, serif;
}


.menu {
    height: 45px;
    background: linear-gradient(90deg, rgba(22, 25, 45, 0.96), rgba(42, 45, 78, 0.94));
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16%;
    position: sticky;
    top: 0;
    z-index: 15;
}
.logo {
    border: 1px solid #f4f1e8;
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 13px;
}
nav a {
    color: #f4f1e8;
    text-decoration: none;
    margin-left: 30px;
    font-size: 13px;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: #c7b7ff;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #c7b7ff;
}

nav a:hover::after {
    width: 100%;
}


.hero {
    min-height: 80vh;
    background: #070d22;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;

    padding: 4rem;
}



.clouds {
    background: url("img/hero-chmury.webp") center;
    /* background-repeat: repeat-x; */
    background-size: cover;
    
    height: 100vh;
    width: 100vw;
    
    position: absolute;
    top: 20%;
    
    z-index: 9;
}

.hero-text {
    /* background-color: red; */
    max-width: 1100px;
    width: 100%;
    z-index: 12;
    height: 30vh;

    position: relative;
}
.dancer{
    background: url("img/hero-tancerka.png") no-repeat center;
    background-size: contain;
    /* width: min(620px, 100%); */
    height: 600px;
    aspect-ratio: 1/1;
    
    position: absolute;
    right: 5vh;
    top: -50%;
    z-index: 10;
}

h1 {
    font-size: 54px;
    line-height: 1.05;
    letter-spacing: 2px;
    font-weight: normal;
    margin-bottom: 25px;
}





.yellow-shape {
    width: 360px;
    height: 210px;
    background: #f2c434;
    color: #171717;
    border-radius: 120px 120px 30px 30px;
    transform: rotate(-8deg);
    display: flex;
    justify-content: center;
    align-items: center;
}



.button {
    border: 1px solid #f2c434;
    color: #f2c434;
    text-decoration: none;
    padding: 11px 20px;
    font-size: 12px;
    text-transform: uppercase;
    display: inline-block;
}

.small {
    margin-top: 12px;
}

.about {
    padding: 70px 16%;
    display: flex;
    gap: 80px;
    align-items: center;
    background: #050815;
}

.about-text {
    width: 50%;
}

h2 {
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 28px;
}

.about p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.photo {
    width: 330px;
    height: 360px;
    background: #f2c434;
    color: #171717;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio {
    padding: 70px 16%;
    text-align: center;
    background: #050815;
}

.portfolio input {
    display: none;
}

.categories {
    margin-bottom: 30px;
}

.categories label {
    color: #f4f1e8;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    margin: 0 24px;
    cursor: pointer;
}

#malarstwo:checked ~ .categories label[for="malarstwo"],
#grafika:checked ~ .categories label[for="grafika"] {
    color: #f2c434;
}

.gallery {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

#malarstwo:checked ~ .malarstwo-gallery,
#grafika:checked ~ .grafika-gallery {
    display: grid;
}

.gallery img,
.work,
.work-empty {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #f2c434;
    color: #171717;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected {
    padding: 70px 16%;
    text-align: center;
    background: #050815;
}

.project {
    background: #12192b;
    display: grid;
    grid-template-columns: 40px 1fr 1fr 40px;
    gap: 35px;
    align-items: center;
    padding: 45px;
}

.project-image {
    height: 230px;
    background: #f2c434;
}

.project-info {
    text-align: left;
}

.project-info p {
    margin-top: 16px;
    line-height: 1.7;
    font-size: 14px;
}

.arrow {
    font-size: 60px;
    color: #f4f1e8;
}

.dots {
    margin-top: 20px;
}

.dots span {
    width: 7px;
    height: 7px;
    background: #f4f1e8;
    border-radius: 50%;
    display: inline-block;
    margin: 0 4px;
}

.process {
    padding: 70px 16%;
    text-align: center;
    background: #26384d;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    border-top: 1px solid rgba(255,255,255,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.35);
    padding: 35px 0;
}

.steps span {
    color: #f2c434;
}

.steps h3 {
    margin: 12px 0;
}

.steps p {
    font-size: 13px;
    line-height: 1.5;
}

.skills {
    padding: 60px 16% 80px;
    text-align: center;
    background: #26384d;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.skills-grid div {
    border: 1px solid rgba(255,255,255,0.35);
    padding: 15px;
}

.contact {
    padding: 70px 16%;
    background: #050815;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 70px;
}

.contact p {
    line-height: 1.8;
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

input, textarea {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    padding: 13px;
    color: #f4f1e8;
}

textarea {
    grid-column: span 2;
    height: 130px;
}

button {
    grid-column: 2;
    background: transparent;
    color: #f2c434;
    border: 1px solid #f2c434;
    padding: 13px;
    text-transform: uppercase;
}

footer {
    text-align: center;
    background: #030511;
    padding: 22px;
    font-size: 12px;
}

@media (max-width: 800px) {
    .menu {
        padding: 0 6%;
    }

    nav a {
        margin-left: 10px;
    }

    .hero,
    .about,
    .contact {
        display: block;
        padding: 60px 8%;
    }

    .hero-text,
    .about-text {
        width: 100%;
    }

    h1 {
        font-size: 38px;
    }

    .hero-picture {
        width: 100%;
        margin-top: 40px;
    }

    .photo {
        width: 100%;
        margin-top: 35px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .project,
    .steps,
    .skills-grid,
    form {
        grid-template-columns: 1fr;
    }

    textarea,
    button {
        grid-column: auto;
    }
}



.selected > input {
    display: none;
}

.project-slider {
    position: relative;
}

.project-slide {
    background: #12192b;
    display: none;
    grid-template-columns: 40px 1fr 1fr 40px;
    gap: 35px;
    align-items: center;
    padding: 45px;
}

#projekt1:checked ~ .project-slider .slide-one,
#projekt2:checked ~ .project-slider .slide-two,
#projekt3:checked ~ .project-slider .slide-three {
    display: grid;
}

.project-slide img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.project-slide .arrow {
    font-size: 60px;
    color: #f4f1e8;
    cursor: pointer;
    user-select: none;
}



.project-dots {
    margin-top: 20px;
}

.project-dots label {
    width: 7px;
    height: 7px;
    background: rgba(244, 241, 232, 0.45);
    border-radius: 50%;
    display: inline-block;
    margin: 0 4px;
    cursor: pointer;
}

#projekt1:checked ~ .project-dots label[for="projekt1"],
#projekt2:checked ~ .project-dots label[for="projekt2"],
#projekt3:checked ~ .project-dots label[for="projekt3"] {
    background: #f4f1e8;
}

@media (max-width: 800px) {
    .dancer-img {
        margin: 20px auto 0;
        max-width: 90%;
    }

          }

    .project-slide {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .project-slide .arrow {
        display: none;
    }

    .project-info {
        text-align: center;
    }


body,
.hero,
.about,
.portfolio,
.selected,
.contact,
.process,
.skills {
    transition: background-color 0.4s ease, color 0.4s ease;
}

.clouds {
    background-repeat: no-repeat;
    opacity: 0.95;
    animation: cloudsMove 18s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes cloudsMove {
    from { transform: translate3d(-18px, 0, 0); }
    to { transform: translate3d(18px, -12px, 0); }
}

.dancer {
    animation: dancerFade 1.2s ease both;
}

@keyframes dancerFade {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery img,
.work,
.work-empty,
.project-slide img,
.photo img {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.gallery img:hover,
.project-slide img:hover,
.photo img:hover {
    transform: scale(1.025);
    box-shadow: 0 18px 35px rgba(0,0,0,0.28);
}

.photo {
    overflow: hidden;
    background: transparent;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes mobileTitleIn {
    from { opacity: 0; transform: translateY(16px); letter-spacing: 5px; }
    to { opacity: 1; transform: translateY(0); letter-spacing: 2px; }
}

@keyframes titleLine {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}

@media (max-width: 800px) {
    body {
        background: #132870;
    }

    .menu {
        height: auto;
        min-height: 54px;
        gap: 18px;
        flex-wrap: wrap;
        padding: 12px 7%;
    }

    nav a {
        margin-left: 0;
        margin-right: 14px;
    }

    .hero {
        display: flex;
        min-height: auto;
        padding: 80px 8% 42px;
        background: #10172d;
        overflow: hidden;
        align-items: flex-start;
    }

    .hero-text {
        height: auto;
        min-height: 640px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    h1 {
        position: relative;
        z-index: 13;
        font-size: clamp(36px, 12vw, 58px);
        margin-bottom: 18px;
    }

    .hero .button {
        position: relative;
        z-index: 13;
    }

    .dancer {
        position: relative;
        right: auto;
        top: auto;
        order: 2;
        width: min(100%, 430px);
        height: auto;
        aspect-ratio: 1 / 1.18;
        margin: 38px auto 0;
        background-position: center bottom;
        z-index: 11;
    }

    .clouds {
        width: 150vw;
        height: 75vh;
        left: -25vw;
        top: 22%;
        background-size: contain;
        background-position: center bottom;
        opacity: 0.55;
    }

    .about,
    .portfolio,
    .selected,
    .contact {
        background: #0b1022;
    }

    .about {
        display: block;
        padding-top: 55px;
    }

    .about-text {
        width: 100%;
    }

    .photo {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        margin-top: 35px;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .gallery img,
    .work,
    .work-empty {
        height: auto;
        min-height: 260px;
        aspect-ratio: 4 / 3;
    }

    .categories {
        display: flex;
        justify-content: center;
        gap: 18px;
        flex-wrap: wrap;
    }

    .categories label {
        margin: 0;
    }

    h2 {
        position: relative;
        display: inline-block;
        animation: mobileTitleIn 0.8s ease both;
    }

    h2::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -10px;
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, transparent, #c7b7ff, transparent);
        animation: titleLine 1.2s ease both;
    }

    .portfolio h2,
    .selected h2,
    .process h2,
    .skills h2,
    .contact h2 {
        text-shadow: 0 0 14px rgba(199, 183, 255, 0.22);
    }

}

@media (max-width: 520px) {
    .hero-text {
        min-height: 560px;
    }

    .dancer {
        width: min(112%, 390px);
        margin-top: 28px;
    }

    .clouds {
        top: 26%;
        height: 62vh;
        opacity: 0.48;
    }

    .gallery img,
    .work,
    .work-empty {
        min-height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
