/* --- RESET I ZMIENNE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --bg-color: #0a0a0c; --text-main: #f0f0f0; --text-muted: #666; --accent: #d4af37; --mouseX: 50vw; --mouseY: 50vh; }
body { background-color: var(--bg-color); color: var(--text-main); font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* ==========================================================================
   TŁO GŁÓWNE STRONY
   ========================================================================== */
.bg-deco { position: fixed; z-index: -1; pointer-events: none; mix-blend-mode: screen; opacity: 0.12; }
.bg-deco-1 { top: -15%; left: -10%; width: 60vw; height: 60vh; background: url('2.jpg') no-repeat center/contain; transform: rotate(-15deg); }
.bg-deco-2 { bottom: -10%; right: -5%; width: 55vw; height: 55vh; background: url('3.jpg') no-repeat center/contain; transform: rotate(25deg); }

/* ==========================================================================
   KURSOR
   ========================================================================== */
.galeria-item, .omnie-zdjecie img, .wideo-item { cursor: none; }
.custom-cursor-matowka {
    position: fixed; top: var(--mouseY); left: var(--mouseX); pointer-events: none; z-index: 99998;
    width: 80px; height: 80px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%;
    background: rgba(10, 10, 12, 0.1); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    transform: translate(-50%, -50%) scale(0.5); opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}
.custom-cursor-matowka.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.matowka-crosshair-x, .matowka-crosshair-y { position: absolute; background: rgba(255,255,255,0.7); }
.matowka-crosshair-x { top: 50%; left: 35%; right: 35%; height: 1px; transform: translateY(-50%); }
.matowka-crosshair-y { left: 50%; top: 35%; bottom: 35%; width: 1px; transform: translateX(-50%); }

@media (hover: none) and (pointer: coarse) {
    .custom-cursor-matowka { display: none !important; }
    .galeria-item, .omnie-zdjecie img, .wideo-item { cursor: auto; }
}

/* ==========================================================================
   LOGO I MENU GŁÓWNE
   ========================================================================== */
.brand-logo-corner { position: fixed; top: 40px; left: 5%; z-index: 9500; width: 200px; transition: transform 0.3s ease, opacity 0.3s ease; }
.brand-logo-corner img { width: 100%; height: auto; display: block; }
.brand-logo-corner:hover { transform: scale(1.05); opacity: 0.8; }
.menu-toggle { position: fixed; top: 40px; right: 5%; padding: 12px 30px; background: rgba(10, 10, 12, 0.7); border: 1px solid rgba(255,255,255,0.15); border-radius: 40px; backdrop-filter: blur(8px); z-index: 9500; transition: background 0.3s ease, border-color 0.3s ease; cursor: pointer; }
.menu-text { font-family: 'Syncopate', sans-serif; font-size: 0.85rem; font-weight: 700; letter-spacing: 2px; color: var(--text-main); transition: color 0.3s ease; }
.menu-toggle:hover { background: rgba(10, 10, 12, 0.95); border-color: var(--accent); }
.menu-toggle:hover .menu-text { color: var(--accent); }

.fullscreen-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(10, 10, 12, 0.94); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 9000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s; }
.fullscreen-menu.active { opacity: 1; visibility: visible; }
.menu-bg-deco { position: absolute; top: 50%; right: -5%; width: 60vw; height: 80vh; background: url('3.jpg') no-repeat center/contain; transform: translateY(-50%) rotate(15deg); mix-blend-mode: screen; opacity: 0.15; z-index: -1; pointer-events: none; }
.menu-container { display: flex; width: 100%; max-width: 1400px; padding: 0 10%; justify-content: space-between; align-items: center; gap: 100px; transform: translateY(40px); transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: 0.1s; }
.fullscreen-menu.active .menu-container { transform: translateY(0); }
.menu-left { flex: 1; }
.menu-right { flex: 0.5; display: flex; flex-direction: column; border-left: 1px solid rgba(255,255,255,0.1); padding-left: 60px; }
.menu-label { font-family: 'Syncopate', sans-serif; font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 4px; margin-bottom: 40px; display: block; }
.massive-nav ul { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.massive-nav a { font-family: 'Syncopate', sans-serif; font-size: 4.5rem; font-weight: 700; color: rgba(255,255,255,0.35); text-decoration: none; text-transform: uppercase; transition: color 0.4s ease, transform 0.4s ease, padding-left 0.4s ease; display: inline-block; position: relative; }
.massive-nav a::before { content: ''; position: absolute; top: 50%; left: 0; width: 0; height: 4px; background: var(--accent); transform: translateY(-50%); transition: width 0.4s ease, left 0.4s ease; border-radius: 2px; }
.massive-nav a:hover, .massive-nav a.active { color: var(--text-main); padding-left: 50px; }
.massive-nav a:hover::before, .massive-nav a.active::before { width: 30px; left: 0; }
.menu-title { font-family: 'Syncopate', sans-serif; font-size: 1.5rem; color: var(--text-main); margin-bottom: 5px; }
.menu-subtitle { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--text-muted); font-style: italic; margin-bottom: 40px;}
.menu-contact, .menu-socials { display: flex; flex-direction: column; gap: 15px; margin-bottom: 40px; }
.menu-contact a, .menu-socials a { color: var(--text-muted); text-decoration: none; font-size: 1.1rem; transition: color 0.3s ease, padding-left 0.3s ease; }
.menu-contact a:hover, .menu-socials a:hover { color: var(--accent); padding-left: 10px; }

/* ==========================================================================
   LANDING PAGE
   ========================================================================== */
.landing-page { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; display: flex; justify-content: center; align-items: center; overflow: hidden; text-align: center; z-index: 10; }
.drafting-grid { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 50px 50px; z-index: -1; }
.hero-content { z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 0 5%; width: 100%; max-width: 1200px; }
.hero-logo { max-width: 600px; width: 80vw; margin-bottom: 30px; filter: drop-shadow(0 15px 40px rgba(0,0,0,0.6)); }
.hero-slogan { font-family: 'Playfair Display', serif; font-size: 2rem; font-style: italic; color: var(--text-muted); margin-bottom: 50px; letter-spacing: 1px; }
.btn-enter { display: inline-block; padding: 18px 45px; border: 1px solid var(--accent); color: var(--accent); text-transform: uppercase; font-family: 'Syncopate', sans-serif; font-size: 0.85rem; font-weight: 700; letter-spacing: 3px; text-decoration: none; transition: all 0.4s ease; cursor: pointer; }
.btn-enter:hover { background: var(--accent); color: var(--bg-color); box-shadow: 0 0 30px rgba(212, 175, 55, 0.3); transform: translateY(-3px); }
.fade-in-up { opacity: 0; transform: translateY(40px); animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   PORTFOLIO (GALERIA)
   ========================================================================== */
.nav-btn { position: fixed; top: 50%; transform: translateY(-50%); width: 60px; height: 60px; border-radius: 50%; background: rgba(10, 10, 12, 0.6); border: 1px solid rgba(255,255,255,0.1); color: var(--text-main); font-size: 1.5rem; display: flex; justify-content: center; align-items: center; z-index: 8500; backdrop-filter: blur(5px); transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease; cursor: pointer; }
.nav-btn:hover { background: rgba(10, 10, 12, 0.95); border-color: var(--accent); color: var(--accent); }
.prev-btn { left: 2%; }
.next-btn { right: 2%; }

/* --- DOMYŚLNE MENU KATEGORII (KOMPUTERY) --- */
.awangarda-filtr { 
    position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 8000; 
    display: flex; gap: 20px; background: rgba(10, 10, 12, 0.85); padding: 12px 30px; 
    border-radius: 50px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.05); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    max-width: 90vw; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    justify-content: center; 
}
.awangarda-filtr::-webkit-scrollbar { display: none; }
.filter-btn { 
    background: transparent; border: none; color: var(--text-muted); font-family: 'Syncopate', sans-serif; 
    text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; transition: color 0.3s ease; 
    cursor: pointer; white-space: nowrap; flex-shrink: 0; 
}
.filter-btn:hover, .filter-btn.active { color: var(--text-main); }

.horizontal-scroll-wrapper { 
    position: fixed; top: 12vh; left: 0; height: 65vh; display: flex; flex-direction: row; align-items: center; 
    padding: 0 10vw; width: max-content; gap: 5vw; will-change: transform; cursor: grab; 
    touch-action: none; overscroll-behavior: none; 
}
.horizontal-scroll-wrapper:active, .horizontal-scroll-wrapper:active * { cursor: grabbing !important; }

.intro-item, .outro-item { display: flex; flex-direction: column; justify-content: center; }
.brutal-title { font-family: 'Playfair Display', serif; font-size: 3.5rem; font-weight: 400; line-height: 1.1; margin-bottom: 10px; letter-spacing: 1px; }
.scroll-hint { color: var(--text-muted); font-size: 1rem; font-style: italic; }

.rows-container { display: flex; flex-direction: column; justify-content: space-between; height: 100%; gap: 15px; }
.scrolling-row { display: flex; flex-direction: row; height: calc((100% - 45px) / 4); }
.horizontal-item { height: 100%; display: flex; }

.galeria-item { 
    margin-right: 15px; max-width: 100vw; opacity: 1; transform: scale(1); transform-origin: left center;
    overflow: hidden; flex-shrink: 0; will-change: max-width, margin-right, opacity, transform;
    transition: max-width 0.8s cubic-bezier(0.22, 1, 0.36, 1), margin-right 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease 0.1s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}
.galeria-item:last-child { margin-right: 0; }
.zdjecie-wrapper { height: 100%; position: relative; border-radius: 4px; overflow: hidden; display: flex; }
.zdjecie-wrapper::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 5; background: transparent; }
.zdjecie-wrapper img { height: 100%; width: auto; display: block; filter: grayscale(80%); transition: filter 0.6s ease, transform 0.8s ease; user-select: none; -webkit-user-drag: none; flex-shrink: 0; }
.galeria-item:hover img { filter: grayscale(0%); transform: scale(1.03); }

.awangarda-podpis { position: absolute; bottom: 8px; left: 8px; z-index: 10; background: rgba(10, 10, 12, 0.8); backdrop-filter: blur(5px); padding: 4px 10px; border-radius: 20px; display: flex; gap: 8px; align-items: center; opacity: 0.85; transition: opacity 0.3s ease, transform 0.3s ease; pointer-events: none; }
.galeria-item:hover .awangarda-podpis { opacity: 1; transform: translateY(-3px); }
.awangarda-podpis .num { color: var(--accent); font-family: 'Syncopate', sans-serif; font-size: 0.6rem; font-weight: 700; }
.awangarda-podpis .kat { color: var(--text-main); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; }

.galeria-item.ukryty { 
    max-width: 0 !important; margin-right: 0 !important; opacity: 0 !important; transform: scale(0.6) !important; pointer-events: none; 
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), max-width 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s, margin-right 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

/* ==========================================================================
   LIGHTBOX I WIDEO
   ========================================================================== */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 10, 12, 0.98); z-index: 15000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.lightbox.aktywny { opacity: 1; pointer-events: all; }
.lightbox-tarcza { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 15002; background: transparent; cursor: pointer; }
.lightbox-zamknij { position: absolute; top: 30px; right: 5%; font-size: 40px; color: #fff; z-index: 15003; cursor: pointer; opacity: 0; transform: translateY(-20px); transition: all 0.5s ease 0.3s; }
.lightbox.aktywny .lightbox-zamknij { opacity: 1; transform: translateY(0); }

.lightbox:not(.is-panorama) img { max-width: 90%; max-height: 90vh; box-shadow: 0 30px 60px rgba(0,0,0,0.8); position: relative; z-index: 15001; opacity: 0; transform: scale(0.85); will-change: transform, opacity; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease; }
.lightbox:not(.is-panorama).aktywny img { opacity: 1; transform: scale(1); }

.lightbox.is-panorama { justify-content: flex-start; }
.lightbox.is-panorama img { 
    height: 100vh; width: auto; max-width: none; max-height: none; box-shadow: none; opacity: 0; 
    will-change: transform, opacity; transition: opacity 0.7s ease; touch-action: none;
}
.lightbox.is-panorama.aktywny img { opacity: 1; }

.page-content { padding-top: 150px; padding-bottom: 100px; max-width: 1200px; margin: 0 auto; padding-left: 5%; padding-right: 5%;}
.wideo-page { max-width: 1400px; } 
.wideo-kategoria-sekcja { margin-bottom: 80px; }
.wideo-kategoria-tytul { font-family: 'Syncopate', sans-serif; font-size: 1.5rem; color: var(--accent); margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; letter-spacing: 2px; }
.wideo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.wideo-item { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; background: #000; box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.wideo-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease; }
.wideo-item:hover img { transform: scale(1.08); opacity: 0.3; }
.wideo-nakladka { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px; pointer-events: none; }
.play-btn { width: 60px; height: 60px; background: var(--accent); border-radius: 50%; display: flex; justify-content: center; align-items: center; margin-bottom: 20px; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 0 20px rgba(212, 175, 55, 0.2); }
.play-btn::after { content: ''; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 14px solid var(--bg-color); margin-left: 4px; }
.wideo-item:hover .play-btn { transform: scale(1.15); background: #fff; box-shadow: 0 0 30px rgba(255, 255, 255, 0.4); }

/* ==========================================================================
   KONTAKT I O MNIE
   ========================================================================== */
.kontakt-page { max-width: 1000px; margin: 0 auto; }
.text-center { text-align: center; }
.kontakt-kontener { display: flex; gap: 60px; align-items: flex-start; margin-top: 50px; }
.kontakt-dane { flex: 1; display: flex; flex-direction: column; gap: 30px; border-right: 1px solid rgba(255,255,255,0.1); padding-right: 40px; }
.dane-blok { display: flex; flex-direction: column; gap: 5px; }
.dane-etykieta { font-family: 'Syncopate', sans-serif; font-size: 0.65rem; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; }
.dane-wartosc { color: var(--text-main); font-size: 1.2rem; text-decoration: none; transition: color 0.3s ease, padding-left 0.3s ease; display: inline-block; }
.dane-wartosc:hover { color: var(--accent); padding-left: 10px; }
.kontakt-formularz-wrapper { flex: 1.5; }
.kontakt-formularz { display: flex; flex-direction: column; gap: 20px; }
.form-grupa input, .form-grupa textarea { width: 100%; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); padding: 15px 20px; color: var(--text-main); font-family: 'Inter', sans-serif; border-radius: 4px; transition: border-color 0.3s ease; }
.form-grupa input:focus, .form-grupa textarea:focus { outline: none; border-color: var(--accent); }
.btn-wyslij { background: transparent; color: var(--accent); border: 1px solid var(--accent); padding: 15px 30px; font-family: 'Syncopate', sans-serif; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; cursor: pointer; border-radius: 4px; transition: all 0.3s ease; align-self: flex-start; margin-top: 10px; }
.btn-wyslij:hover { background: var(--accent); color: var(--bg-color); }

/* ==========================================================================
   OPTYMALIZACJA DLA SMARTFONÓW
   ========================================================================== */
@media (max-width: 768px) { 
    /* --- NAPRAWIONE MENU KATEGORII DLA TELEFONÓW --- */
    .awangarda-filtr { 
        left: 0; 
        transform: none; 
        width: 100vw; 
        max-width: 100vw; 
        border-radius: 0; 
        border-left: none; 
        border-right: none; 
        padding: 15px 5vw; 
        justify-content: flex-start; /* Gwarantuje, że nic nie ucieka z lewej strony */
    }
    /* Dodatkowy margines, by ostatnia kategoria na liście nie przylegała do prawej krawędzi */
    .filter-btn:last-child { margin-right: 10vw; }

    .zdjecie-wrapper img { filter: none !important; }
    .bg-deco { display: none !important; }
    .kontakt-kontener { flex-direction: column; gap: 40px; } 
    .kontakt-dane { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-right: 0; padding-bottom: 40px; width: 100%; }
    .wideo-grid { grid-template-columns: 1fr; }
    .omnie-kontener { flex-direction: column; text-align: center; }
}
.omnie-kontener { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.omnie-tekst { flex: 1; }
.omnie-tekst h2 { font-size: 3rem; margin-bottom: 30px; font-family: 'Playfair Display', serif; }
.omnie-tekst p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 20px; line-height: 1.8; }
.omnie-zdjecie { flex: 1; display: flex; justify-content: center; }
.omnie-zdjecie img, .zdjecie-placeholder { width: 100%; max-width: 450px; aspect-ratio: 3/4; border-radius: 8px; object-fit: cover; }
.zdjecie-placeholder { background: #1c1d24; display: flex; align-items: center; justify-content: center; color: var(--text-muted); border: 1px dashed rgba(255,255,255,0.1); }