/*
Theme Name: Aleksandra Pliś Portfolio
Theme URI: https://aleksandraplis.pl
Author: Gemini AI
Description: Motyw High Fashion z animacjami GSAP i dynamicznym preloaderem.
Version: 1.4
License: GNU General Public License v2 or later
*/

/* Reset i ustawienia bazowe - POPRAWKA NA RUCHY BOCZNE */
html {
    overflow-x: hidden; /* Kluczowe: ukrywa nadmiar w poziomie na poziomie dokumentu */
    max-width: 100vw;   /* Zapobiega rozszerzaniu się strony poza viewport */
}

body {
    cursor: none;
    overflow-x: hidden; /* Dodatkowe zabezpieczenie na poziomie body */
    background-color: #f0f0f0;
    color: #0a0a0a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Niestandardowy Kursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10002;
    pointer-events: none;
}

.cursor-dot { width: 8px; height: 8px; background-color: black; }
.cursor-outline { width: 40px; height: 40px; border: 1px solid rgba(0, 0, 0, 0.5); transition: width 0.2s, height 0.2s, background-color 0.2s; }
body.hovering .cursor-outline { width: 60px; height: 60px; background-color: rgba(0, 0, 0, 0.05); border-color: transparent; }

/* Ukryj niestandardowy kursor na urządzeniach dotykowych (Mobile/Tablet) */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
    body {
        cursor: auto;
    }
}

/* Style Preloadera */
.loader { 
    position: fixed; 
    inset: 0; 
    background: #f0f0f0;
    z-index: 10000; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    overflow: hidden; 
    /* Zapobiega przewijaniu strony pod preloaderem */
    touch-action: none; 
}

/* Efekty */
.text-reveal { clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }

.portfolio-item { overflow: hidden; }
.portfolio-item img { transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.portfolio-item:hover img { transform: scale(1.05); }

.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; width: 0; height: 1px; bottom: -4px; left: 0; background-color: black; transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }