/* ===== PERFECT MOBILE OPTIMIZATION - OVERRIDE ALL CONFLICTS ===== */
/* This file loads AFTER homepage-2025.css to override all duplicate media queries */
/* Ensures perfect mobile experience on phones */

/* ===== RESET ANY CONFLICTING STYLES ===== */
* {
    box-sizing: border-box;
}

/* ===== APPROACH SECTION MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
    .approach-section-2025 .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important; /* Dokładnie dopasowane do stylu MOJA METAMORFOZA na mobile */
        font-weight: 800 !important; /* Taka sama grubość jak MOJA METAMORFOZA */
        line-height: 1.2 !important;
        margin-bottom: 2rem !important;
        padding: 0 1rem !important;
        font-family: var(--font-display) !important; /* Taka sama rodzina czcionki */
    }
    
    /* Konkretne łamanie linii dla polskiej wersji */
    .approach-section-2025 .section-title .title-line-mobile-pl-1 {
        display: block !important;
    }
    
    .approach-section-2025 .section-title .title-line-mobile-pl-2 {
        display: block !important;
    }
    
    .approach-section-2025 .section-title .title-line-mobile-pl-3 {
        display: block !important;
    }
    
    .approach-section-2025 .section-title .title-line-mobile-pl-4 {
        display: block !important;
        white-space: nowrap !important; /* Zapewnia że "NA" i "TWOJE WYNIKI" będą w jednej linii */
    }
    
    .approach-section-2025 .section-title .title-line-mobile-pl-4 span {
        display: inline !important; /* Zapewnia że wszystkie span'y wewnątrz będą inline */
    }
    
    /* Konkretne łamanie linii dla angielskiej wersji */
    .approach-section-2025 .section-title .title-line-mobile-en-1 {
        display: block !important;
    }
    
    .approach-section-2025 .section-title .title-line-mobile-en-2 {
        display: block !important;
    }
    
    .approach-section-2025 .section-title .title-line-mobile-en-3 {
        display: block !important;
        white-space: nowrap !important; /* Zapewnia że "INTO" i "YOUR RESULTS!" będą w jednej linii */
    }
    
    .approach-section-2025 .section-title .title-line-mobile-en-3 span {
        display: inline !important; /* Zapewnia że wszystkie span'y wewnątrz będą inline */
    }

    /* ===== Center contact info card on mobile ===== */
    .contact-section-2025 .contact-content {
        grid-template-columns: 1fr !important;
        justify-items: center !important; /* centrowanie w siatce */
    }
    .contact-section-2025 .contact-info-card {
        margin: 0 auto !important; /* nadpisuje desktopowe margin-right */
        max-width: 420px !important;
        width: 100% !important;
    }
}

/* ===== DESKTOP FLOATING ICONS FIX - NO ROTATION ===== */
@media (min-width: 769px) {
    @keyframes float-icon-desktop {
        0%, 100% { 
            transform: translateY(0px); 
        }
        25% { 
            transform: translateY(-8px); 
        }
        50% { 
            transform: translateY(-15px); 
        }
        75% { 
            transform: translateY(-8px); 
        }
    }
    
    .floating-icon {
        animation: float-icon-desktop 6s ease-in-out infinite !important;
        transform-origin: center center !important;
        /* CLASSIC CENTERING METHOD - WORKS WITH ANY ICON POSITIONING */
        text-align: center !important;
        line-height: 50px !important; /* Same as height */
        vertical-align: middle !important;
    }
    
    /* Ensure icons inside are perfectly centered */
    .floating-icon i,
    .floating-icon .fas,
    .floating-icon .fa {
        /* Reset any positioning that might interfere */
        position: static !important;
        display: inline-block !important;
        margin: 0 !important;
        padding: 0 !important;
        /* Center the icon character itself */
        text-align: center !important;
        vertical-align: middle !important;
        line-height: 1 !important;
    }
    
    .floating-icon.icon-1 {
        animation-delay: 0s !important;
    }
    
    .floating-icon.icon-2 {
        animation-delay: 2s !important;
    }
    
    .floating-icon.icon-3 {
        animation-delay: 4s !important;
    }
}

/* ===== STICKY CTA MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
    .sticky-cta-bar {
        position: fixed !important;
        bottom: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        max-width: 95% !important;
        background: rgba(0, 0, 0, 0.9) !important;
        backdrop-filter: blur(20px) !important;
        border-radius: 30px !important;
        z-index: 1000 !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 
                    0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    }

    .sticky-cta-bar.visible {
        transform: translateX(-50%) translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .sticky-cta-bar.hidden {
        transform: translateX(-50%) translateY(100px) !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    .sticky-cta-content {
        padding: 0.8rem 1.2rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.8rem !important;
        font-size: 0.9rem !important;
    }

    .sticky-cta-text {
        font-weight: 600 !important;
        color: white !important;
        font-size: 0.9rem !important;
        text-align: center !important;
    }

    .sticky-cta-button {
        padding: 0.7rem 1.4rem !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        border-radius: 20px !important;
        background: linear-gradient(135deg, #ff69b4, #8a2be2) !important;
        color: white !important;
        min-height: 44px !important; /* Touch target minimum */
        min-width: 120px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
    }

    .sticky-cta-button:hover,
    .sticky-cta-button:active {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4) !important;
    }

    .sticky-cta-icon {
        font-size: 1rem !important;
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    .sticky-cta-bar {
        bottom: 10px !important;
        max-width: 98% !important;
    }

    .sticky-cta-content {
        padding: 0.7rem 1rem !important;
        gap: 0.6rem !important;
        font-size: 0.85rem !important;
    }

    .sticky-cta-text {
        font-size: 0.85rem !important;
        display: none !important; /* Hide text on very small screens */
    }

    .sticky-cta-button {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem !important;
        min-width: 100px !important;
        flex: 1 !important;
        max-width: 200px !important;
    }
}

/* ===== ENSURE STICKY CTA IS ALWAYS ABOVE OTHER ELEMENTS ===== */
.sticky-cta-bar {
    z-index: 999999 !important;
}

/* ===== FORCE VISIBILITY WHEN ACTIVE ===== */
.sticky-cta-bar:not(.hidden) {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===== DESKTOP FIX FOR CTA BUTTONS ALIGNMENT ===== */
@media (min-width: 769px) {
    .hero-cta {
        display: flex !important;
        gap: var(--spacing-md) !important;
        justify-content: center !important; /* CENTERED */
        align-items: center !important;
        margin-bottom: var(--spacing-xl) !important;
        text-align: center !important; /* CENTERED */
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr !important;
        gap: var(--spacing-2xl) !important;
        align-items: center !important;
        text-align: center !important; /* CENTERED */
    }
    
    .hero-content {
        text-align: center !important; /* CENTERED */
    }
    
    .hero-title {
        text-align: center !important; /* CENTERED */
    }
    
    .hero-subtitle {
        text-align: center !important; /* CENTERED */
    }
    
    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
        gap: var(--spacing-lg) !important;
        margin-bottom: var(--spacing-xl) !important;
    }
    
    .stat-item {
        text-align: center !important;
    }
    
    .floating-elements {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .floating-icon {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* ===== MOBILE PHONES OPTIMIZATION (768px and below) ===== */
@media (max-width: 768px) {
    /* Override CSS Variables for mobile */
    :root {
        --font-size-3xl: clamp(2rem, 8vw, 3rem) !important;
        --font-size-2xl: clamp(1.5rem, 6vw, 2.2rem) !important;
        --font-size-xl: clamp(1.2rem, 5vw, 1.6rem) !important;
        --font-size-lg: clamp(1rem, 4vw, 1.3rem) !important;
        --spacing-2xl: 2.5rem !important;
        --spacing-xl: 2rem !important;
        --spacing-lg: 1.5rem !important;
    }

    /* ===== HIDE STICKY CTA ON MOBILE ===== */
    .sticky-cta-bar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* ===== MOBILE NAVIGATION ===== */
    .nav-container {
        padding: 1rem 1.5rem !important;
        height: 70px !important;
    }
    
    .logo-img {
        width: 45px !important;
        height: 45px !important;
    }
    
    .nav-menu {
        position: fixed !important;
        top: 70px !important;
        left: -100% !important;
        width: 100% !important;
        height: calc(100vh - 70px) !important;
        background: rgba(0, 0, 0, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 3rem 0 !important;
        gap: 2rem !important;
        transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        z-index: 999 !important;
        font-size: 1.1rem !important;
    }
    
    .nav-menu.active {
        left: 0 !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }
    
    .mobile-menu-toggle span {
        width: 28px !important;
        height: 3px !important;
        background: var(--text-primary) !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px) !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px) !important;
    }

    /* ===== SHOW FLOATING ICONS ON MOBILE ===== */
    .floating-elements {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        pointer-events: none !important;
    }
    
    .floating-icon {
        display: block !important;
        visibility: visible !important;
        opacity: 0.8 !important;
        
        /* Mobile sizing */
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        
        /* Same centering method as desktop */
        text-align: center !important;
        line-height: 40px !important; /* Same as mobile height */
        vertical-align: middle !important;
        
        /* Mobile styling */
        background: var(--bg-card) !important;
        backdrop-filter: blur(10px) !important;
        border-radius: 50% !important;
        color: var(--accent-color) !important;
        border: 1px solid var(--border-glow) !important;
        
        /* Mobile animation - lighter float */
        animation: float-icon-mobile 4s infinite ease-in-out !important;
        transform-origin: center center !important;
        
        /* Touch optimization */
        pointer-events: auto !important;
        transition: all 0.3s ease !important;
    }
    
    /* Mobile floating animation */
    @keyframes float-icon-mobile {
        0%, 100% { 
            transform: translateY(0px); 
        }
        50% { 
            transform: translateY(-8px); 
        }
    }
    
    /* Mobile icon positioning - closer to image */
    .floating-icon.icon-1 {
        top: 20% !important;
        right: 5% !important;
        animation-delay: 0s !important;
    }
    
    .floating-icon.icon-2 {
        bottom: 35% !important;
        left: 5% !important;
        animation-delay: 1.5s !important;
    }
    
    .floating-icon.icon-3 {
        top: 60% !important;
        right: 8% !important;
        animation-delay: 3s !important;
    }
    
    /* Ensure mobile icons inside are perfectly centered */
    .floating-icon i,
    .floating-icon .fas,
    .floating-icon .fa {
        position: static !important;
        display: inline-block !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        vertical-align: middle !important;
        line-height: 1 !important;
    }
    
    /* Mobile hover effects */
    .floating-icon:hover {
        opacity: 1 !important;
        transform: translateY(-2px) scale(1.05) !important;
        box-shadow: 0 8px 20px rgba(255, 105, 180, 0.3) !important;
    }

    /* ===== PERFECT HERO SECTION MOBILE ORDER ===== */
    .hero-2025 {
        min-height: 100vh !important;
        padding: 70px 0 0 0 !important;
    }
    
    .hero-container {
        display: grid !important;
        grid-template-areas: 
            "title"
            "subtitle"
            "image"
            "stats"
            "cta"
            "scroll" !important;
        gap: 2rem !important;
        padding: 1.5rem !important;
        min-height: calc(100vh - 70px) !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* MOBILE ORDER: Title, Subtitle, Image, Stats, CTA, Scroll */
    .hero-content {
        display: contents !important; /* This allows child elements to participate in parent grid */
    }
    
    .hero-title {
        grid-area: title !important;
        font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
        line-height: 1.1 !important;
        margin-bottom: 0 !important;
        letter-spacing: -0.02em !important;
        text-align: center !important;
    }
    
    .hero-subtitle {
        grid-area: subtitle !important;
        font-size: clamp(0.85rem, 3.2vw, 1rem) !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        max-width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        font-weight: 500 !important;
        text-align: center !important;
        justify-self: center !important;
    }
    
    .hero-image {
        grid-area: image !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        justify-self: center !important;
    }

    /* ===== HERO STATS HORIZONTAL LAYOUT ON MOBILE ===== */
    .hero-stats {
        grid-area: stats !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* SIDE BY SIDE */
        gap: 1rem !important;
        margin: 0 auto !important;
        max-width: 320px !important;
        width: 100% !important;
        justify-self: center !important;
    }
    
    .stat-item {
        padding: 1rem 0.8rem !important;
        border-radius: 12px !important;
        background: var(--bg-card) !important;
        backdrop-filter: blur(15px) !important;
        border: 1px solid var(--border-glow) !important;
        transition: all 0.3s ease !important;
        text-align: center !important;
        font-size: 0.8rem !important; /* SMALLER TEXT */
    }
    
    .stat-item:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 10px 30px rgba(255, 105, 180, 0.2) !important;
    }
    
    .stat-prefix {
        font-size: 0.7rem !important;
        margin-bottom: 0.3rem !important;
        display: block !important;
    }
    
    .stat-number {
        font-size: 1.8rem !important; /* SMALLER NUMBER */
        margin-bottom: 0.3rem !important;
        display: block !important;
        font-weight: 700 !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important; /* SMALLER LABEL */
        display: block !important;
        line-height: 1.2 !important;
    }
    
    /* ===== PERFECT HERO CTA MOBILE ===== */
    .hero-cta {
        grid-area: cta !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
        margin: 0 auto !important;
        width: 100% !important;
        justify-self: center !important;
    }
    
    .cta-button {
        width: 100% !important;
        max-width: 280px !important;
        padding: 0.9rem 1.8rem !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        border-radius: 50px !important;
        justify-content: center !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.6rem !important;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        position: relative !important;
        overflow: hidden !important;
        margin: 0 auto !important;
    }
    
    .cta-button.primary {
        background: var(--primary-gradient) !important;
        color: white !important;
        box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4) !important;
        border: none !important;
    }
    
    .cta-button.primary:hover,
    .cta-button.primary:active {
        transform: translateY(-2px) !important;
        box-shadow: 0 12px 35px rgba(255, 105, 180, 0.5) !important;
    }
    
    .cta-button.secondary {
        background: rgba(255, 255, 255, 0.1) !important;
        color: white !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        backdrop-filter: blur(15px) !important;
    }
    
    .cta-button.secondary:hover,
    .cta-button.secondary:active {
        background: rgba(255, 255, 255, 0.2) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        transform: translateY(-2px) !important;
    }
    
    /* ===== PERFECT HERO SCROLL INDICATOR MOBILE ===== */
    .hero-scroll-indicator {
        grid-area: scroll !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
        opacity: 0.8 !important;
        margin: 0 !important;
        justify-self: center !important;
    }
    
    .scroll-mouse {
        width: 24px !important;
        height: 40px !important;
        border: 2px solid rgba(255, 255, 255, 0.5) !important;
        border-radius: 12px !important;
        position: relative !important;
    }
    
    .scroll-wheel {
        width: 3px !important;
        height: 6px !important;
        background: var(--accent-color) !important;
        border-radius: 2px !important;
        position: absolute !important;
        top: 8px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        animation: scroll-wheel 2s infinite !important;
    }
    
    .scroll-text {
        font-size: 0.8rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.1em !important;
        color: rgba(255, 255, 255, 0.7) !important;
        text-align: center !important;
    }
    
    /* ===== REMOVE UNUSED STYLES ===== */
    .title-line {
        display: block !important;
        margin-bottom: 0.2rem !important;
    }
    
    .title-highlight {
        display: block !important;
        margin-bottom: 0.2rem !important;
    }

    /* ===== MOBILE PARTICLES OPTIMIZATION ===== */
    .orb {
        transition: all 0.3s ease !important;
        filter: blur(30px) !important;
    }

    /* ===== CONTACT SECTION MOBILE ===== */
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .wizard-form-container {
        padding: 2rem 1.5rem !important;
        border-radius: 20px !important;
    }
    
    .contact-info-card {
        padding: 2rem 1.5rem !important;
        border-radius: 20px !important;
    }
    
    /* ===== FORMS MOBILE ===== */
    .select-cards {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .radio-group.modern {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .progress-steps {
        flex-direction: column !important;
        gap: 0.8rem !important;
        align-items: center !important;
    }
    
    .step {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.8rem !important;
    }
    
    .step-label {
        text-align: left !important;
        font-size: 0.9rem !important;
    }
    
    /* ===== TRANSFORMATIONS MOBILE ===== */
    .transformations-container {
        height: auto !important;
        min-height: 500px !important;
    }
    
    .transformation-slide {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }
    
    .transformation-images {
        order: 1 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .transformation-content {
        order: 2 !important;
        padding: 1.5rem !important;
    }
    
    .client-name {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .transformations-navigation {
        flex-direction: column !important;
        gap: 1.5rem !important;
        margin-top: 2rem !important;
    }

    /* ===== PERFECT TRANSFORMATIONS SECTION MOBILE ===== */
    .transformations-section-2025 {
        padding: 4rem 0 !important;
    }
    
    /* Smaller description font on mobile */
    .transformations-section-2025 .section-description {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem) !important;
        line-height: 1.5 !important;
        max-width: 95% !important;
        margin: 0 auto !important;
        padding: 0 1rem !important;
    }
    
    /* ===== MAIN GALLERY CONTAINER - HORIZONTAL SLIDES ===== */
    .gallery-container {
        min-height: 500px !important;
        border-radius: 1.5rem !important;
        margin: 0 1rem !important;
        overflow: hidden !important;
        position: relative !important;
    }
    
    /* REMOVE CONFLICTING MOBILE TRANSFORM SYSTEM */
    .gallery-track {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        /* Remove transform system that conflicts with desktop */
        display: block !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* Use same slide system as desktop */
    .transformation-slide {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 450px !important;
        
        /* Same visibility system as desktop */
        opacity: 0 !important;
        visibility: hidden !important;
        transform: scale(0.95) !important;
        transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
        
        /* Layout */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 2rem 1rem !important;
        box-sizing: border-box !important;
        z-index: 1 !important;
    }
    
    /* Active slide - same as desktop */
    .transformation-slide.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: scale(1) !important;
        z-index: 2 !important;
    }
    
    /* First gallery highlight */
    .transformation-slide:first-child .progress-gallery {
        animation: firstGalleryPulse 2s ease-in-out !important;
    }
    
    @keyframes firstGalleryPulse {
        0%, 100% { 
            border-color: rgba(255, 255, 255, 0.1); 
        }
        50% { 
            border-color: rgba(255, 105, 180, 0.5); 
            box-shadow: 0 0 20px rgba(255, 105, 180, 0.3); 
        }
    }
    
    /* ===== INDIVIDUAL PHOTOS GALLERY INSIDE EACH SLIDE ===== */
    .progress-gallery {
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem !important;
        justify-content: flex-start !important;
        align-items: center !important;
        margin-bottom: 1.5rem !important;
        
        /* SCROLLABLE CONTAINER FOR PHOTOS */
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-behavior: smooth !important;
        scroll-snap-type: x mandatory !important;
        
        /* Hide scrollbar but keep functionality */
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        
        /* Padding for better touch area */
        padding: 1rem 0 !important;
        
        /* Make it swipeable */
        touch-action: pan-x !important;
        cursor: grab !important;
        user-select: none !important;
        
        /* Container styling */
        width: 100% !important;
        max-width: 100% !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border-radius: 1rem !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        position: relative !important;
        
        /* Enhanced touch scrolling */
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-x: contain !important;
        transform: translateZ(0) !important; /* Hardware acceleration */
    }
    
    /* CENTER SINGLE IMAGE IN GALLERY */
    .progress-gallery:has(.progress-img:only-child) {
        justify-content: center !important;
    }
    
    /* Fallback for browsers that don't support :has() */
    .progress-gallery .progress-img:only-child {
        margin: 0 auto !important;
    }
    
    /* Hide webkit scrollbar */
    .progress-gallery::-webkit-scrollbar {
        display: none !important;
    }
    
    /* SWIPE INSTRUCTION ON MOBILE */
    .progress-gallery::before {
        content: "← Przesuń w prawo →" !important;
        position: absolute !important;
        top: -2rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background: rgba(255, 105, 180, 0.9) !important;
        color: white !important;
        padding: 0.5rem 1rem !important;
        border-radius: 20px !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        z-index: 10 !important;
        pointer-events: none !important;
        animation: swipeHint 3s ease-in-out infinite !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }
    
    @keyframes swipeHint {
        0%, 100% { 
            opacity: 0.7; 
            transform: translateX(-50%) scale(1); 
        }
        50% { 
            opacity: 1; 
            transform: translateX(-50%) scale(1.05); 
        }
    }
    
    /* Hide instruction after first interaction */
    .progress-gallery.interacted::before {
        display: none !important;
    }
    
    /* Individual progress images - CLICKABLE & SCALABLE */
    .progress-img {
        /* Fixed width for horizontal scroll */
        width: 180px !important;
        height: 240px !important;
        min-width: 180px !important;
        
        object-fit: cover !important;
        object-position: center top !important;
        border-radius: 1rem !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
        
        /* Smooth transitions */
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        
        /* Scroll snap */
        scroll-snap-align: center !important;
        scroll-snap-stop: always !important;
        
        /* Interactive states */
        cursor: pointer !important;
        user-select: none !important;
        
        /* Shadow and glow */
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
        
        /* Make them stand out */
        background: var(--bg-card) !important;
        backdrop-filter: blur(10px) !important;
        
        /* Performance optimization */
        transform: translateZ(0) !important; /* Hardware acceleration */
        backface-visibility: hidden !important;
    }
    
    /* Accessibility improvements */
    .progress-img:focus {
        outline: 2px solid var(--accent-color) !important;
        outline-offset: 2px !important;
        border-color: var(--accent-color) !important;
    }
    
    /* Hover/touch effects for images */
    .progress-img:hover,
    .progress-img:active {
        transform: scale(1.05) translateY(-3px) !important;
        border-color: var(--accent-color) !important;
        box-shadow: 0 15px 35px rgba(255, 105, 180, 0.4) !important;
        z-index: 10 !important;
    }
    
    /* Active state for touch devices */
    .progress-img:active {
        transform: scale(0.98) !important;
        transition-duration: 0.1s !important;
    }
    
    /* Client name styling */
    .client-name {
        font-size: 2rem !important;
        font-weight: 700 !important;
        margin-top: 1rem !important;
        margin-bottom: 0.5rem !important;
        color: white !important;
        text-align: center !important;
        
        /* Gradient text effect */
        background: linear-gradient(135deg, #ffffff, var(--accent-color)) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        
        /* Letter spacing for elegance */
        letter-spacing: 0.5px !important;
    }
    
    /* ===== MAIN GALLERY NAVIGATION - SIMPLIFIED FOR MOBILE ===== */
    .gallery-navigation {
        margin-top: 2rem !important;
        padding: 0 1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1rem !important;
        position: relative !important;
        max-width: 100% !important;
        overflow: visible !important;
    }
    
    /* Navigation buttons - simplified */
    .gallery-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.2rem !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: white !important;
        backdrop-filter: blur(10px) !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        z-index: 10 !important;
    }
    
    .gallery-btn:hover,
    .gallery-btn:active {
        background: rgba(255, 255, 255, 0.2) !important;
        border-color: var(--accent-color) !important;
        transform: scale(1.05) !important;
    }
    
    /* Navigation dots - simplified and perfectly centered */
    .gallery-dots {
        display: flex !important;
        gap: 0.8rem !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        margin: 0 !important;
        padding: 0 !important;
        position: static !important;
        transform: none !important;
        order: 1 !important;
    }
    
    .gallery-dot {
        width: 12px !important;
        height: 12px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.3) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        flex-shrink: 0 !important;
        position: relative !important;
    }
    
    .gallery-dot:hover {
        background: rgba(255, 255, 255, 0.5) !important;
        transform: scale(1.1) !important;
    }
    
    .gallery-dot.active {
        background: var(--accent-color) !important;
        border-color: var(--accent-color) !important;
        transform: scale(1.2) !important;
        box-shadow: 0 0 10px rgba(255, 105, 180, 0.5) !important;
    }
    
    /* Reorder navigation elements for mobile */
    .gallery-btn.prev {
        order: 0 !important;
    }
    
    .gallery-btn.next {
        order: 2 !important;
    }
    
    /* Remove instruction text and animations that cause problems */
    .gallery-navigation::after,
    .gallery-navigation::before {
        display: none !important;
    }
    
    .progress-gallery::before {
        display: none !important;
    }
    
    /* ===== LIGHTBOX MOBILE OPTIMIZATION ===== */
    .lightbox-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 10000 !important;
        backdrop-filter: blur(20px) !important;
        background: rgba(0, 0, 0, 0.9) !important;
        
        /* CRITICAL - HIDDEN BY DEFAULT */
        display: none !important;
        align-items: center !important;
        justify-content: center !important;
        
        /* Smooth transitions */
        opacity: 0 !important;
        transition: all 0.3s ease !important;
    }
    
    /* CRITICAL - SHOW WHEN ACTIVE */
    .lightbox-modal.active {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .lightbox-content {
        max-width: 95vw !important;
        max-height: 95vh !important;
        margin: 2.5vh auto !important;
        position: relative !important;
        z-index: 10001 !important;
    }
    
    .lightbox-image-container {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .lightbox-image {
        max-width: 90vw !important;
        max-height: 75vh !important;
        object-fit: contain !important;
        border-radius: 1rem !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7) !important;
        
        /* Loading transition */
        opacity: 1 !important;
        transition: opacity 0.3s ease !important;
    }
    
    .lightbox-close {
        position: absolute !important;
        top: -50px !important;
        right: 0 !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
        background: rgba(0, 0, 0, 0.7) !important;
        backdrop-filter: blur(15px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: white !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
        z-index: 10002 !important;
    }
    
    .lightbox-close:hover,
    .lightbox-close:active {
        background: rgba(255, 105, 180, 0.8) !important;
        border-color: rgba(255, 105, 180, 0.8) !important;
        transform: scale(1.1) !important;
    }
    
    .lightbox-navigation {
        position: absolute !important;
        top: 50% !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        justify-content: space-between !important;
        padding: 0 -60px !important;
        pointer-events: none !important;
        z-index: 10002 !important;
    }
    
    .lightbox-btn {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.3rem !important;
        background: rgba(0, 0, 0, 0.7) !important;
        backdrop-filter: blur(15px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: white !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
        pointer-events: all !important;
    }
    
    .lightbox-btn:hover,
    .lightbox-btn:active {
        background: rgba(255, 105, 180, 0.8) !important;
        border-color: rgba(255, 105, 180, 0.8) !important;
        transform: scale(1.1) !important;
    }
    
    .lightbox-btn.prev {
        margin-left: -25px !important;
    }
    
    .lightbox-btn.next {
        margin-right: -25px !important;
    }

    /* ===== MAIN GALLERY NAVIGATION FIX ===== */
    .gallery-navigation {
        margin-top: 2.5rem !important;
        padding: 0 1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2rem !important;
    }
    
    .gallery-btn {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: white !important;
        backdrop-filter: blur(15px) !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 10 !important;
    }
    
    .gallery-btn:hover,
    .gallery-btn:active {
        background: rgba(255, 255, 255, 0.2) !important;
        border-color: var(--accent-color) !important;
        transform: scale(1.1) !important;
        box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3) !important;
    }
    
    .gallery-btn:disabled {
        opacity: 0.5 !important;
        cursor: not-allowed !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }
    
    .gallery-btn:disabled:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* ===== SMALL MOBILE PHONES (480px and below) ===== */
@media (max-width: 480px) {
    /* Override CSS Variables for small mobile */
    :root {
        --spacing-2xl: 2rem !important;
        --spacing-xl: 1.5rem !important;
        --spacing-lg: 1rem !important;
        --spacing-md: 0.8rem !important;
    }
    
    /* ===== SMALL MOBILE NAVIGATION ===== */
    .nav-container {
        padding: 0.8rem 1rem !important;
        height: 65px !important;
    }
    
    .logo-img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .nav-menu {
        top: 65px !important;
        height: calc(100vh - 65px) !important;
        padding: 2rem 0 !important;
    }
    
    .mobile-menu-toggle span {
        width: 25px !important;
        height: 2.5px !important;
    }

    /* ===== SMALL MOBILE HERO SECTION ===== */
    .hero-2025 {
        padding: 65px 0 0 0 !important;
    }
    
    .hero-container {
        padding: 1.5rem 1rem !important;
        gap: 2rem !important;
        min-height: calc(100vh - 65px) !important;
    }
    
    /* ===== SMALL MOBILE HERO TITLE ===== */
    .hero-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem) !important;
        line-height: 1.15 !important;
        margin-bottom: 1.2rem !important;
        letter-spacing: -0.01em !important;
    }
    
    .title-line {
        margin-bottom: 0.2rem !important;
    }
    
    .title-highlight {
        margin-bottom: 0.2rem !important;
    }
    
    /* ===== SMALL MOBILE HERO SUBTITLE ===== */
    .hero-subtitle {
        font-size: clamp(0.85rem, 3.8vw, 1rem) !important;
        line-height: 1.5 !important;
        margin-bottom: 1.8rem !important;
        max-width: 95% !important;
        font-weight: 500 !important;
        text-align: center !important;
    }
    
    /* ===== SMALL MOBILE HERO STATS ===== */
    .hero-stats {
        gap: 1.2rem !important;
        margin-bottom: 2rem !important;
        max-width: 280px !important;
    }
    
    .stat-item {
        padding: 1.2rem 1rem !important;
        border-radius: 12px !important;
    }
    
    .stat-prefix {
        font-size: 0.75rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .stat-number {
        font-size: 2.2rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .stat-label {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
    }
    
    /* ===== SMALL MOBILE HERO CTA ===== */
    .hero-cta {
        gap: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .cta-button {
        max-width: 280px !important;
        padding: 0.9rem 1.8rem !important;
        font-size: 0.95rem !important;
        min-height: 48px !important;
        gap: 0.6rem !important;
    }
    
    .cta-text {
        font-weight: 600 !important;
    }
    
    .cta-icon {
        font-size: 1rem !important;
    }
    
    /* ===== SMALL MOBILE HERO IMAGE ===== */
    .hero-image {
        max-width: 300px !important;
        margin: 0 auto !important;
    }
    
    .image-frame {
        padding: 0.6rem !important;
        border-radius: 16px !important;
    }
    
    .hero-img {
        border-radius: 12px !important;
    }
    
    /* ===== SMALL MOBILE FLOATING ICONS ===== */
    .floating-icon {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }
    
    .icon-1, .icon-2, .icon-3 {
        display: block !important;
        opacity: 0.7 !important;
    }
    
    /* ===== SMALL MOBILE INTERACTIVE PARTICLES ===== */

    
    .orb {
        filter: blur(25px) !important;
    }
    
    /* Override ripple animation for small screens */
    @keyframes ripple-expand {
        0% {
            width: 0;
            height: 0;
            opacity: 1;
        }
        100% {
            width: 100px;
            height: 100px;
            opacity: 0;
        }
    }
    
    /* ===== SMALL MOBILE SCROLL INDICATOR ===== */
    .hero-scroll-indicator {
        margin-top: 1.5rem !important;
        gap: 0.8rem !important;
    }
    
    .scroll-mouse {
        width: 22px !important;
        height: 36px !important;
        border-width: 2px !important;
        border-radius: 11px !important;
    }
    
    .scroll-wheel {
        width: 2.5px !important;
        height: 5px !important;
        top: 6px !important;
    }
    
    .scroll-text {
        font-size: 0.75rem !important;
        letter-spacing: 0.05em !important;
    }
    
    /* ===== SMALL MOBILE FORMS ===== */
    .wizard-form-container,
    .contact-info-card {
        padding: 1.5rem 1rem !important;
        border-radius: 16px !important;
    }
    
    .form-navigation {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .nav-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
        min-height: 45px !important;
    }
    
    /* ===== PERFORMANCE OPTIMIZATIONS FOR SMALL MOBILE ===== */
    .orb-1, .orb-2, .orb-3 {
        filter: blur(20px) !important;
        opacity: 0.6 !important;
    }
    
    .particles-container {
        will-change: auto !important;
    }
    
    /* Reduce particle count on small screens */

    
    /* ===== TRANSFORMATIONS GALLERY RESPONSIVE ===== */
    .progress-img {
        width: 160px !important;
        height: 220px !important;
        min-width: 160px !important;
    }
    
    .gallery-navigation::after {
        font-size: 0.7rem !important;
        bottom: -2rem !important;
    }
    
    .progress-gallery::before {
        font-size: 0.75rem !important;
        top: -1.8rem !important;
    }
}

/* ===== ACCESSIBILITY OVERRIDES ===== */
@media (prefers-reduced-motion: reduce) {
    .orb,
    .floating-icon {
        animation: none !important;
        transition: none !important;
    }
    
    .cta-button {
        transition: background-color 0.2s ease !important;
    }
    
    .hero-scroll-indicator {
        animation: none !important;
    }
}

/* ===== HIGH CONTRAST OVERRIDES ===== */
@media (prefers-contrast: high) {
    .hero-title {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    }
    
    .hero-subtitle {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
    }
    
    .cta-button {
        border: 2px solid white !important;
    }
    
    .stat-item {
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
    }
}

/* ===== DARK MODE MOBILE OVERRIDES ===== */
@media (max-width: 768px) {
    [data-theme="dark"] .hero-title {
        color: #ffffff !important;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6) !important;
    }
    
    [data-theme="dark"] .hero-subtitle {
        color: rgba(255, 255, 255, 0.9) !important;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5) !important;
    }
    
    [data-theme="dark"] .stat-item {
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    [data-theme="dark"] .cta-button.secondary {
        background: rgba(255, 255, 255, 0.08) !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .cta-button:hover {
        transform: none !important;
    }
    
    .stat-item:hover {
        transform: none !important;
    }
    
    .floating-icon:hover {
        transform: none !important;
    }
    
    /* Enhanced touch targets */
    .cta-button {
        min-height: 48px !important;
        min-width: 48px !important;
    }
    
    .floating-icon {
        min-width: 44px !important;
        min-height: 44px !important;
    }
}

/* ===== FORCE MOBILE LAYOUT ON EDGE CASES ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-container {
        min-height: auto !important;
        padding: 1rem 1.5rem !important;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr !important;
        max-width: 500px !important;
    }
}

/* ===== VERY SMALL SCREENS (320px and below) ===== */
@media (max-width: 320px) {
    .hero-container {
        padding: 1rem 0.5rem !important;
    }
    
    .hero-title {
        font-size: clamp(1.4rem, 8vw, 2rem) !important;
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 3vw, 0.95rem) !important;
        text-align: center !important;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.85rem !important;
        min-height: 44px !important;
    }
    
    .stat-item {
        padding: 0.8rem 0.6rem !important;
    }
    
    .hero-image {
        max-width: 280px !important;
    }
    
    /* ===== TRANSFORMATIONS GALLERY VERY SMALL SCREENS ===== */
    .progress-img {
        width: 140px !important;
        height: 200px !important;
        min-width: 140px !important;
    }
    
    .transformation-slide {
        padding: 1.5rem 0.8rem !important;
    }
    
    .gallery-navigation::after {
        font-size: 0.65rem !important;
        bottom: -1.8rem !important;
    }
    
    .progress-gallery::before {
        font-size: 0.7rem !important;
        top: -1.5rem !important;
    }
} 