:root {
    --light-gray: #F1F1F1;
    --blue: #00adec;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
}

.overlay {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 99998;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

#main-header {
    min-height: 115vh;
    background-image: url('../../img/background-seed.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* #main-header {
    width: 100%;
    height: auto;
} */

.main-img {
    left: -300px;
}

#main-header ul li a {
    color: #fff;
}

.our-event h5, .list-architecture h5, .header-mobile {
    display: inline-block;
    background: var(--blue);
}

#header.scrolled {
    transition: 0.3s ease;
    background: rgba(0, 0, 0, 0.4);
}

.box-header {
    background: rgba(0, 165, 255, 0.4);
}

#solutions {
    width: 100%;
    background-image: url('../../img/solutions.png');
    background-size: cover;
    object-fit: cover;
}

#solutions .box::after {
    position: absolute;
    top: 0;
    left: -25px;
    content: "";
    width: 15px;
    height: 100%;
    background: var(--blue);
}

.func, .func:hover, .func:focus {
    letter-spacing: 2px;
    margin-right: -5px;
    color: #fff;
    border-radius: 13px;
    padding: 5px 30px;
    background: #000;
    text-transform: uppercase !important;
}

#future-event {
    width: 100%;
    height: 100%;
    background-image: url('../../img/bg-nowoczesna.png');
    background-repeat: no-repeat;
    background-size: cover;
}

#future-event h1 span:not(:last-child){
    display: block;
    margin-bottom: 10px;
    padding: 0 15px;
    background: #000;
    width: fit-content;
}

.future-content {
    background: linear-gradient(to right, var(--blue) 85%, transparent 85%);
    margin-top: 75px;
    height: auto;
}

.future-content h1 {
    margin: 0 !important;
    padding-top: 75px;
}

.highlight-box {
    background: #000;
    margin: 0 -100px 0 -45px;
}

#self-service {
    width: 100%;
    height: auto;
    min-height: 100%;
    background-image: url('../../img/background-seed.png');
    object-fit: cover;
}

/* SUBPAGE-HEADER */

#header ul li > a,
#subpage-header ul li > a {
    padding: 5px 0;
}

#header ul li:first-child,
#subpage-header ul li:first-child {
    border-radius: 13px;
    padding: 0 30px;
    background: var(--blue);
} 

#header ul li:first-child a
#subpage-header ul li:first-child a {
    letter-spacing: 5px;
    margin-right: -5px;
}

#header ul li a.active, 
#subpage-header ul li a.active,
footer .active {
    color: var(--blue) !important;
}

#header .navbar-nav,
#subpage-header .navbar-nav {
    display: flex;
    gap: 75px;
}

#header,
#subpage-header {
    z-index: 99999 !important;
}

#subpage-header {
    background-color: var(--light-gray);
}

.navbar-toggler:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* FOOTER */

footer ul li a, .box-header a{
    color: #000;
    text-decoration: none;
}

.footer-menu li:first-child, .box-header a{
    background: #000;
    border-radius: 13px;
    padding: 5px 30px;
}

.footer-menu li:first-child a, .box-header a{
    letter-spacing: 5px;
    margin-right: -5px;
}

ul li:not(.nav-item-demo) a:hover {
    color: var(--blue) !important;
}


/* SUGPAGE SECTION REFERENCJE */

#referencje, #about, #contact{
    padding: 200px 0;
}

#system-architecture, #functions, #rules, #privacy{
    padding-top: 200px;
}

.supage-title {
    letter-spacing: 2px;
}

.partners p {
    max-width: 75%;
}

.partners span {
    width: 10px;
    height: 55%;
    background: var(--blue);
}

.partners-gallery {
    max-height: 700px;
}

.swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.swiper-button-next, .swiper-button-prev  {
    right: 0 !important;
    left: 0 !important;
}

#about p, #system-architecture p {
    position: relative;
    font-size: 18px;
}

#about p:after {
    content: "";
    position: absolute;
    left: -35px;
    top: 0;
    width: 10px;
    height: 100%;
    background: var(--blue);
}

.contact-item::before {
    content: '';
    display: flex;
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.icon-email::before {
    background-image: url('../../img/email.png');
}

.icon-phone::before {
    background-image: url('../../img/tel.png');
}

.icon-location::before {
    background-image: url('../../img/loc.png');
}

#contact form input, #contact form textarea {
    border: 2px solid var(--blue);
}

#contact form input:focus, #contact form textarea:focus {
    outline: none !important;
    box-shadow: none !important;
}

#contact form button {
    letter-spacing: 3px;
    margin-right: -3px;
    border-radius: 13px;
    padding: 5px 30px;
    color: #fff;
    background: var(--blue);
}

.list-architecture {
    width: 100%;
    background-image: url('../../img/background-seed.png');
    background-repeat: no-repeat;
    background-position: center;
    object-fit: cover;
}


#functions .left-side .box::after,
#functions .right-side .box::after {
    content: "";
    position: absolute;
    left: -25px;
    top: 0;
    height: 100%;
    width: 8px;
    background: var(--blue);
}

#functions .left-side .box:nth-child(2n)::after,
#functions .right-side .box:nth-child(2n)::after {
    background-color: #808080;
}

#function-mobile h5 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

#function-mobile h5::after {
    position: absolute;
    bottom: -7px;
    left: 0;
    content: "";
    background: var(--blue);
    width: 75%;
    height: 3px;
}

#function-mobile h5::before {
    position: absolute;
    bottom: -12px;
    left: 0;
    content: "";
    background: var(--blue);
    width: 50%;
    height: 3px;
}

#function-mobile .box.custom-box h5::after, #function-mobile .box.custom-box h5::before,
.header-mobile::after, .header-mobile::before {
    display: none;
}

.custom-box {
    background: #000;
}

@media screen and (max-width: 576px) {
    .navbar-brand {
        width: 140px !important;
    }

    .navbar-toggler {
        width: 25px !important;
        padding: 0 !important;
    }

    .navbar-toggler-icon {
        width: 25px !important;
    }

}

@media (max-width: 768px) {
    #main-header {
        min-height: 100vh;
    }

    #header-content {
        top: 40% !important;
    }

    .partners p {
        max-width: 100%;
    }

    .partners span {
        display: none;
    }

    footer > div {
        padding-bottom: 0 !important;
    }

    .main-img {
        text-align: center;
        left: 0;
        top: -30px;
    }

    .main-img img {
        width: 75%;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .navbar-brand {
        width: 250px;
    }

    .partners img {
        width: 100% !important;
    } 

    .main-img {
        bottom: 0;
        left: -75px;
    }

}

@media (min-width: 993px) and (max-width: 1200px) {
    .navbar-brand {
        width: 300px;
    }

    .main-img {
        bottom: 0;
        left: -150px;
    }
}

@media screen and (max-width: 768px) {
    #system-architecture, #functions, #rules, #privacy {
        padding-top: 100px;
    }

    #referencje, #about, #contact{
        padding: 100px 0;
    }

    #self-service .machine {
        margin: 25px 0 !important;
        width: 50%;
    }
}

@media screen and (max-width: 992px) {
        .mobile-menu {
        position: absolute;
        width: 100%;
        background: var(--light-gray);
        top: 100%;
        left: 0;
        color: #000;
        transition: .3s ease;
    }

    .mobile-menu ul li a {
        font-size: 18px;
        padding: 5px 10px !important;
        color: #000 !important;
        text-transform: capitalize !important;
    }

    .nav-item-demo {
        border-radius: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    #header .navbar-nav,
    #subpage-header .navbar-nav {
        gap: 0 !important;
    }

    .mobile-menu li {
        border-top: 1px solid rgba(101, 101, 101, 0.1);
    }

    #solutions .box::after {
        position: static;
    }

    #solutions .box {
        min-height: 300px;
        padding: 25px;
        border-radius: 25px;
        background: rgba(0, 165, 255, 0.4);
    }

    .future-content {
        background: linear-gradient(to right, var(--blue) 100%);
        margin-top: 75px;
        height: auto;
    }

    .future-content-width {
        width: 100% !important;
    }

    .highlight-box {
        margin: 0 0 0 0 !important;
    }
}

@media screen and (max-width: 1300px) {
    #header .navbar-nav,
    #subpage-header .navbar-nav {
        gap: 25px;
    }
}

@media screen and (max-width: 1500px) {
    footer ul{
        gap: 25px !important;
    }
}
