/* ==== Font ===== */
@font-face {
    font-family: "LINESeedSansTH";
    src: url("../font/LINESeedSansTH/LINESeedSansTH.ttf") format("truetype");
    font-weight: 300;
    /* normal */
    font-style: normal;
}

@font-face {
    font-family: "LINESeedSansTH";
    src: url("../font/LINESeedSansTH/LINESeedSansTH_Rg.ttf") format("truetype");
    font-weight: 500;
    /* normal */
    font-style: normal;
}

@font-face {
    font-family: "LINESeedSansTH";
    src: url("../font/LINESeedSansTH/LINESeedSansTH.ttf") format("truetype");
    font-weight: 600;
    /* normal */
    font-style: normal;
}

@font-face {
    font-family: "LINESeedSansTH";
    src: url("../font/LINESeedSansTH/LINESeedSansTH_XBd.ttf") format("truetype");
    font-weight: 700;
    /* normal */
    font-style: normal;
}

@font-face {
    font-family: "LINESeedSansTH";
    src: url("../font/LINESeedSansTH/LINESeedSansTH_He.ttf") format("truetype");
    font-weight: 800;
    /* normal */
    font-style: normal;
}

.font-LINESeedSansTH {
    font-family: "LINESeedSansTH", sans-serif;
}

@font-face {
    font-family: "PSL150pro";
    src: url("../font/PSL151pro/PSL150pro.ttf") format("truetype");
    font-weight: 800;
    /* normal */
    font-style: normal;
}

.font-PSL150pro {
    font-family: "PSL150pro", sans-serif;
}

.landingpageEOSHMainLayout {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100dvh;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;

    background: #000 url("../images/background/mainBg.png") center / cover no-repeat;
}

/* =========================
   Video Background
   ========================= */

.landingpageEOSHVideo {
    position: absolute;
    z-index: 0;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;

    opacity: 0;
    transition: opacity 1s ease;

    pointer-events: none;
}

/* Video โหลดพร้อมแล้ว */
.landingpageEOSHMainLayout.video-loaded .landingpageEOSHVideo {
    opacity: 1;
}

.landingpageEOSHVideoLoading {
    position: absolute;
    z-index: 5;
    background: #0000007a;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;

    opacity: 1;
    transition: opacity 0.5s ease;
}

.landingpageEOSHMainLayout.video-loaded .landingpageEOSHVideoLoading {
    opacity: 0;
}

.landingpageEOSHVideoLoadingSpinner {
    width: 40px;
    height: 40px;

    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;

    border-radius: 50%;

    animation: landingpageEOSHVideoLoading 0.8s linear infinite;
}

@keyframes landingpageEOSHVideoLoading {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


.landingpagEOSHFooterObject {
    position: absolute;
    z-index: 2;
    bottom: 0px;
    left: 0px;

    width: 100%;
    height: 650px;

    background: linear-gradient(180deg, rgba(46, 113, 182, 0) 0%, rgba(0, 0, 0, 0.64) 50%, rgba(0, 0, 0, 0.82) 100%);
}

.landingpageEOSHContentMainLayout {
    position: relative;
    z-index: 3;

    width: 100%;
    min-height: 100dvh;
    padding: 50px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
}

.landingpageEOSHCharacter {
    position: absolute;
    z-index: 1;
    top: 0px;
    left: 0px;

    /* width: 100%; */
    height: 110%;
}

.landingpageEOSHLogo {
    width: 100%;
    max-width: 700px;
}

/* ====== Button ======= */
.landingpageEOSHButton {
    position: relative;

    width: 230px;
    height: 58px;

    padding: 5px 15px;

    border: 0;
    outline: none;

    background: url("../images/button/button.png") center / cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: "PSL150pro", sans-serif;
    font-size: 25px;
    line-height: 25px;
    font-weight: 600;
    color: #fff;

    cursor: pointer;

    transform: scale(1);
    filter: brightness(1);

    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.landingpageEOSHButton::before {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(110deg,
            transparent 20%,
            rgba(255, 255, 255, 0.15) 40%,
            rgba(255, 238, 170, 0.9) 50%,
            rgba(255, 255, 255, 0.15) 60%,
            transparent 80%);

    background-size: 200% 100%;
    background-position: -100% 0;

    -webkit-mask-image: url("../images/button/button.png");
    mask-image: url("../images/button/button.png");

    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    pointer-events: none;

    opacity: 0;
}

.landingpageEOSHButton:hover {
    transform: scale(1.06);
    filter: brightness(1.12);
}

.landingpageEOSHButton:hover::before {
    opacity: 1;
    animation: buttonLight 0.7s ease forwards;
}


@keyframes buttonLight {
    from {
        background-position: -100% 0;
    }

    to {
        background-position: 200% 0;
    }
}



.landingpageEOSHButton:active {
    transform: scale(0.96) !important;
    filter: brightness(0.9);

    transition-duration: 0.05s;
}


.landingpageEOSHButton:active span {
    transform: translateY(1px);
}

.landingpageEOSHButton_2 {
    position: relative;

    width: 215px;
    height: 42px;

    padding: 5px 15px;

    border: 0;
    outline: none;

    background: url("../images/button/button_2_2.png") center / cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: "PSL150pro", sans-serif;
    font-size: 20px;
    line-height: 20px;
    font-weight: 600;
    color: #fff;

    cursor: pointer;

    transform: scale(1);
    filter: brightness(1);

    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.landingpageEOSHButton_2:hover {
    transform: translateY(-3px) scale(1.05);
    filter: brightness(1.15);

    filter:
        drop-shadow(0 0 8px rgba(255, 220, 130, 0.35)) drop-shadow(0 0 18px rgba(255, 220, 130, 0.2));
}

.landingpageEOSHButton_2:active {
    transform: translateY(1px) scale(0.94) !important;

    filter: brightness(0.85);

    transition-duration: 0.05s;
}

.landingpageEOSHButton_2:active span {
    transform: translateY(1px);
}

.landingpageEOSHFooter {
    width: fit-content;
    min-width: 550px;
    min-height: 40px;
    padding: 5px 20px;

    background: linear-gradient(90deg, rgba(198, 140, 54, 0) 0%, rgba(198, 140, 54, 1) 20%, rgba(255, 255, 192, 1) 50%, rgba(198, 140, 54, 1) 80%, rgba(198, 140, 54, 0) 100%);
    color: #4E120A;

    font-size: 22px;
    line-height: 22px;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* ==============
ANIMATION
============== */
.landingpageEOSHCharacter,
.landingpageEOSHLogo,
.landingpageEOSHButton,
.landingpageEOSHFooter,
.landingpageEOSHButton_2 {
    opacity: 0;
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.landingpageEOSHCharacter {
    transform: translateY(60px);
}

.landingpageEOSHLogo {
    transform: scale(0.7);
}

.landingpageEOSHButton {
    transform: translateY(40px) scale(0.9);
}

.landingpageEOSHButton_2 {
    transform: translateY(40px) scale(0.9);
}

.landingpageEOSHButton_2.btn-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.landingpageEOSHFooter {
    transform: scaleX(0.2);
    transform-origin: center;
}

.landingpageEOSHCharacter.char-in {
    opacity: 1;
    transform: translateY(0);
}

.landingpageEOSHLogo.logo-in {
    opacity: 1;
    transform: scale(1);
}

.landingpageEOSHButton.btn-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.landingpageEOSHFooter.footer-in {
    opacity: 1;
    transform: scaleX(1);
}

.landingpageEOSHCharacter img {
    animation: charFloatIdle 6s ease-in-out infinite alternate;
}

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

    100% {
        transform: translateY(-50px);
    }
}

.landingpageEOSHLogo img {
    position: relative;
    z-index: 1;
    animation: logoFloatIdle 3s ease-in-out infinite alternate;
}

@keyframes logoFloatIdle {
    0% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 0px rgba(255, 214, 130, 0));
    }

    100% {
        transform: translateY(-8px) scale(1.05);
        filter: drop-shadow(0 0 24px rgba(255, 214, 130, 0.75));
    }
}

.landingpageEOSHButton {
    display: inline-block;
    animation: buttonFloatIdle 2.6s ease-in-out infinite;
}

.landingpageEOSHButton:nth-of-type(2) {
    animation-delay: 0.3s;
}

.landingpageEOSHButton:nth-of-type(3) {
    animation-delay: 0.6s;
}

.landingpageEOSHButton:hover {
    animation-play-state: paused;
}

@keyframes buttonFloatIdle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .landingpageEOSHCharacter,
    .landingpageEOSHLogo,
    .landingpageEOSHButton,
    .landingpageEOSHButton_2,
    .landingpageEOSHFooter {
        transition:
            opacity 0.8s ease,
            transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }

    .landingpageEOSHCharacter img {
        animation: charFloatIdle 6s ease-in-out infinite alternate !important;
    }

    .landingpageEOSHLogo img {
        animation: logoFloatIdle 3s ease-in-out infinite alternate !important;
    }

    .landingpageEOSHButton {
        animation: buttonFloatIdle 2.6s ease-in-out infinite !important;
    }
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 991.98px) {}

@media (max-width: 767.98px) {
    .landingpageEOSHContentMainLayout {
        padding: 50px 20px;
    }
}

@media (max-width: 575.98px) {
    .landingpageEOSHContentMainLayout {
        justify-content: center;
        padding: 50px 10px;
    }

    .landingpageEOSHButton {
        width: 200px;
        height: 50px;
        font-size: 22px;
        line-height: 22px;
    }

    .landingpageEOSHButton_2 {
        width: 200px;
        height: 39px;
        font-size: 18px;
        line-height: 18px;
    }
}