/* ==========================================================================
   1. RESET & BASE BOX-SIZING
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   2. MOTYWY KOLORYSTYCZNE BRANŻ
   ========================================================================== */
.theme-fryzjer {
    --bg-main: #120e0c;
    --bg-card: #1c1714;
    --bg-input: #26201b;
    --text-title: #f5ebe0;
    --text-body: #d7ccc8;
    --accent: #d4af37;               /* Złoty */
    --accent-text: #120e0c;
    --border-color: rgba(212, 175, 55, 0.2);
    --hero-overlay: rgba(18, 14, 12, 0.85);
    --card-hover-border: #d4af37;
}

.theme-kosmetyczka {
    --bg-main: #fcf8f6;               /* Kremowy / Light */
    --bg-card: #ffffff;
    --bg-input: #f3ece8;
    --text-title: #2b1e22;
    --text-body: #665258;
    --accent: #d88399;               /* Rose Gold */
    --accent-text: #ffffff;
    --border-color: rgba(216, 131, 153, 0.25);
    --hero-overlay: rgba(43, 30, 34, 0.85);
    --card-hover-border: #d88399;
}

.theme-warsztat {
    --bg-main: #16181a;
    --bg-card: #212428;
    --bg-input: #2b2f35;
    --text-title: #ffffff;
    --text-body: #a0a6b0;
    --accent: #ffc107;               /* Jaskrawa żółć */
    --accent-text: #000000;
    --border-color: rgba(255, 193, 7, 0.2);
    --hero-overlay: rgba(22, 24, 26, 0.88);
    --card-hover-border: #ffc107;
}

.theme-detailing {
    --bg-main: #07090e;
    --bg-card: #0e131f;
    --bg-input: #172033;
    --text-title: #ffffff;
    --text-body: #8e9bb0;
    --accent: #00e5ff;               /* Neon Cyjan */
    --accent-text: #07090e;
    --border-color: rgba(0, 229, 255, 0.2);
    --hero-overlay: rgba(7, 9, 14, 0.85);
    --card-hover-border: #00e5ff;
}

/* ==========================================================================
   3. RESPONSYWNY FLOATING GLASS BAR (PASEK NAWIGACYJNY DEMO)
   ========================================================================== */
#demo-floating-bar {
    position: relative;
    z-index: 100;
    width: 100%;
    padding: 12px 16px;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-bar-inner {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 240, 255, 0.1);
    flex-wrap: wrap;
    max-width: 1140px;
    margin: 0 auto;
}

.demo-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.demo-label {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
    text-transform: uppercase;
}

.demo-pills {
    display: flex;
    background: rgba(0, 0, 0, 0.35);
    padding: 3px;
    border-radius: 30px;
    gap: 3px;
    max-width: 100%;
}

/* Przyciski w nawigacji */
.pill-btn, .device-btn {
    background: transparent;
    color: #94a3b8;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pill-btn:hover, .device-btn:hover {
    color: #ffffff;
}

.pill-btn.active, .device-btn.active {
    background: #00f0ff;
    color: #0b0f19;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* Styl dla przycisku powrotu do Strony Główniej */
.pill-btn.home-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pill-btn.home-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.demo-tutorial-btn {
    background: linear-gradient(135deg, #ffb703, #fb8500);
    color: #000;
    border: none;
    padding: 7px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 11.5px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 183, 3, 0.3);
    transition: transform 0.2s ease;
}

.demo-tutorial-btn:hover {
    transform: scale(1.04);
}

/* --- RESPONSYWNOŚĆ NAWIGACJI DEMO (MOBILE OPTIMIZATIONS) --- */
@media (max-width: 900px) {
    .demo-bar-inner {
        border-radius: 20px;
        padding: 10px 12px;
        gap: 10px;
    }
}

@media (max-width: 640px) {
    #demo-floating-bar {
        padding: 8px;
    }

    .demo-bar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        border-radius: 16px;
        padding: 8px 10px;
    }

    .demo-group {
        width: 100%;
        justify-content: space-between;
    }

    /* Sekcja wyboru branży staje się poziomym, przewijanym paskiem */
    .demo-group.theme-switcher-group {
        width: 100%;
        overflow: hidden;
    }

    .demo-pills {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px;
    }

    .demo-pills::-webkit-scrollbar { 
        display: none; 
    }

    .pill-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .demo-label { 
        display: none; 
    }

    /* Ukrywamy symulator urządzeń na fizycznych telefonach */
    .device-switcher-group { 
        display: none !important; 
    }

    .demo-tutorial-btn {
        width: 100%;
        text-align: center;
        padding: 8px 12px;
    }
}


/* ==========================================================================
   4. SCENA I MAKIETA URZĄDZENIA (COMPUTER / TABLET / MOBILE SCREEN MOCKUP)
   ========================================================================== */
.demo-stage-wrapper {
    padding: 20px 12px 40px 12px;
    background: radial-gradient(circle at 50% 10%, #1e293b 0%, #0b0f19 75%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.stage-header-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 12.5px;
    margin-bottom: 18px;
    text-align: center;
    width: 100%;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.6s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Obudowa Przeglądarki / Komputera */
.computer-screen-mockup {
    width: 100%;
    margin: 0 auto;
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

/* Wymiary zależne od wybranego widoku */
.computer-screen-mockup.view-desktop { max-width: 1200px; }
.computer-screen-mockup.view-tablet { max-width: 768px; }
.computer-screen-mockup.view-mobile { max-width: 385px; }

/* Górny Pasek Przeglądarki (Safari / Chrome bar) */
.browser-topbar {
    background: #0f172a;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 10px;
}

.browser-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.browser-addressbar {
    background: #1e293b;
    color: #94a3b8;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-grow: 1;
    max-width: 360px;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ssl-icon { font-size: 10px; color: #10b981; }
.url-text { color: #cbd5e1; font-family: monospace; font-size: 11px; }

.browser-actions { flex-shrink: 0; }
.browser-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 9.5px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* OKNO Z ZAWARTOŚCIĄ STRONY DEMO (VIEWPORT) */
.browser-viewport {
    height: 72vh;
    max-height: 850px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
    background-color: var(--bg-main);
    color: var(--text-body);
}

/* Dedykowany, nowoczesny scrollbar dla viewportu */
.browser-viewport::-webkit-scrollbar {
    width: 7px;
}
.browser-viewport::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.browser-viewport::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
.browser-viewport::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}


/* ==========================================================================
   5. RESPONSYWNY UKŁAD ELEMENTÓW STRONY DEMO
   ========================================================================== */
.demo-hero {
    position: relative;
    min-height: clamp(420px, 55vh, 650px);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(40px, 6vw, 80px) 20px;
}

.demo-hero-content {
    max-width: 780px;
    margin: 0 auto;
}

.demo-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Płynny rozmiar czcionki nagłówka Hero */
.demo-hero h1 {
    font-size: clamp(24px, 4vw, 42px);
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.25;
    font-weight: 800;
}

.demo-hero p {
    font-size: clamp(14px, 1.8vw, 17px);
    color: #e2e8f0;
    margin-bottom: 24px;
    line-height: 1.5;
}

.demo-hero-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-text);
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    border: none;
    font-size: 14px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: background 0.2s ease;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
}

.demo-section {
    padding: clamp(40px, 5vw, 70px) 20px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.demo-container {
    max-width: 1040px;
    margin: 0 auto;
    position: relative;
}

.demo-section-header {
    text-align: center;
    margin-bottom: clamp(25px, 4vw, 45px);
}

.demo-section-header h2 {
    font-size: clamp(22px, 3.2vw, 32px);
    color: var(--text-title);
    margin-bottom: 6px;
    font-weight: 700;
}

.demo-section-header p {
    color: var(--text-body);
    font-size: clamp(13px, 1.6vw, 15px);
}

/* RESPONSYWNE SIATKI (GRID ENGINE) */
.demo-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
}

.demo-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 25px;
}

.demo-service-card, .demo-feature-card, .contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.service-img-wrap img, .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.demo-service-card:hover img, .gallery-item:hover img {
    transform: scale(1.05);
}

.service-price {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--accent);
    color: var(--accent-text);
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.service-body, .demo-feature-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-body h3, .demo-feature-card h3 {
    color: var(--text-title);
    margin-bottom: 8px;
    font-size: 18px;
}

.service-body p, .demo-feature-card p {
    color: var(--text-body);
    font-size: 13.5px;
    line-height: 1.5;
}

.gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
}

.contact-info h2 { color: var(--text-title); margin-bottom: 10px; }
.contact-form-card { padding: 25px; }
.contact-form-card h3 { color: var(--text-title); margin-bottom: 14px; }

.contact-form-card input, .contact-form-card textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 11px;
    margin-bottom: 12px;
    border-radius: 6px;
    color: var(--text-title);
    font-size: 13.5px;
}

.contact-list { list-style: none; padding: 0; margin-top: 18px; }
.contact-list li { margin-bottom: 12px; color: var(--text-body); font-size: 14px; }

/* DYMKI SAMOUCZKA KLIENTA */
.tutorial-bubble {
    background: rgba(0, 0, 0, 0.75);
    border: 2px dashed #ffb703;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 22px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: #ffffff;
}

.tutorial-bubble.hidden { display: none !important; }

.tutorial-badge {
    color: #ffb703;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.tutorial-text { color: #ffffff; font-size: 13px; line-height: 1.45; }


/* ==========================================================================
   6. DEDYKOWANE PRZEBUDOWY STRONY W ZALEŻNOŚCI OD TRYBU WIDOKU SYMULATORA
   ========================================================================== */

/* TRYB TELEFONU (view-mobile active) */
.computer-screen-mockup.view-mobile .demo-grid-3,
.computer-screen-mockup.view-mobile .demo-grid-2 {
    grid-template-columns: 1fr !important; /* Wymuszenie 1 kolumny w widoku telefonu */
}

.computer-screen-mockup.view-mobile .demo-hero-btns {
    flex-direction: column;
    width: 100%;
}

.computer-screen-mockup.view-mobile .demo-hero-btns a {
    width: 100%;
    text-align: center;
}

/* TRYB TABLETU (view-tablet active) */
.computer-screen-mockup.view-tablet .demo-grid-3 {
    grid-template-columns: repeat(2, 1fr) !important; /* Wymuszenie 2 kolumn w widoku tabletu */
}

/* OGLÓNE POMOCNICZE KLASY */
.w-100 { width: 100%; }