/* ======================
    คลื่นน้ำทะเล 
====================== */

/* ─── BG IMAGE แทน CSS background ─── */
.bannerBgImage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;

    /* ─── WATER DISPLACEMENT FILTER ─── */
    filter: url(#waterDisplace);
}

/* ─── SVG FILTER HIDDEN ─── */
.water-filter-svg {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ─── MASK: เฉพาะโซนน้ำ ─── */
.bannerBgBase {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100dvh;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.bannerBgWaterZone {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100dvh;
    object-fit: cover;
    object-position: center;
    z-index: 2;

    clip-path: polygon(43.9% 72.7%,
            92.2% 57.7%,
            99.1% 51.4%,
            100% 100%,
            63.4% 100%,
            28.6% 100%,
            1.4% 98.1%,
            9.5% 66.7%,
            31.3% 64.1%);
    filter: url(#waterDisplace);
}

.bannerBgBaseSea {
    position: absolute;
    inset: 539px 0px 0px 0px;
    width: 100%;
    height: 100dvh;
    z-index: 0;
}

/* ─── LIGHT SHIMMER OVERLAY บนน้ำ ─── */
.waterShimmer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    clip-path: polygon(30% 38%,
            100% 28%,
            100% 75%,
            25% 85%);
    background: transparent;
    overflow: hidden;
}

.waterShimmer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-8deg,
            transparent 0px,
            transparent 6px,
            rgba(255, 255, 255, 0.015) 6px,
            rgba(255, 255, 255, 0.015) 7px);
    animation: shimmerScroll 4s linear infinite;
}

.waterShimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 20% at 65% 55%,
            rgba(255, 255, 255, 0.06) 0%,
            transparent 70%);
    animation: sunReflect 6s ease-in-out infinite alternate;
}

@keyframes shimmerScroll {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(-20px) translateX(8px);
    }
}

@keyframes sunReflect {
    0% {
        opacity: 0.4;
        transform: scaleX(1) scaleY(1);
    }

    50% {
        opacity: 0.9;
        transform: scaleX(1.1) scaleY(0.9);
    }

    100% {
        opacity: 0.5;
        transform: scaleX(0.95) scaleY(1.05);
    }
}

/* ======================
    boatship 
====================== */
.boatshipMainLayout {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    will-change: transform;

    animation: boatBob 5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    transform-origin: center center;

    background: url("../images/animation/boatshippp.png");
    background-position: center;
    background-size: cover;
}

.boatshipMainLayout img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.boatshipMainLayout_2 {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    will-change: transform;

    animation: boatBob2 8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    transform-origin: center center;

    background: url("../images/animation/boatshippp_2.png");
    background-position: center;
    background-size: cover;
}

.boatshipMainLayout_2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes boatBob {
    0% {
        transform: translateY(0px) rotate(-0.8deg);
    }

    50% {
        transform: translateY(-4px) rotate(0.8deg);
    }

    100% {
        transform: translateY(0px) rotate(-0.8deg);
    }
}

@keyframes boatBob2 {
    0% {
        transform: translateY(0px) rotate(0.4deg);
    }

    50% {
        transform: translateY(4px) rotate(-0.4deg);
    }

    100% {
        transform: translateY(0px) rotate(0.4deg);
    }
}

/* ======================
    wildmill 
====================== */
.wildmillMainLayout {
    position: absolute;
    z-index: 4;
    visibility: visible;
    /* left: 19.1%;
    top: 28.8%;
    width: 13%; */
    aspect-ratio: 1;
    transform: translate(-50%, -50%);

    width: 100%;
    min-height: 150dvh;
}

.wildmillMainLayout img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: spinWindmill 10s linear infinite;
    transform-origin: center center;
}

@keyframes spinWindmill {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* .wildmillMainLayout {
    position: absolute;
    z-index: 4;
    top: 0px;
    left: 0px;

    width: 100%;
    min-height: 150dvh;
    padding: 50px 20px;
    padding-bottom: 165px;

    background: url("../images/animation/wildmill_2.png");
    background-position: top;
    background-size: cover;

    display: flex;
    align-items: start;
    justify-content: center;
} */


/* ======================
    bird 
====================== */
/* .bird-container {
    position: fixed;
    left: -150px;
    top: 100px;
    z-index: 2;
    pointer-events: none;

    animation: flyAcross 15s linear infinite;
}

.bird {
    width: 50px;
    height: 80px;

    background-image: url("../images/animation/birds.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    animation: flap 0.8s ease-in-out infinite;
}

@keyframes flyAcross {
    0% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(30vw) translateY(-30px);
    }

    50% {
        transform: translateX(60vw) translateY(20px);
    }

    75% {
        transform: translateX(90vw) translateY(-20px);
    }

    100% {
        transform: translateX(calc(100vw + 200px)) translateY(0);
    }
}

@keyframes flap {
    0% {
        transform: rotate(-3deg) scale(1);
    }

    50% {
        transform: rotate(3deg) scale(1.05);
    }

    100% {
        transform: rotate(-3deg) scale(1);
    }
} */
#birdLayer {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.bird {
    position: absolute;

    width: 20px;
    height: 20px;

    background: url("../images/animation/birds.png") center/contain no-repeat;

    transform-origin: center center;

    animation: flap 6s ease-in-out infinite;
    opacity: .95;
}

@keyframes flap {
    0% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.05);
    }

    100% {
        filter: brightness(1);
    }
}