/* reCAPTCHA v3 – ukryj plakietkę (wymagany tekst w stopce zamiast odznaki) */
.grecaptcha-badge { visibility: hidden; }

/* Sticky Header - ukryj overflow aby stickySetTop działał poprawnie */
#header {
    overflow: visible !important;
    z-index: 9999;
    position: relative;
}

#header .header-body {
    overflow: hidden;
}

/* Menu rozwijane musi być fixed aby wyjść poza overflow: hidden */
#header .header-nav-main {
    position: static;
}

#header .header-nav-main .dropdown:hover > .dropdown-menu {
    display: block;
}

#header .dropdown-menu {
    position: fixed !important;
    z-index: 10000 !important;
    transform: translateY(0);
}

/* Gdy sticky header jest aktywny, górny pasek powinien być ukryty */
html.sticky-header-active #header .header-body {
    transition: top 0.3s ease;
    -webkit-box-shadow: 0px 0px 40px 0px rgba(66, 68, 90, 1);
    -moz-box-shadow: 0px 0px 40px 0px rgba(66, 68, 90, 1);
    box-shadow: 0px 0px 40px 0px rgba(66, 68, 90, 1);
}

/* Home page carousel styles */
.owl-carousel .owl-item {
    min-height: 670px;
}

.owl-carousel .owl-item > div,
.owl-carousel .owl-item > .slider-item {
    min-height: 670px;
}

/* Force single item display */
.page-builder-slider.owl-carousel {
    width: 100%;
    min-height: 670px;
}

.page-builder-slider .owl-stage-outer {
    min-height: 670px;
}

.page-builder-slider .owl-stage {
    min-height: 670px;
}

/* Slider module specific styles */
.module-slider {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.module-slider .owl-carousel {
    width: 100%;
}

.module-slider .slider-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 670px;
}

.module-slider .slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.module-slider .slider-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    color: #fff !important;
}

.module-slider .slider-title {
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff !important;
}

.module-slider .slider-subtitle {
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.6;
    color: #fff !important;
}

.module-slider .slider-button {
    display: inline-block !important;
    padding: 12px 30px;
    font-weight: 600;
}

/* Animation states for slider elements - MUST come after base styles */
.module-slider .will-animate {
    opacity: 0 !important;
    visibility: hidden !important;
}

.module-slider .animate__animated {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Hide all animated elements by default until they are animated */
.module-slider [data-animation]:not(.animate__animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Ensure non-active slides have hidden animated elements */
.owl-carousel .owl-item:not(.active) [data-animation] {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Owl Carousel Slide Transition Animations */
/* Owl Carousel adds .animated class and the animation name as a class */
.owl-carousel .animated {
    animation-duration: 2000ms;
    animation-fill-mode: both;
}

.owl-carousel .fadeIn { animation-name: fadeIn; }
.owl-carousel .fadeOut { animation-name: fadeOut; }
.owl-carousel .slideInLeft { animation-name: slideInLeft; }
.owl-carousel .slideOutLeft { animation-name: slideOutLeft; }
.owl-carousel .slideInRight { animation-name: slideInRight; }
.owl-carousel .slideOutRight { animation-name: slideOutRight; }
.owl-carousel .slideInUp { animation-name: slideInUp; }
.owl-carousel .slideOutUp { animation-name: slideOutUp; }
.owl-carousel .slideInDown { animation-name: slideInDown; }
.owl-carousel .slideOutDown { animation-name: slideOutDown; }
.owl-carousel .zoomIn { animation-name: zoomIn; }
.owl-carousel .zoomOut { animation-name: zoomOut; }
.owl-carousel .bounceIn { animation-name: bounceIn; }
.owl-carousel .bounceOut { animation-name: bounceOut; }
.owl-carousel .flipInX { animation-name: flipInX; }
.owl-carousel .flipOutX { animation-name: flipOutX; }
.owl-carousel .rotateIn { animation-name: rotateIn; }
.owl-carousel .rotateOut { animation-name: rotateOut; }
.owl-carousel .rollIn { animation-name: rollIn; }
.owl-carousel .rollOut { animation-name: rollOut; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideInLeft {
    from { transform: translate3d(-100%, 0, 0); visibility: visible; }
    to { transform: translate3d(0, 0, 0); }
}

@keyframes slideOutLeft {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-100%, 0, 0); visibility: hidden; }
}

@keyframes slideInRight {
    from { transform: translate3d(100%, 0, 0); visibility: visible; }
    to { transform: translate3d(0, 0, 0); }
}

@keyframes slideOutRight {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(100%, 0, 0); visibility: hidden; }
}

@keyframes slideInUp {
    from { transform: translate3d(0, 100%, 0); visibility: visible; }
    to { transform: translate3d(0, 0, 0); }
}

@keyframes slideOutUp {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(0, -100%, 0); visibility: hidden; }
}

@keyframes slideInDown {
    from { transform: translate3d(0, -100%, 0); visibility: visible; }
    to { transform: translate3d(0, 0, 0); }
}

@keyframes slideOutDown {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(0, 100%, 0); visibility: hidden; }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
    50% { opacity: 1; }
}

@keyframes zoomOut {
    from { opacity: 1; }
    50% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
    to { opacity: 0; }
}

@keyframes bounceIn {
    from, 20%, 40%, 60%, 80%, to { animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); }
    0% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
    20% { transform: scale3d(1.1, 1.1, 1.1); }
    40% { transform: scale3d(0.9, 0.9, 0.9); }
    60% { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
    80% { transform: scale3d(0.97, 0.97, 0.97); }
    to { opacity: 1; transform: scale3d(1, 1, 1); }
}

@keyframes bounceOut {
    20% { transform: scale3d(0.9, 0.9, 0.9); }
    50%, 55% { opacity: 1; transform: scale3d(1.1, 1.1, 1.1); }
    to { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
}

@keyframes flipInX {
    from { transform: perspective(400px) rotate3d(1, 0, 0, 90deg); animation-timing-function: ease-in; opacity: 0; }
    40% { transform: perspective(400px) rotate3d(1, 0, 0, -20deg); animation-timing-function: ease-in; }
    60% { transform: perspective(400px) rotate3d(1, 0, 0, 10deg); opacity: 1; }
    80% { transform: perspective(400px) rotate3d(1, 0, 0, -5deg); }
    to { transform: perspective(400px); }
}

@keyframes flipOutX {
    from { transform: perspective(400px); }
    30% { transform: perspective(400px) rotate3d(1, 0, 0, -20deg); opacity: 1; }
    to { transform: perspective(400px) rotate3d(1, 0, 0, 90deg); opacity: 0; }
}

@keyframes rotateIn {
    from { transform-origin: center; transform: rotate3d(0, 0, 1, -200deg); opacity: 0; }
    to { transform-origin: center; transform: translate3d(0, 0, 0); opacity: 1; }
}

@keyframes rotateOut {
    from { transform-origin: center; opacity: 1; }
    to { transform-origin: center; transform: rotate3d(0, 0, 1, 200deg); opacity: 0; }
}

@keyframes rollIn {
    from { opacity: 0; transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes rollOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg); }
}

@media (max-width: 991px) {
    .owl-carousel .owl-item {
        min-height: 550px;
    }
    
    .owl-carousel .owl-item > div,
    .owl-carousel .owl-item > .slider-item {
        min-height: 550px;
        height: 550px;
    }
}

@media (max-width: 767px) {
    .owl-carousel .owl-item {
        min-height: 500px;
        height: auto !important;
    }
    
    .owl-carousel .owl-item > div,
    .owl-carousel .owl-item > .slider-item {
        min-height: 500px;
        height: auto !important;
    }

    /* Allow owl-stage containers to grow with content */
    .page-builder-slider.owl-carousel,
    .module-slider .owl-carousel {
        height: auto !important;
        min-height: 400px;
    }

    .page-builder-slider .owl-stage-outer {
        height: auto !important;
    }

    .page-builder-slider .owl-stage {
        height: auto !important;
    }

    /* Scale down slider text on mobile */
    .module-slider .slider-title {
        font-size: 26px !important;
        line-height: 1.25 !important;
        margin-bottom: 12px !important;
    }

    .module-slider .slider-subtitle {
        font-size: 15px !important;
        margin-bottom: 20px !important;
    }

    .module-slider .slider-content {
        padding: 60px 20px !important;
    }
}

@media (max-width: 575px) {
    .module-slider .slider-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }

    .module-slider .slider-subtitle {
        font-size: 14px !important;
    }

    .module-slider .slider-content {
        padding: 50px 16px !important;
    }
}

/* Porto highlight scribble animation */
@keyframes drawScribble {
    0% {
        stroke-dashoffset: 300;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.highlight-scribble-1 {
    animation: drawScribble 2s linear forwards;
}

/* Home Concept Module Styles - From Porto Theme */
.home-concept {
    background: transparent url(/template/img/home/home-concept.png) no-repeat center 0;
    width: 100%;
    overflow: hidden;
}

.home-concept strong {
    display: block;
    font-family: "Shadows Into Light", cursive;
    font-size: 1.8em;
    font-weight: normal !important;
    position: relative;
    margin-top: 30px;
}

.home-concept .row {
    position: relative;
}

.home-concept .process-image {
    background: transparent url(/template/img/home/home-concept-item.png) no-repeat 0 0;
    width: 160px;
    margin: 120px auto 0 auto;
    padding-bottom: 50px;
    position: relative;
    z-index: 1;
}

.home-concept .process-image img {
    border-radius: 150px;
    margin: 7px 8px;
    width: auto;
    height: auto;
    max-width: 145px;
    max-height: 145px;
}

@media (min-width: 992px) {
    .home-concept .process-image.process-image-on-middle {
        margin-top: 95px;
    }
}

.home-concept .our-work {
    margin-top: 52px;
    font-size: 2.2em;
}

.home-concept .project-image {
    background: transparent url(/template/img/home/home-concept-item.png) no-repeat 100% 0;
    width: 350px;
    margin: 20px 0 0 -30px;
    padding-bottom: 45px;
    position: relative;
    z-index: 1;
}

.home-concept .sun {
    background: transparent url(/template/img/home/home-concept-icons.png) no-repeat 0 0;
    width: 60px;
    height: 56px;
    display: block;
    position: absolute;
    left: 0;
    top: 65px;
}

.home-concept .cloud {
    background: transparent url(/template/img/home/home-concept-icons.png) no-repeat 100% 0;
    width: 116px;
    height: 56px;
    display: block;
    position: absolute;
    left: 53%;
    top: 35px;
}

@media (max-width: 991px) {
    .home-concept {
        background-image: none;
    }

    .home-concept .project-image {
        margin: 20px auto 0 auto;
    }

    .home-concept .process-image {
        margin-top: 0;
        padding-bottom: 25px;
    }
}

@media (max-width: 479px) {
    .home-concept .project-image {
        background-position: 0 0;
        margin-left: auto;
        max-width: 160px;
    }

    .home-concept .fc-slideshow {
        max-width: 145px;
        height: 145px;
    }
}

/* Napraw dla Porto animations */
.appear-animation[data-appear-animation] {
    opacity: 1 !important;
    visibility: visible !important;
}

.appear-animation[data-appear-animation].appear-animation-visible {
    opacity: 1 !important;
    visibility: visible !important;
}
