
:root {
    --bg-color: #262523;
    --text-color: #f5f5f5;
    --primary-red: #cb2124;
    --dark-gray: #262523;
    --light-gray: #4d4c48;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;

}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.98);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-black {
    display: none;
}

nav.light-bg .logo-white {
    display: none;
}

nav.light-bg .logo-black {
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 4px 0;
    transition: 0.3s;
}

section {
    min-height: 100vh;
    padding: 100px 20px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-red);
    text-transform: uppercase;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-red);
    margin: 20px auto 0;
}

#start {
    position: relative;
    overflow: hidden;
    background-color: var(--dark-gray);

}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    transform: translateZ(0);

    will-change: transform;
}

#start::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.7);
    z-index: 2;
    pointer-events: none;
    transform: translateZ(0);
}

.start-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#start p {
    font-size: 1.3rem;
    max-width: 700px;
    margin-bottom: 40px;
    color: #ddd;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-red);
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: background 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #a00e13;
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.scroll-indicator a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: bounce 3s infinite;
}

.scroll-indicator a:hover {
    background-color: var(--primary-red);
    animation-play-state: paused;
}

.scroll-indicator img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

#uslugi {
    background-color: var(--dark-gray);
}

.services-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
}

.service-box {
    background-color: #1a1a1a;
    padding: 40px 30px;
    flex: 1 1 250px;
    min-width: 250px;
    text-align: left;
    transition: transform 0.3s, border-color 0.3s;
    border-bottom: 3px solid transparent;
}

.service-box:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-red);
}

.service-box h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--primary-red);
}

.wipe-transition-wrapper {
    position: relative;
    height: 180vh;
    --wipe-progress: 0;

    --arrow-light-grey-w: 2vw;

    --arrow-bg-w: 2vw;

    --arrow-red-w: 10vw;

    --chevron-point: 50vh;

    --chevron-w: calc(var(--chevron-point) + var(--arrow-red-w) + 10vw);

    --arrow-total-w: calc(var(--arrow-light-grey-w) + var(--arrow-bg-w) + var(--chevron-w));

    --wipe-x: calc(-1 * var(--arrow-total-w) - 150px + var(--wipe-progress) * (100vw + var(--arrow-total-w) + 300px));
}

.wipe-sticky-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.wipe-section-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;

}

.wipe-section-layer::-webkit-scrollbar {
    display: none;

}

#layer-start {
    z-index: 1;

}

#layer-uslugi {
    z-index: 2;
    background-color: var(--dark-gray);

    clip-path: polygon(0 0,
            calc(var(--wipe-x) + 2px) 0,
            calc(var(--wipe-x) + var(--chevron-point) + 2px) 50%,
            calc(var(--wipe-x) + 2px) 100%,
            0 100%);
    will-change: clip-path;

    transition: clip-path 0.1s ease-out;
}

.wipe-arrows-container {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 3;
    display: flex;
    align-items: center;
    transform: translateX(var(--wipe-x));
    will-change: transform;
    pointer-events: none;

    transition: transform 0.1s ease-out;
}

.chevron {
    width: var(--chevron-w);
    height: 100vh;
    clip-path: polygon(0 0, calc(100% - var(--chevron-point)) 0, 100% 50%, calc(100% - var(--chevron-point)) 100%, 0 100%, var(--chevron-point) 50%);
}

.chevron-light-grey {
    background-color: var(--light-gray);

    margin-right: calc(-1 * var(--chevron-w) + var(--arrow-light-grey-w));
    z-index: 2;
}

.chevron-bg {
    background-color: var(--bg-color);
    margin-right: calc(-1 * var(--chevron-w) + var(--arrow-bg-w));
    z-index: 3;
}

.chevron-red {
    background-color: var(--primary-red);
    z-index: 4;
}

#realizacje {
    background-color: #1a1a1a;
    padding-top: 50px;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    margin-top: 10px;

    height: 65vw;

    max-height: 650px;

    min-height: 350px;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-carousel-track-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: visible;
}

.gallery-carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
}

.gallery-item {
    width: 80vw;
    max-width: 700px;
    height: auto;
    aspect-ratio: 1 / 1;
    min-height: 250px;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.gallery-carousel-track .gallery-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.4);
    width: 60vw;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: unset;
    opacity: 0;
    z-index: 1;
    transition: left 0.5s ease, transform 0.5s ease, opacity 0.5s ease, z-index 0.5s ease;
    pointer-events: none;
}

.gallery-carousel-track .gallery-item.active {
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

.gallery-carousel-track .gallery-item.prev {
    left: 20%;
    transform: translate(-50%, -50%) scale(0.65);
    opacity: 0.3;
    z-index: 5;
    pointer-events: auto;
    cursor: pointer;
}

.gallery-carousel-track .gallery-item.next {
    left: 80%;
    transform: translate(-50%, -50%) scale(0.65);
    opacity: 0.3;
    z-index: 5;
    pointer-events: auto;
    cursor: pointer;
}

.gallery-carousel-track .gallery-item.prev::after {
    content: '\276E';

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    color: white;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    opacity: 0.8;
    pointer-events: none;
    transition: opacity 0.3s;
}

.gallery-carousel-track .gallery-item.next::after {
    content: '\276F';

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    color: white;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    opacity: 0.8;
    pointer-events: none;
    transition: opacity 0.3s;
}

.gallery-carousel-track .gallery-item.prev:hover::after,
.gallery-carousel-track .gallery-item.next:hover::after {
    opacity: 1;
    color: var(--primary-red);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-carousel-track .gallery-item:not(.active):hover img {
    transform: none;
}

#kontakt {
    background-color: #1a1a1a;
}

.contact-info {
    background-color: var(--dark-gray);
    padding: 50px;
    max-width: 1100px;
    width: 100%;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.contact-column {
    flex: 1;
}

.contact-divider-vertical {
    width: 1px;
    background-color: #333;
    margin: 0 10px;
}

.divider.mobile-only {
    display: none;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-highlight {
    color: var(--primary-red);
    font-weight: bold;
}

.contact-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--primary-red);
}

.divider {
    height: 1px;
    background-color: #333;
    margin: 25px 0;
    border: none;
}

.mobile-only-break {
    display: none;
}

footer {
    background-color: #0a0a0a;
    color: #666;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        z-index: 1000;
        flex-direction: row;
        padding: 10px 20px;
        justify-content: space-between;
    }

    #realizacje,
    #kontakt,
    footer {
        position: relative;
        z-index: 5;
    }

    .logo img {
        height: 40px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(18, 18, 18, 0.98);
        flex-direction: column;
        align-items: center;
        padding-bottom: 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        margin-top: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .scroll-indicator {
        bottom: 25px;
    }

    #uslugi {
        padding: 80px 15px 30px;

    }

    .services-container {
        gap: 15px;

    }

    .service-box {
        padding: 20px 15px;

        min-width: 100%;

    }

    .service-box h3 {
        margin-bottom: 10px;
        font-size: 1.1rem;
    }

    .service-box p {
        font-size: 0.9rem;
    }

    .gallery-carousel-track .gallery-item {
        width: 70vw;
    }

    .gallery-carousel-track .gallery-item.prev {
        left: 5%;
        transform: translate(-50%, -50%) scale(0.65);
    }

    .gallery-carousel-track .gallery-item.next {
        left: 95%;
        transform: translate(-50%, -50%) scale(0.65);
    }

    .carousel-wrapper {
        padding: 0 20px;
    }

    .contact-info {
        flex-direction: column;
        padding: 30px 20px;
        gap: 0;
    }

    .contact-divider-vertical {
        display: none;
    }

    .divider.mobile-only {
        display: block;
        margin: 25px 0;
    }

    .mobile-only-break {
        display: block;
    }

    .wipe-transition-wrapper {

        --arrow-light-grey-w: 4vw;
        --arrow-bg-w: 4vw;
        --arrow-red-w: 18vw;
        height: 220vh;

    }
}