@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

#loading-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #d2d1cd;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out;
    opacity: 1;
}

.helper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ball {
    background-color: #ffffff;
    border-radius: 50%;
    height: 3vw;
    width: 3vw;
    position: absolute;
    top: -6.5vw;
}

.logo-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 20vw;
}

.logo-loading img {
    width: 50vw;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    font-family: Arial, sans-serif;
    background-color: #d2d1cd;
    overflow: hidden;
    scroll-behavior: smooth;
}

body {
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

.burger-menu {
    display: none;
    height: 2.5rem;
    width: 2.5rem;
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 11;
}

.burger-menu img {
    width: 30px;
    height: 30px;
}

.subsite {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.subsite img {
    height: 10vh;
}

.subsite.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 15vh;
    right: 0;
    height: calc(100vh - 15vh);
    width: 10vw;
    max-width: 150px;
    background-color: hsl(48, 5%, 81%);
    z-index: 10;
    border: 1px solid #ffffff;
}

nav {
    display: flex;
    position: absolute;
    justify-content: space-between;
    background-color: hsla(48, 5%, 81%, 0.5);
    height: 15vh;
    width: 90vw;
    padding: 0 5vw;
    z-index: 1;
    border-bottom: hsla(48, 5%, 91%, 1) 1px solid;
}

nav a {
    font-family: "Open Sans", sans-serif;
    text-decoration: none;
    color: #ffffff;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-weight: 100;
    padding: 0 2vh;
    display: flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
    transition: 0.2s ease-out;
}

nav a .instagram {
    height: 70%;
    width: 70%;
}

nav a:hover {
    filter: brightness(0.5);
}

.fix {
    background-color: #d2d1cd; 
}

.selected {
    color: hsl(48, 5%, 61%);
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 20vw;
    max-height: 15vh;
}

.logo img {
    width: 20vw;
    padding: 0 2vh;
}

.logo span {
    font-family: "Open Sans", sans-serif;
    text-align: center;
    width: 100%;
    padding: 0 2vh;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.12vw;
    font-weight: 3000;
    letter-spacing: 0.7em;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
}

.fullscreen-image {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.fullscreen-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

main {
    min-height: 75vh;
    height: fit-content;
    width: 90vw;  
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15vh 5vw;
}

.about {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 3vw;
    top: 5vh;
    height: fit-content;
    padding: 20px;
}

.about::before,
.about::after {
    content: '';
    position: absolute;
    border: 1px solid #ffffff;
}

.about::before {
    left: 0;
    bottom: 0;
    width: 20%;
    height: 20%;
    border-top: none;
    border-right: none;
}

.about::after {
    right: 0;
    top: 0;
    width: 20%;
    height: 20%;
    border-bottom: none;
    border-left: none;
}

.about-header {
    font-family: "Open Sans", sans-serif;
    color: #ffffff;
    font-weight: 300;
    text-align: left;
    width: 80%;
}

.about-header .sub {
    font-family: "Open Sans", sans-serif;
    font-size: 1.5rem;
}

.about-header h4,
.about-header p {
    margin: 0;
    padding: 0;
}

.about-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img img {
    width: 20vw;
    object-fit: cover;
}

.about-text-container {
    display: flex;
    overflow: hidden;
    align-items: left;
    justify-content: center;
    flex-direction: column;
    width: 60%;
}

.about-text {
    font-family: "Open Sans", sans-serif;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 300;
    width: 100%;
    text-align: justify;
}

.portfolio{
    display: flex;
    position: relative;
    top: 8vh;
    justify-content: center;
    width: 80vw;
    height: 80vh;
    background-color: hsla(48, 5%, 81%, 0.5);
    gap: 2.5vw;
}

.projekt {
    position: relative;
    width: 25vw;
    height: 70vh;
    overflow: hidden;
    transition: 0.5s ease-in-out;
}

.projekt a {
    z-index: 3;
}

.projekt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.5s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

.projekt:hover {
    transform: scale(1.1);
}

.projekt:hover::before {
    background-color: rgba(0, 0, 0, 0.5);
}

.projekt img {
    width: 25vw;
    height: 70vh;
    object-fit: cover;
}

.project-info {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 2;
    font-family: "Open Sans", sans-serif;
}

.projekt:hover .project-info {
    opacity: 1;
}

.project-name {
    width: 100%;
    font-size: clamp(1rem, 4vw, 5rem); 
    font-weight: 100;
    margin: 0;
    padding: 0;
}

.project-description {
    font-size: clamp(1rem, 2.5vw, 2rem); 
    font-weight: 100;
}

.project-date {
    font-size: clamp(0.5rem, 2vw, 1rem); 
    font-weight: 100;
}

.projekt span {
    font-family: "Open Sans", sans-serif;
}

.contact {
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 80vw;
    height: 30vh;
    gap: 1.5vw;
    font-family: "Open Sans", sans-serif;
}

.main {
    padding: 0;
    margin: 0;
    font-family: "Open Sans", sans-serif;
    font-size: 3rem;
    font-weight: 300;
    color: #ffffff;
}

.contact img {
    height: 2rem;
    object-fit: cover;
}

.contact a {
    text-decoration: none;
    color: #ffffff;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 100;
    height: fit-content;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.contact-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 1vw;
    width: 100%;
    margin: 0 auto;
}

.contact-item p,
.contact-item a {
    line-height: 1.5rem;
}

.contact-item p:hover {
    transform: scale(1.1);
}

.contact-item p {
    transition: transform 0.3s ease-in-out;
}

.contact-separator {
    width: 1px;
    height: 3rem;
    background-color: #ffffff;
}

.uklad-oferta {
    min-height: 100%;
    width: 100%;
}


.oferty {
    height: 8vh;
    position: relative;
    display: flex;
    justify-content: space-evenly;
    gap: 1rem;
    margin: 1rem 0;
}

.uklad-oferta button {
    width: 100%;
    height: 100%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: hsl(48, 5%, 76%);
    border-radius: 1rem;
    text-decoration: none;
    color: #ffffff;
    transition: 0.2s ease-in-out;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.uklad-oferta button p {
    font-family: "Open Sans", sans-serif;
    font-size: 1.5rem;
    font-weight: 100;
    text-align: center;
    margin: 0;
    
}

.uklad-oferta button:hover {
    background-color: hsl(48, 5%, 65%); /* jaśniejsze lub ciemniejsze tło */
    transform: translateY(-2px); /* minimalne uniesienie */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.uklad-oferta button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

a.finalizacja {
    text-decoration: none;
    width: 80%;
    height: fit-content;
}

a.finalizacja button {
    font-size: 1.7rem;
    font-family: "Open Sans", sans-serif;
    font-weight: 100;
    height: auto;
    padding: 0.5rem;
}

.slide {
    min-width: 100%;
    /* flex: 0 0 100%; */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.oferta-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    font-size: 1.1rem;
    font-family: "Open Sans", sans-serif;
    font-weight: 100;
    border-radius: 2rem;
    background-color: hsl(48, 5%, 79%);
    padding: 1rem;
}

.oferta-info p {
    padding: 0 1rem;
    color: #ffffff;
}

section {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.slider-container {
    width: 100%;
    max-width: 80vw; /* dowolne ograniczenie szerokości */
    margin: 0 auto;    /* centrowanie */
    overflow: hidden;  /* ukrywamy elementy, które wyjeżdżają poza kontener */
    position: relative;
    border-radius: 2rem;
}

.slider {
    width: 80vw;
    display: flex;
    transition: transform 0.6s ease; /* płynna animacja przesuwania */
}

.media-helper {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}




.faq {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 80vh;
    height: auto;
    padding: 2rem 0;
    margin-top: 15vh;
    position: relative;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5vh;
}

.faq-container {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.faq-item {
    border-bottom: 1px solid #fff;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    border: none;
    border-radius: 3rem;
    font-size: 1.2rem;
    font-family: "Open Sans", sans-serif;
    font-weight: 200;
    width: 100%;
    text-align: left;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    background-color: #d2d1cd;
    color: #ffffff;
}

.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding: 0 1rem;
    color: #ffffff;
    font-family: "Open Sans", sans-serif;
    font-weight: 200;
}

.faq-answer a {
    text-decoration: underline;
    color: #ffffff;
}

.faq-answer.open {
    max-height: 80vh;
    padding: 1rem;
}

.zdjecia-projekt {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 60vh;
    grid-auto-flow: dense;
    gap: 1rem;
}

.zdjecia-projekt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zdjecia-projekt img.horizontal {
    grid-row: span 1;
}

.zdjecia-projekt img.vertical {
    grid-row: span 2;
}

#imgToClick {
    max-width: 100%;
    cursor: pointer;
}

.modal {
    display: none;             
    position: fixed;           
    z-index: 1000;             
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); 
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-height: 90vh;
    width: auto;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    transition: 0.3s ease-in-out;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.5);
}

.zdj {
    cursor: pointer;
    transition: 0.5s ease-in-out;
}

.zdj:hover {
    scale: 1.025;
}
    
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

footer {
    text-align: center;
    font-size: 1rem;
    font-family: "Open Sans", sans-serif;
    padding: 10px 0;
    background-color: hsla(48, 5%, 81%, 0.5);
    color: #ffffff;
}


@media (max-width: 900px) {
    * {
        max-width: 100vw;
    }

    html, body {
        overflow-x: hidden;
    }

    main {
        margin: 15vh 1vw;
        width: 98vw;
    }

    nav .subsite a:hover {
        filter: none;
    }
    
    .subsite {
        justify-content: start;
        display: none;
        visibility: hidden;
        position: absolute;
    }

    .subsite a {
        text-align: left;
        width: 100%;
        font-family: "Open Sans", sans-serif;
        font-weight: 100;
        font-size: 1.2rem;
        padding: 2vh 0;
        color: #fff;
        height: 6vh;
        text-decoration: none;
        border-bottom: 1px solid #ffffff;
        transition: background-color 0.3s ease-in-out;
    }
    
    .subsite a:hover {
        background-color: hsl(48, 5%, 61%);
    }
    
    .logo img {
        width: fit-content;
        overflow: hidden;
        padding: 0;
    }

    .logo a {
        padding: 0;
    }

    nav {
        justify-content: center;
        padding: 0;
        width: 100%;
    }

    .logo {
        width: auto;
    }

    .logo img {
        width: 30vw;
    }

    .logo span {
        font-size: 1.7vw;
    }

    .burger-menu {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .subsite.open {
        display: flex;
        width: 100%;
        visibility: visible;
        z-index: 10;
    }
    
    .portfolio {
        flex-direction: column;
        justify-content: start;
        align-items: center;
        width: 100vw !important;
    }

    .projekt {
        width: 90%;
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: hsla(48, 5%, 81%, 0.5);
        border-radius: 10px;
    }

    .projekt a {
        width: 100%;
        height: 30vh;
        z-index: 0;
    }

    .projekt img {
        width: 100% ;
        height: 100% ;
        border-radius: 10px;
        overflow: hidden;
    }

    .selected {
        background-color: hsl(48, 5%, 71%);
    }

    .project-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-self: center;
        opacity: 1;
        background-color: hsl(48, 5%, 61%, 0.5);
        border-radius: 10px;
        width: 80%;
        height: 80%;
        text-align: center;
    }

    .projekt::before {
        display: none;
    }

    .project-name {
        font-size: 2rem !important;
        margin: 0;
    }

    .project-description, .project-date {
        font-size: 1.5rem;
        margin: 0;
    }

    .contact {
        padding: 1rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 0;
    }

    .contact-separator {
        display: none;
    }

    .about-img, .about-img img {
        display: none;
    }

    .about {
        padding: 5px;
    }

    .about-text-container {
        width: 100%;
    }

    p.main {
        font-size: 2.5rem;
    }

    p.sub {
        font-size: 1.2rem;
    }

    section {
        display: flex;
        flex-direction: column;
    }

    .oferta-info {
        width: 90%;
        margin: 0 auto;
        padding: 0.5rem;
    }

    .oferta-info h2.main {
        display: flex;
        justify-content: center;
    }

    a.finalizacja button {
        font-size: 1.15rem;
    }

    .zdjecia-projekt {
        grid-template-columns: repeat(1, 1fr);
    }

    .prev, .next {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .logo img {
        width: 45vw;
    }

    .logo span {
        font-size: 2.5vw;
    }

    .oferty {
        flex-direction: column;
        height: 100%;
        margin: 1rem;
    }

    .oferty .media-helper button {
        height: 10vh;
    }
}