/* Softcraft Hero Slider Styles */
.softcraft-hero-slider {
    font-family: 'Poppins', sans-serif;
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.softcraft-hero-slider * {
    box-sizing: border-box;
}

/* Unicorn Studio Background - POPRAWIONE - nie używa już fixed */
.softcraft-hero-slider .hero-background {
    position: absolute !important; /* Zmienione z fixed na absolute */
    top: 0;
    left: 0;
    width: 100vw !important; /* Zmienione z 100vw na 100% */
    height: 100vh !important; /* Zmienione z 100vh na 100% */
    z-index: 1;
    pointer-events: none;
    overflow: hidden; /* Dodane dla lepszego przycinania */
}

.softcraft-hero-slider .hero-background > div {
    width: 100vw !important; /* Zmienione z 100vw na 100% */
    height: 100vh !important; /* Zmienione z 100vh na 100% */
    object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    min-width: 100% !important; /* Dodane dla gwarancji pokrycia */
    min-height: 100% !important; /* Dodane dla gwarancji pokrycia */
}

/* Main Slider Container */
.softcraft-hero-slider .slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.softcraft-hero-slider .slides-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.softcraft-hero-slider .slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5%;
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease;
}

.softcraft-hero-slider .slide.active {
    opacity: 1;
}

.softcraft-hero-slider .slide-content {
    text-align: center;
    max-width: 800px;
    z-index: 4;
    position: relative;
}

/* Content Positioning Variants */
.softcraft-hero-slider.content-left .slide {
    justify-content: flex-start;
    text-align: left;
    padding-left: max(5%, 50px);
}

.softcraft-hero-slider.content-left .slide-content {
    text-align: left;
    max-width: 700px;
    margin-left: 0;
}

.softcraft-hero-slider.content-left .hero-buttons {
    justify-content: flex-start;
}

.softcraft-hero-slider.content-right .slide {
    justify-content: flex-end;
    text-align: right;
    padding-right: max(5%, 50px);
}

.softcraft-hero-slider.content-right .slide-content {
    text-align: right;
    max-width: 700px;
    margin-right: 0;
}

.softcraft-hero-slider.content-right .hero-buttons {
    justify-content: flex-end;
}

.softcraft-hero-slider.content-center .slide {
    justify-content: center;
    text-align: center;
}

.softcraft-hero-slider.content-center .slide-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.softcraft-hero-slider.content-center .hero-buttons {
    justify-content: center;
}

/* Single Hero Modifications */
.softcraft-hero-slider.softcraft-hero-single .slides-container {
    transition: none;
}

.softcraft-hero-slider.softcraft-hero-single .slide {
    opacity: 1 !important;
    transform: none !important;
    position: static;
}

.softcraft-hero-slider.softcraft-hero-single .hero-arrows,
.softcraft-hero-slider.softcraft-hero-single .hero-navigation {
    display: none !important;
}

/* Typography */
.softcraft-hero-slider .hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 20px;
    color: inherit;
}

.softcraft-hero-slider .hero-title {
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: inherit;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.softcraft-hero-slider .hero-description {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 50px;
    color: inherit;
    max-width: 600px;
}

/* Description width adjustments per position */
.softcraft-hero-slider.content-left .hero-description {
    margin-left: 0;
    margin-right: auto;
}

.softcraft-hero-slider.content-right .hero-description {
    margin-left: auto;
    margin-right: 0;
}

.softcraft-hero-slider.content-center .hero-description {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.softcraft-hero-slider .hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.softcraft-hero-slider .hero-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.softcraft-hero-slider .hero-button.primary {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    border-color: rgba(255, 255, 255, 0.95);
}

.softcraft-hero-slider .hero-button.secondary {
    background: transparent;
    color: inherit;
    border-color: rgba(255, 255, 255, 0.5);
}

.softcraft-hero-slider .hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.softcraft-hero-slider .hero-button.primary:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

.softcraft-hero-slider .hero-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.softcraft-hero-slider .hero-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.softcraft-hero-slider .hero-button:hover::before {
    left: 100%;
}

/* Navigation Dots */
.softcraft-hero-slider .hero-navigation {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.softcraft-hero-slider .nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.softcraft-hero-slider .nav-dot.active {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.softcraft-hero-slider .nav-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

/* Navigation Arrows */
.softcraft-hero-slider .hero-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.softcraft-hero-slider .hero-arrows.left {
    left: 30px;
}

.softcraft-hero-slider .hero-arrows.right {
    right: 30px;
}

.softcraft-hero-slider .hero-arrow {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.softcraft-hero-slider .hero-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.softcraft-hero-slider .hero-arrow:active {
    transform: scale(0.95);
}

/* Content Animation States */
.softcraft-hero-slider .slide-content > * {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.softcraft-hero-slider .slide.active .slide-content > * {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
}

/* Staggered Animation */
.softcraft-hero-slider .slide.active .hero-subtitle {
    transition-delay: 0.1s;
}

.softcraft-hero-slider .slide.active .hero-title {
    transition-delay: 0.2s;
}

.softcraft-hero-slider .slide.active .hero-description {
    transition-delay: 0.4s;
}

.softcraft-hero-slider .slide.active .hero-buttons {
    transition-delay: 0.6s;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .softcraft-hero-slider .hero-arrows {
        display: none;
    }
    
    .softcraft-hero-slider .slide {
        padding: 0 4%;
    }
    
    .softcraft-hero-slider.content-left .slide,
    .softcraft-hero-slider.content-right .slide {
        padding-left: 4%;
        padding-right: 4%;
    }
}

@media (max-width: 768px) {
    .softcraft-hero-slider .slide {
        padding: 0 20px;
    }
    
    .softcraft-hero-slider.content-left .slide,
    .softcraft-hero-slider.content-right .slide,
    .softcraft-hero-slider.content-center .slide {
        justify-content: center;
        text-align: center;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .softcraft-hero-slider.content-left .slide-content,
    .softcraft-hero-slider.content-right .slide-content,
    .softcraft-hero-slider.content-center .slide-content {
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .softcraft-hero-slider.content-left .hero-buttons,
    .softcraft-hero-slider.content-right .hero-buttons,
    .softcraft-hero-slider.content-center .hero-buttons {
        justify-content: center;
    }
    
    .softcraft-hero-slider.content-left .hero-description,
    .softcraft-hero-slider.content-right .hero-description,
    .softcraft-hero-slider.content-center .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .softcraft-hero-slider .hero-title {
        font-size: clamp(36px, 10vw, 60px);
        line-height: 1;
        margin-bottom: 25px;
    }
    
    .softcraft-hero-slider .hero-description {
        font-size: clamp(15px, 3.5vw, 18px);
        margin-bottom: 40px;
    }
    
    .softcraft-hero-slider .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .softcraft-hero-slider .hero-button {
        padding: 14px 28px;
        font-size: 15px;
        min-width: 200px;
        justify-content: center;
    }
    
    .softcraft-hero-slider .hero-navigation {
        gap: 12px;
    }
    
    .softcraft-hero-slider .nav-dot {
        width: 10px;
        height: 10px;
    }
    
    /* Responsive background adjustments */
    .softcraft-hero-slider .hero-background,
    .softcraft-hero-slider .hero-background > div {
        width: 100vw !important;
        height: 100vh !important;
    }
}

@media (max-width: 480px) {
    .softcraft-hero-slider .slide {
        padding: 0 15px;
    }
    
    .softcraft-hero-slider .hero-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }
    
    .softcraft-hero-slider .hero-title {
        font-size: clamp(28px, 8vw, 42px);
        margin-bottom: 20px;
        line-height: 0.95;
    }
    
    .softcraft-hero-slider .hero-description {
        font-size: 15px;
        margin-bottom: 30px;
        line-height: 1.5;
    }
    
    .softcraft-hero-slider .hero-buttons {
        gap: 12px;
    }
    
    .softcraft-hero-slider .hero-button {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 180px;
    }
    
    .softcraft-hero-slider .hero-navigation {
        bottom: 0 !important;

    }
}

/* Height Variants Responsive Behavior */
@media (max-width: 768px) {
    .softcraft-hero-slider {
        min-height: 500px;
    }
}

@media (max-width: 480px) {
    .softcraft-hero-slider {
        min-height: 400px;
    }
}

/* Loading Animation - No scaling */
.softcraft-hero-slider.loading {
    opacity: 0;
}

.softcraft-hero-slider.loaded {
    opacity: 1;
    transition: opacity 1s ease;
}

/* Dodatkowe zabezpieczenia dla aspect ratio */
@media (min-aspect-ratio: 21/9) {
    .softcraft-hero-slider .hero-background > div {
        width: 100% !important;
        height: 100vh !important;
        min-height: 100vh!important;
    }
}

@media (max-aspect-ratio: 4/5) {
    .softcraft-hero-slider .hero-background > div {
        width: auto !important;
        height: 100vh !important;
        min-width: 100vh!important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .softcraft-hero-slider,
    .softcraft-hero-slider *,
    .softcraft-hero-slider::before,
    .softcraft-hero-slider::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus States for Accessibility */
.softcraft-hero-slider .nav-dot:focus,
.softcraft-hero-slider .hero-arrow:focus,
.softcraft-hero-slider .hero-button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .softcraft-hero-slider .hero-overlay {
        background: rgba(0,0,0,0.7);
    }
    
    .softcraft-hero-slider .nav-dot {
        border-width: 3px;
    }
    
    .softcraft-hero-slider .hero-button {
        border-width: 3px;
    }
}