/* --- SEKCJA 1: HERO IMAGE (3D TILT + LINES) --- */
.section-hero {
    padding: 0;
    overflow: hidden;
    perspective: 1000px;
    position: relative;
    background: #000;
}

.hero-bg-wrapper {
    position: absolute;
    inset: -5%;
    width: 110%;
    height: 110%;
    z-index: 0;
    transform-style: preserve-3d;
    will-change: transform;
    opacity: 1;
    visibility: visible;
}

.hero-bg {
    width: 100%;
    height: 100%;
    background-image: url('../slider-INFUSION-LIFT-okladka_small-scaled.jpg');
    background-size: cover;
    background-position: center;
}

/* HERO FLASHLIGHT GLOW */
.hero-flashlight {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(circle 400px at 50% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    mix-blend-mode: overlay;
    transition: opacity 0.3s ease;
}

.section-hero:hover .hero-flashlight {
    opacity: 1;
}

/* FALLING LINES EFFECT */
.lines {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    margin: auto;
    width: 90vw;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.line {
    position: absolute;
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.line::after {
    content: '';
    display: block;
    position: absolute;
    height: 15vh;
    width: 100%;
    top: -50%;
    left: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 75%, #ffffff 100%);
    animation: drop 7s 0s infinite;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}

.line:nth-child(1) { margin-left: -40%; }
.line:nth-child(1)::after { animation-delay: 2s; }

.line:nth-child(2) { margin-left: -20%; }
.line:nth-child(2)::after { animation-delay: 1s; }

.line:nth-child(3) { margin-left: 0%; }
.line:nth-child(3)::after { animation-delay: 2.5s; }

.line:nth-child(4) { margin-left: 20%; }
.line:nth-child(4)::after { animation-delay: 1.5s; }

.line:nth-child(5) { margin-left: 40%; }
.line:nth-child(5)::after { animation-delay: 0.5s; }

@keyframes drop {
    0% { top: -50%; }
    100% { top: 110%; }
}

/* SCROLL INDICATOR */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: fadeScroll 2s infinite;
    cursor: pointer;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

.arrow-scroll span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin: -5px auto;
    animation: arrowScroll 1.5s infinite;
}

.arrow-scroll span:nth-child(2) { animation-delay: 0.1s; }
.arrow-scroll span:nth-child(3) { animation-delay: 0.2s; }

@keyframes scrollWheel {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 25px; }
}

@keyframes arrowScroll {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}

@keyframes fadeScroll {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

