html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

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

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

:root {
    --fs-h1: clamp(36px, 2.5vw + 24px, 80px);
    --fs-h2: clamp(30px, 2vw + 20px, 64px);
    --fs-h3: clamp(26px, 1.5vw + 20px, 52px);
    --fs-h4: clamp(23px, 1.2vw + 18px, 35px);
    --fs-h5: clamp(18px, 1vw + 16px, 28px);
    --fs-h6: clamp(16px, 0.8vw + 14px, 20px);
    --fs-p: clamp(14px, 0.5vw + 14px, 17px);
    --fs-small: clamp(12px, 0.25vw + 12px, 14px);
}

html,
body {
    overflow-x: hidden !important;
}

body {
    position: relative;
    font-family: "Ghanachocolate", sans-serif;
    color: #000;

    width: 100%;
}

/* ==== font ==== */

h1,
.h1 {
    font-size: var(--fs-h1);
}

h2,
.h2 {
    font-size: var(--fs-h2);
}

h3,
.h3 {
    font-size: var(--fs-h3);
}

h4,
.h4 {
    font-size: var(--fs-h4);
}

h5,
.h5 {
    font-size: var(--fs-h5);
}

h6,
.h6 {
    font-size: var(--fs-h6);
    line-height: 22px;
}

p,
.p {
    font-size: var(--fs-p);
}

small,
.small {
    font-size: var(--fs-small);
}

.landingpageMainLayout {
    position: relative;
    width: 100%;
    height: 100dvh;

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

/* ================== 
    Video Bg + Object
    ==================  */
.video-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, #11205c00 0%, #11205c00 50%, rgba(17, 32, 92, 0.60) 100%);
}

.cloudObject_1 {
    position: absolute;
    z-index: 1;
    bottom: 0px;
    left: -400px;

    width: 600px;
}

.cloudObject_2 {
    position: absolute;
    z-index: 2;
    bottom: 150px;
    right: -400px;

    width: 600px;
    opacity: .9;
}

.cloudObject_1 img,
.cloudObject_2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =========================
   Loading Overlay Styles
========================== */

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(17, 32, 92, 0.35) 0%, rgba(10, 14, 36, 0.85) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    animation: overlayFadeIn 0.35s ease forwards;
}

#loadingOverlay.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
}


.loading-text {
    color: #fff;
    font-family: "Kanit", sans-serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    animation: pulseText 1.6s ease-in-out infinite;
}

.loading-bar {
    position: relative;
    width: 160px;
    height: 5px;
    border-radius: 999px;
    background: #ffffff26;
    overflow: hidden;
}

.loading-bar-fill {
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: loadingBarSlide 1.4s ease-in-out infinite;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

@keyframes loadingBarSlide {
    0% {
        left: -40%;
    }

    100% {
        left: 100%;
    }
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 0.55;
    }

    50% {
        opacity: 1;
    }
}

.loading {
    width: 100%;
    height: 30px;
    background: linear-gradient(0deg, #1b1615ab 10%, #702500a6 90%);
    border: 1px solid #f4c463a3;
    border-radius: 5px;
}

#loadingDownload {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.733);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transform: scale(1);
}

#loadingDownload.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

/* =========================
   Dropdown Lang 
========================== */

.soical_menu {
    width: fit-content;
    min-width: 60px;
    height: 35px;
    padding: 5px 10px;
    border-radius: 50px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;

    background: #ffffff4b;
    border: 1px solid #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;

    font-family: "Kanit", sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 15px;

    cursor: pointer;
    transition: all 0.5s;
}

.soical_menu:hover {
    background: #fff;
    border: 1px solid #fff;
    color: #000;
}

.lang-switcher {
    position: absolute;
    right: 20px;
    z-index: 10;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    display: none;
    flex-direction: column;
    overflow: hidden;


    background: #ffffff33;
    border: 1px solid #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 10px;
}

.lang-dropdown.show {
    display: flex;
    margin-top: 5px;
}

.lang-dropdown .soical_menu {
    width: 100%;
    background: transparent;
    border-radius: 0px;
    border: 1px solid #ffffff00;
    border-bottom: 1px solid #fff;
    color: #fff;

    height: 40px;
}

.lang-dropdown .soical_menu:hover {
    background: #fff;
    border: 1px solid #fff;
    color: #000;
}

.lang-dropdown .soical_menu:last-child {
    border-bottom: 1px solid #ffffff00;
}


/* ================== 
   CONTENT
    ==================  */
.contentMainLayout {
    position: relative;
    z-index: 3;

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

    display: flex;
    flex-direction: column;
    align-items: center;
}

.contentLogoMain {
    position: relative;
    width: 100%;
    max-width: 620px;
    padding-top: 50px;
}

.contentLogoMain img {
    position: relative;
    z-index: 2;
}

.objectLogo {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 800px;
    display: flex;
}

.contentTitle {
    width: 100%;
    max-width: 420px;
}

.btn-primary {
    width: 300px;
    height: 65px;
    padding: 17px 10px 10px;

    background: url("../images/button.png");
    background-position: center;
    background-size: cover;
    border: 0;
    filter: drop-shadow(1px 1px 10px #fff);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: #9960B1;
    font-size: 20px;
    line-height: 20px;
    font-weight: 800;

    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        background-size 0.2s ease;
}

.btn-primary span {
    text-shadow:
        2px 0 0 #fff,
        -2px 0 0 #fff,
        0 2px 0 #fff,
        0 -2px 0 #fff,
        2px 2px 0 #fff,
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff;
}

.btn-primary i {
    text-shadow:
        2px 0 0 #fff,
        -2px 0 0 #fff,
        0 2px 0 #fff,
        0 -2px 0 #fff,
        2px 2px 0 #fff,
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    filter: drop-shadow(0 0 12px #fff);
}

.btn-primary:hover span,
.btn-primary:hover i {
    text-shadow:
        2px 0 0 #fff,
        -2px 0 0 #fff,
        0 2px 0 #fff,
        0 -2px 0 #fff,
        2px 2px 0 #fff,
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff;
}

.btn-primary:active {
    transform: translateY(1px) scale(0.97);
    filter: drop-shadow(0 0 6px #fff);
    transition: transform 0.08s ease;
}

.btn-primary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.btn-primary:focus {
    border: 0;
}

.btn-primary i {
    transition: transform 0.2s ease;
}

.btn-primary:hover i {
    transform: scale(1.12) rotate(-4deg);
}

.video-mobile {
    display: none;
}

/* ================== 
   SCROLLBAR
    ==================  */

/* * {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent !important;
}

*::-webkit-scrollbar {
    width: 4px !important;
    height: 4px !important;
}

*::-webkit-scrollbar-track {
    background: transparent !important;
}

*::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4) !important;
} */
/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    display: none;
}

/* Firefox */
html {
    scrollbar-width: none;
}

/* IE / Edge รุ่นเก่า */
html {
    -ms-overflow-style: none;
}

.contentLogoMainLayout {
    position: absolute;
    top: 20px;
    left: 20px;

    width: fit-content;
    min-width: 150px;
    min-height: 40px;
    padding: 5px 10px;
    border-radius: 10px;

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

    background: #fff;
    box-shadow: 1px 1px 10px #0000006c;
}

.contentLogo {
    width: 70px;
}

.contentLogo_2 {
    width: 70px;
}

.contentLogo img,
.contentLogo_2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contentLogoHr {
    width: 2px;
    height: 20px;
    margin: 0px 10px;

    background: #90A1B9;
}


/* ================== 
   FOOTER
    ==================  */

.footerMainLayout {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 30px 50px;

    background: #A35382;
    color: #fff;

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

    font-family: 'Kanit';
    font-size: 13px;
    line-height: 18px;
    font-weight: 300;
}

.footerLogo {
    width: 130px;
}

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

.footerContentLayout {
    width: 100%;
    max-width: 450px;
    min-height: 50px;
    padding: 10px 30px;
    margin-bottom: 10px;

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