/* FZ Group — custom decorative background patterns */

.home-page .fz-has-pattern:not([data-hero-scroll]) {
    --section-enter: 0;
    --section-scroll: 0;
    --section-focus: 0;
}

.home-page .fz-has-pattern {
    position: relative;
    overflow: hidden;
}

.fz-section-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.fz-section-pattern > * {
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
}

.fz-section-pattern--about-bloom .fz-pattern-blob--1,
.fz-section-pattern--neon-radial .fz-pattern-neon-arc--1,
.fz-section-pattern--portfolio-shine .fz-pattern-card--1,
.fz-section-pattern--testimonial-orbs .fz-pattern-orb--1,
.fz-section-pattern--contact-nodes .fz-pattern-node--1,
.fz-section-pattern--location-topo .fz-pattern-topo--1,
.fz-section-pattern--brand-sparkle .fz-pattern-sparkle--1,
.fz-section-pattern--image .fz-section-pattern__image {
    transition: opacity 0.15s linear;
}

/* ── Shared tokens ── */
.fz-section-pattern {
    --fz-p-blue: #4b8bf9;
    --fz-p-cyan: #1c99fe;
    --fz-p-violet: #7644ff;
    --fz-p-ink: rgba(15, 18, 28, 0.08);
}

.fz-section-pattern__image {
    inset: -8%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(calc(1.06 + var(--section-scroll, 0) * 0.08))
        translateY(calc(var(--section-scroll, 0) * -35px));
}

.fz-section-pattern--image .fz-section-pattern__wash {
    background: rgba(255, 255, 255, calc(0.82 + var(--section-scroll, 0) * 0.08));
}

/* ── About: organic bloom + rings ── */
.fz-pattern-blob {
    border-radius: 50%;
    filter: blur(48px);
}

.fz-pattern-blob--1 {
    width: 340px;
    height: 340px;
    top: -80px;
    right: -60px;
    background: radial-gradient(circle, rgba(75, 139, 249, 0.22) 0%, transparent 70%);
    transform: translate(calc(var(--section-scroll, 0) * -50px), calc(var(--section-scroll, 0) * 35px))
        scale(calc(0.75 + var(--section-enter, 0) * 0.25));
    opacity: calc(0.2 + var(--section-focus, 0) * 0.8);
}

.fz-pattern-blob--2 {
    width: 280px;
    height: 280px;
    bottom: -40px;
    left: -40px;
    background: radial-gradient(circle, rgba(118, 68, 255, 0.14) 0%, transparent 72%);
    transform: translate(calc(var(--section-scroll, 0) * 40px), calc(var(--section-scroll, 0) * -25px))
        scale(calc(0.8 + var(--section-enter, 0) * 0.2));
    opacity: calc(0.15 + var(--section-focus, 0) * 0.75);
}

.fz-pattern-ring {
    border-radius: 50%;
    border: 1px solid rgba(75, 139, 249, 0.18);
}

.fz-pattern-ring--1 {
    width: 220px;
    height: 220px;
    top: 12%;
    left: 6%;
    box-shadow: 0 0 40px rgba(28, 153, 254, 0.08);
    transform: scale(calc(0.55 + var(--section-enter, 0) * 0.45))
        rotate(calc(var(--section-scroll, 0) * 60deg));
    opacity: calc(0.25 + var(--section-focus, 0) * 0.75);
}

.fz-pattern-ring--2 {
    width: 140px;
    height: 140px;
    bottom: 18%;
    right: 10%;
    border-color: rgba(118, 68, 255, 0.15);
    transform: scale(calc(0.6 + var(--section-enter, 0) * 0.4))
        rotate(calc(var(--section-scroll, 0) * -45deg));
    opacity: calc(0.2 + var(--section-focus, 0) * 0.7);
}

/* ── Neon SEO: glowing arcs ── */
.fz-pattern-neon-glow {
    inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at calc(100% - var(--section-scroll, 0) * 15%) calc(var(--section-scroll, 0) * 10%), rgba(28, 153, 254, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 40% 35% at calc(var(--section-scroll, 0) * 12%) calc(100% - var(--section-scroll, 0) * 8%), rgba(118, 68, 255, 0.1) 0%, transparent 55%);
    opacity: calc(0.35 + var(--section-focus, 0) * 0.65);
}

.fz-pattern-neon-arc {
    border-radius: 50%;
    border: 2px solid transparent;
}

.fz-pattern-neon-arc--1 {
    width: 320px;
    height: 320px;
    top: -120px;
    right: -80px;
    border-top-color: rgba(28, 153, 254, 0.35);
    border-right-color: rgba(28, 153, 254, 0.15);
    box-shadow: 0 0 30px rgba(28, 153, 254, 0.12);
    transform: rotate(calc(-25deg + var(--section-scroll, 0) * 35deg))
        translateY(calc(var(--section-scroll, 0) * -40px));
    opacity: calc(0.25 + var(--section-focus, 0) * 0.75);
}

.fz-pattern-neon-arc--2 {
    width: 200px;
    height: 200px;
    bottom: -60px;
    left: 8%;
    border-bottom-color: rgba(118, 68, 255, 0.3);
    border-left-color: rgba(118, 68, 255, 0.12);
    box-shadow: 0 0 24px rgba(118, 68, 255, 0.1);
    transform: rotate(calc(40deg - var(--section-scroll, 0) * 25deg))
        translateX(calc(var(--section-scroll, 0) * 30px));
    opacity: calc(0.2 + var(--section-focus, 0) * 0.7);
}

.fz-pattern-neon-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fz-p-cyan);
    box-shadow: 0 0 16px rgba(28, 153, 254, 0.7), 0 0 32px rgba(28, 153, 254, 0.3);
}

.fz-pattern-neon-dot--1 {
    top: 22%;
    right: 18%;
    transform: scale(calc(0.5 + var(--section-focus, 0) * 0.8));
    opacity: calc(0.3 + var(--section-focus, 0) * 0.7);
}

.fz-pattern-neon-dot--2 {
    bottom: 28%;
    left: 14%;
    background: var(--fz-p-violet);
    box-shadow: 0 0 16px rgba(118, 68, 255, 0.6);
    transform: scale(calc(0.5 + var(--section-focus, 0) * 0.9));
    opacity: calc(0.25 + var(--section-focus, 0) * 0.75);
}

/* ── Portfolio: light beams + card silhouettes ── */
.fz-pattern-beam {
    width: 140%;
    height: 1px;
    left: -20%;
    background: linear-gradient(90deg, transparent, rgba(75, 139, 249, 0.2), transparent);
    transform-origin: center;
}

.fz-pattern-beam--1 {
    top: 28%;
    transform: rotate(calc(-8deg + var(--section-scroll, 0) * 6deg))
        translateX(calc(var(--section-scroll, 0) * 80px));
    opacity: calc(0.2 + var(--section-focus, 0) * 0.8);
}

.fz-pattern-beam--2 {
    top: 62%;
    transform: rotate(calc(5deg - var(--section-scroll, 0) * 5deg))
        translateX(calc(var(--section-scroll, 0) * -60px));
    background: linear-gradient(90deg, transparent, rgba(118, 68, 255, 0.15), transparent);
    opacity: calc(0.15 + var(--section-focus, 0) * 0.75);
}

.fz-pattern-card {
    border-radius: 16px;
    border: 1px solid rgba(75, 139, 249, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(75, 139, 249, 0.04) 100%);
    box-shadow: 0 8px 32px rgba(75, 139, 249, 0.06);
}

.fz-section-pattern__wash {
    inset: 0;
}

.fz-pattern-card--1 {
    --fz-card-rot: -6deg;
    width: 120px;
    height: 80px;
    top: 15%;
    right: 8%;
    transform: rotate(calc(-6deg + var(--section-scroll, 0) * 8deg))
        translate(calc(var(--section-scroll, 0) * -35px), calc((1 - var(--section-enter, 0)) * 40px));
    opacity: calc(0.2 + var(--section-focus, 0) * 0.8);
}

.fz-pattern-card--2 {
    --fz-card-rot: 4deg;
    width: 90px;
    height: 60px;
    bottom: 20%;
    left: 5%;
    transform: rotate(calc(4deg - var(--section-scroll, 0) * 6deg))
        translate(calc(var(--section-scroll, 0) * 30px), calc((1 - var(--section-enter, 0)) * 35px));
    opacity: calc(0.15 + var(--section-focus, 0) * 0.65);
}

.fz-pattern-card--3 {
    --fz-card-rot: -3deg;
    width: 70px;
    height: 48px;
    top: 55%;
    right: 22%;
    transform: rotate(calc(-3deg + var(--section-scroll, 0) * 5deg))
        translateY(calc((1 - var(--section-enter, 0)) * 50px));
    opacity: calc(0.1 + var(--section-focus, 0) * 0.55);
}

/* ── Testimonial: soft orbs + quote watermark ── */
.fz-pattern-orb {
    border-radius: 50%;
    filter: blur(40px);
}

.fz-pattern-orb--1 {
    width: 360px;
    height: 360px;
    top: -100px;
    left: -80px;
    background: radial-gradient(circle, rgba(75, 139, 249, 0.18) 0%, transparent 70%);
    transform: translate(calc(var(--section-scroll, 0) * -45px), calc(var(--section-scroll, 0) * 30px))
        scale(calc(0.7 + var(--section-enter, 0) * 0.3));
    opacity: calc(0.15 + var(--section-focus, 0) * 0.85);
}

.fz-pattern-orb--2 {
    width: 280px;
    height: 280px;
    bottom: -60px;
    right: -40px;
    background: radial-gradient(circle, rgba(118, 68, 255, 0.14) 0%, transparent 72%);
    transform: translate(calc(var(--section-scroll, 0) * 40px), calc(var(--section-scroll, 0) * -25px))
        scale(calc(0.75 + var(--section-enter, 0) * 0.25));
    opacity: calc(0.12 + var(--section-focus, 0) * 0.8);
}

.fz-pattern-quote {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%)
        scale(calc(0.85 + var(--section-focus, 0) * 0.15));
    font-family: Georgia, serif;
    font-size: clamp(12rem, 28vw, 22rem);
    line-height: 1;
    color: rgba(75, 139, 249, 0.045);
    font-weight: 700;
    user-select: none;
    opacity: calc(0.3 + var(--section-focus, 0) * 0.7);
}

/* ── Contact: connected nodes ── */
.fz-pattern-node {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--fz-p-blue);
    box-shadow: 0 0 0 6px rgba(75, 139, 249, 0.08), 0 0 20px rgba(75, 139, 249, 0.25);
}

.fz-pattern-node--1 {
    top: 18%;
    right: 12%;
    transform: scale(calc(0.4 + var(--section-focus, 0) * 0.8));
    opacity: calc(0.2 + var(--section-focus, 0) * 0.8);
}

.fz-pattern-node--2 {
    top: 55%;
    right: 28%;
    background: var(--fz-p-violet);
    box-shadow: 0 0 0 6px rgba(118, 68, 255, 0.08), 0 0 20px rgba(118, 68, 255, 0.2);
    transform: translate(calc(var(--section-scroll, 0) * -25px), calc(var(--section-scroll, 0) * 15px))
        scale(calc(0.4 + var(--section-focus, 0) * 0.85));
    opacity: calc(0.15 + var(--section-focus, 0) * 0.85);
}

.fz-pattern-node--3 {
    bottom: 22%;
    right: 8%;
    background: var(--fz-p-cyan);
    box-shadow: 0 0 0 6px rgba(28, 153, 254, 0.08), 0 0 20px rgba(28, 153, 254, 0.2);
    transform: translate(calc(var(--section-scroll, 0) * 20px), calc(var(--section-scroll, 0) * -20px))
        scale(calc(0.4 + var(--section-focus, 0) * 0.9));
    opacity: calc(0.15 + var(--section-focus, 0) * 0.85);
}

.fz-pattern-node-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(75, 139, 249, 0.25), rgba(118, 68, 255, 0.2), transparent);
    transform-origin: left center;
}

.fz-pattern-node-line--1 {
    width: calc(80px + var(--section-focus, 0) * 100px);
    top: 20%;
    right: 14%;
    transform: rotate(calc(25deg + var(--section-scroll, 0) * 10deg));
    opacity: calc(0.2 + var(--section-focus, 0) * 0.8);
}

.fz-pattern-node-line--2 {
    width: calc(60px + var(--section-focus, 0) * 80px);
    top: 58%;
    right: 10%;
    transform: rotate(calc(-18deg - var(--section-scroll, 0) * 8deg));
    opacity: calc(0.15 + var(--section-focus, 0) * 0.75);
}

/* ── Location: topographic contours + pin ── */
.fz-pattern-topo {
    border-radius: 50%;
    border: 1px solid rgba(75, 139, 249, 0.12);
}

.fz-pattern-topo--1 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
        scale(calc(0.65 + var(--section-enter, 0) * 0.35 + var(--section-scroll, 0) * 0.15));
    box-shadow:
        0 0 0 calc(20px + var(--section-focus, 0) * 40px) rgba(75, 139, 249, 0.04),
        0 0 0 calc(40px + var(--section-focus, 0) * 80px) rgba(75, 139, 249, 0.03),
        0 0 0 calc(60px + var(--section-focus, 0) * 120px) rgba(75, 139, 249, 0.02);
    opacity: calc(0.25 + var(--section-focus, 0) * 0.75);
}

.fz-pattern-topo--2 {
    width: 260px;
    height: 260px;
    top: 50%;
    left: 50%;
    border-color: rgba(118, 68, 255, 0.1);
    transform: translate(-50%, -50%)
        scale(calc(0.7 + var(--section-enter, 0) * 0.3))
        rotate(calc(var(--section-scroll, 0) * 25deg));
    opacity: calc(0.2 + var(--section-focus, 0) * 0.7);
}

.fz-pattern-pin {
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    border-radius: 50% 50% 50% 0;
    background: linear-gradient(135deg, var(--fz-p-cyan), var(--fz-p-violet));
    opacity: calc(0.05 + var(--section-focus, 0) * 0.2);
    box-shadow: 0 0 40px rgba(28, 153, 254, 0.2);
    transform: translate(-50%, calc(-50% - var(--section-focus, 0) * 20px))
        scale(calc(0.6 + var(--section-focus, 0) * 0.5))
        rotate(-45deg);
}

.fz-pattern-pin::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

/* ── Brand: sparkles + glow ── */
.fz-pattern-brand-glow {
    inset: 0;
    background: radial-gradient(
        ellipse calc(50% + var(--section-focus, 0) * 30%) calc(40% + var(--section-focus, 0) * 20%) at 50% 50%,
        rgba(75, 139, 249, 0.08) 0%,
        transparent 65%
    );
    opacity: calc(0.4 + var(--section-focus, 0) * 0.6);
}

.fz-pattern-sparkle {
    width: var(--fz-sparkle-size, 6px);
    height: var(--fz-sparkle-size, 6px);
    background: var(--fz-p-blue);
    transform: rotate(45deg) scale(calc(0.5 + var(--section-focus, 0) * 0.8));
    opacity: calc(0.1 + var(--section-focus, 0) * 0.4);
    box-shadow: 0 0 calc(8px + var(--section-focus, 0) * 12px) rgba(75, 139, 249, 0.4);
}

.fz-pattern-sparkle::before,
.fz-pattern-sparkle::after {
    content: "";
    position: absolute;
    background: inherit;
    border-radius: 1px;
}

.fz-pattern-sparkle::before {
    width: 100%;
    height: 30%;
    top: 35%;
    left: 0;
}

.fz-pattern-sparkle::after {
    width: 30%;
    height: 100%;
    left: 35%;
    top: 0;
}

.fz-pattern-sparkle--1 {
    --fz-sparkle-size: 8px;
    top: 20%;
    left: 15%;
    transform: rotate(45deg) translateY(calc((1 - var(--section-enter, 0)) * 30px))
        scale(calc(0.5 + var(--section-focus, 0) * 0.9));
}

.fz-pattern-sparkle--2 {
    --fz-sparkle-size: 5px;
    top: 35%;
    right: 20%;
    background: var(--fz-p-violet);
    transform: rotate(45deg) translateX(calc(var(--section-scroll, 0) * -20px))
        scale(calc(0.4 + var(--section-focus, 0) * 0.85));
}

.fz-pattern-sparkle--3 {
    --fz-sparkle-size: 6px;
    bottom: 30%;
    left: 25%;
    background: var(--fz-p-cyan);
    transform: rotate(45deg) translateY(calc(var(--section-scroll, 0) * 25px))
        scale(calc(0.45 + var(--section-focus, 0) * 0.8));
}

.fz-pattern-sparkle--4 {
    --fz-sparkle-size: 7px;
    bottom: 22%;
    right: 12%;
    transform: rotate(45deg) translate(calc(var(--section-scroll, 0) * 15px), calc(var(--section-scroll, 0) * -15px))
        scale(calc(0.5 + var(--section-focus, 0) * 0.85));
}

/* ── Content stacking ── */
.home-page .im_modern_slider.home-hero.fz-has-pattern > .slide,
.home-page #about.fz-has-pattern > .about-wrapper,
.home-page #neon-box-bandung.fz-has-pattern > .container,
.home-page #portfolio.fz-has-pattern > .rn-slick-dot,
.home-page #counter.fz-has-pattern > .container,
.home-page #foto-produk.fz-has-pattern > .container,
.home-page #testimonial.fz-has-pattern > .container,
.home-page #contact.fz-has-pattern > .contact-form--1,
.home-page #location.fz-has-pattern > .container,
.home-page .rn-brand-area.fz-has-pattern > .container {
    position: relative;
    z-index: 1;
}

/* Counter typography on image wash */
#counter.fz-has-pattern .section-title .subtitle {
    color: var(--color-primary, #4b8bf9);
}

#counter.fz-has-pattern .section-title .title {
    color: #1f1f25;
    text-shadow: none;
}

#counter.fz-has-pattern .counterup_style--2 h5.counter {
    color: var(--color-primary, #4b8bf9);
    text-shadow: none;
}

#counter.fz-has-pattern .counterup_style--2 h4.description {
    color: #65676b;
    text-shadow: none;
}

@media (max-width: 767px) {
    .fz-pattern-card,
    .fz-pattern-ring--1,
    .fz-pattern-neon-arc--1 {
        opacity: 0.5;
    }

    .fz-pattern-quote {
        font-size: clamp(8rem, 40vw, 12rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .fz-has-pattern:not([data-hero-scroll]) {
        --section-enter: 1 !important;
        --section-scroll: 0 !important;
        --section-focus: 1 !important;
    }

    .fz-section-pattern > * {
        transform: none !important;
        opacity: 1;
    }
}
