/*<!--
  Neramit Dai Mai Co., Ltd.
  M-Components CSS
  Version: 1.0.0
-->*/

:root {
      --primary: #0b4b8a;
      --secondary: #7b4bb7;
      --dark: #0f172a;
      --light: #f8fafc;
      --text: #2b2b2b;
      --muted: #66a6;
      --radius: 24px;
    }

/*<!--------------- NAVBAR --------------->*/
.navbar {
    position: sticky;
    top: 0;
    background-image: url("../image/BG.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 1.5px solid var(--secondary);
    z-index: 100;
    padding: 8px;
    }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 8px;
}
.nav-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: all 0.25s ease;
    }
.nav-btn:hover {
    transform: scale(1.2);
    }
.nav-btn img {
    width: 100%;
    height: 100%;
    pointer-events: none;
    }
.nav-links {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    }
.nav-links a {
    margin: 0 12px;
    flex-wrap: wrap;
    gap: 16px;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary);
    }
.nav-links a:hover {
    color: var(--secondary);
    }





/*<!--------------- CAROUSEL --------------->*/
.scroll-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    margin-top: 2rem;
    overflow: hidden;
    mask-image: linear-gradient( to right, transparent 0%, var(--light) 6%, var(--light) 94%, transparent 100% );
    }

.scroll {
    display: flex;
    gap: 2rem;
    width: fit-content;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    justify-content: center;
    padding: 24px 64px;
    margin-inline: auto;
    align-items: center;
    cursor: grab;
    scroll-snap-type: x mandatory;
    align-items: center;
    }
.scroll.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    }
.scroll::-webkit-scrollbar {
    display: none;
    }

.scroll-item {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-image: url("../image/BG.png");
    display: grid;
    place-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    pointer-events: auto;
    user-select: none;
    }
.scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.25s ease;
    }
.scroll-item:hover{
    transform: scale(1.2);
    }



/*<!--------------- BUTTON --------------->*/
/*<!- General ->*/
.btn {
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    margin-right: 12px;
    display: inline-block;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    }
.btn.primary {
    background: var(--primary);
    color: white;
    }
.btn.outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    }
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    background: var(--light);
    }
.btn.primary:hover {
    background: var(--primary);
    color: white;
    }

.section-title-btn {
    text-align: center;
    background: none;
    border: none;
    padding: 0;
    margin: 32px 0;

    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;

    color: #1f5fa8; /* same tone as MAP / CHARACTERS */
    cursor: pointer;

    position: relative;
    }
.section-title-btn::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: all 0.25s ease;
    transform: translateX(-50%);
    }
.section-title-btn:hover::after {
    width: 60%;
    }
    
.lang-switch {
    display: flex;
    gap: 6px;
    }



/*<!--------------- BRANDING --------------->*/
/*<!- LOGO ->*/
.brand-logo {
    width: auto, min(240px, 60vw);
    max-width: 100%;
    height: auto;
    transition: transform 0.4s ease;
    }
.brand-logo:hover {
    transform: scale(1.05);
    } 
.nav-logo {
    max-width: 8%;
    display: flex;
    align-items: center;
    }
/*<!- NAME ->*/
.brand-name {
    color: var(--primary);
    display: flex;
    align-items: center;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
    white-space: nowrap;
    gap: 6px;
    margin: 0;
    white-space: nowrap;
    user-select: none;
    }
.brand-name span {
    display: inline-block;
    transition: transform 0.25s ease;
    cursor: default;
    }
.brand-name .letter {
    cursor: grab;
    }
.brand-name .letter.dragging {
    opacity: 0.4;
    cursor: grabbing;
    }
.brand-name-h {
    display: none;
    }
.letter {
    cursor: grab;
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    }
.letter:active {
    cursor: grabbing;
    transform: scale(1.1);
    }
.letter.dragging {
    opacity: 0.4;
    transform: scale(1.1);
    cursor: grabbing;
    }
.letter.over {
    transform: translateY(-6px);
    }



/*<!--------------- ASSET --------------->*/
/*<!----- IMAGE ----->*/
.image-display {
  width: 100%;
  max-width: 1280px;
  height: auto;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
}
.image-display img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/*<!----- VIDEO ----->*/
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    padding-top: 16px;
    padding-bottom: 16px;
    }
.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    }

/*<!----- ICON ----->*/
.icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--light);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px;
    flex-shrink: 0;
    }
.icon.phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2300b4e6' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.09 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.32 1.77.57 2.6a2 2 0 0 1-.45 2L8.09 9.91a16 16 0 0 0 6 6l1.59-1.14a2 2 0 0 1 2-.45c.83.25 1.7.45 2.6.57a2 2 0 0 1 1.72 2z'/%3E%3C/svg%3E");
    }
.icon.email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2300b4e6' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v16H4z'/%3E%3Cpath d='M22 6l-10 7L2 6'/%3E%3C/svg%3E");
    }
.icon.address {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="%2300b4e6" stroke-width="2" viewBox="0 0 24 24"%3E%3Cpath d="M21 10c0 6-9 13-9 13S3 16 3 10a9 9 0 1 1 18 0z"/%3E%3Ccircle cx="12" cy="10" r="3"/%3E%3C/svg%3E');
    }
.icon.time {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="%2300b4e6" stroke-width="2" viewBox="0 0 24 24"%3E%3Ccircle cx="12" cy="12" r="10"/%3E%3Cpath d="M12 6v6l4 2"/%3E%3C/svg%3E');
    }
.icon.line {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300b900' d='M12 2C6.48 2 2 5.58 2 10c0 3.42 2.73 6.43 6.6 7.59.31.09.74.28.85.64.1.33.07.84.03 1.18 0 0-.11.68-.13.83-.04.24-.18.93.81.51.99-.42 5.33-3.14 7.27-5.37C19.76 14.24 22 12.27 22 10c0-4.42-4.48-8-10-8z'/%3E%3Cpath fill='%23fff' d='M7.4 12.7h-.8V8.9h.8zm2.9 0h-.8V8.9h.8zm3.4 0h-.8V8.9h.8zm3.4 0h-.8V8.9h.8z'/%3E%3C/svg%3E");
    background-color: #e9fbe9;
    }
.icon.game {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2300b4e6' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 8l-2 6a3 3 0 0 0 3 4h10a3 3 0 0 0 3-4l-2-6a4 4 0 0 0-4-3H10a4 4 0 0 0-4 3z'/%3E%3Cpath d='M9 11v2M8 12h2M15 11h.01M17 13h.01'/%3E%3C/svg%3E");
    }
.icon.website {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2300b4e6' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='14' rx='2'/%3E%3Cpath d='M3 8h18M8 20h8'/%3E%3C/svg%3E");
    }
.icon.solution {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2300b4e6' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-4 12.8V17a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-2.2A7 7 0 0 0 12 2z'/%3E%3Cpath d='M9 21h6M9 17h6'/%3E%3C/svg%3E");
    }
.lang-icon {
    width: 16px;
    height: 16px;
    border-radius: 40%;
    display: inline-block;
    background-size: cover;
    background-position: center;
    }
.lang-icon.th {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'%3E%3Crect width='5' height='3' fill='%23A51931'/%3E%3Crect y='0.6' width='5' height='1.8' fill='%23F4F5F8'/%3E%3Crect y='1.1' width='5' height='0.8' fill='%232D2A4A'/%3E%3C/svg%3E");
    }
.lang-icon.en {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='s'%3E%3Cpath d='M0,0 v30 h60 v-30 z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23s)'%3E%3Cpath fill='%23012169' d='M0,0 v30 h60 v-30 z'/%3E%3Cpath stroke='%23fff' stroke-width='6' d='M0,0 L60,30 M60,0 L0,30'/%3E%3Cpath stroke='%23C8102E' stroke-width='4' d='M0,0 L60,30 M60,0 L0,30'/%3E%3Cpath stroke='%23fff' stroke-width='10' d='M30,0 v30 M0,15 h60'/%3E%3Cpath stroke='%23C8102E' stroke-width='6' d='M30,0 v30 M0,15 h60'/%3E%3C/g%3E%3C/svg%3E");
    }
