/* =====================================================================
   fullPage Homepage — Efekt lodu (canvas overlay)
   ===================================================================== */

/* Canvas lodu — nałożony na całą stronę, pointer-events wyłączone */
#fph-ice-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transition: none; /* Opacity kontrolujemy przez JS */
}

/* Efekt "zamrożenia" na sekcji — subtelna obwódka przy krawędzi */
body.fullpage-homepage.fph-freezing::before {
    content: '';
    position: fixed;
    inset: 0;
    border: 6px solid rgba(160, 215, 255, 0.35);
    pointer-events: none;
    z-index: 99998;
    animation: fph-frost-border 0.4s ease-out forwards;
}

@keyframes fph-frost-border {
    from {
        border-width: 0px;
        box-shadow: inset 0 0 0px rgba(160, 215, 255, 0);
    }
    to {
        border-width: 6px;
        box-shadow: inset 0 0 60px rgba(160, 215, 255, 0.2);
    }
}

/* Responsywność — wyłącz efekt lodu na bardzo słabych urządzeniach */
@media (prefers-reduced-motion: reduce) {
    #fph-ice-canvas {
        display: none !important;
    }
}
