/* ===== Self-hosted Fonts (ฝังฟอนต์ในเว็บ ให้ทุกเครื่องเห็นเหมือนกัน) ===== */
/* Cinzel */
@font-face { font-family: 'Cinzel'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/Cinzel-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/Cinzel-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/Cinzel-Bold.woff2') format('woff2'); }
/* Montserrat */
@font-face { font-family: 'Montserrat'; font-weight: 300; font-style: normal; font-display: swap; src: url('/fonts/Montserrat-Light.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/Montserrat-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/Montserrat-Medium.woff2') format('woff2'); }
/* Prompt (Thai + Latin) */
@font-face { font-family: 'Prompt'; font-weight: 300; font-style: normal; font-display: swap; src: url('/fonts/Prompt-Light-Thai.woff2') format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Prompt'; font-weight: 300; font-style: normal; font-display: swap; src: url('/fonts/Prompt-Light.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Prompt'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/Prompt-Regular-Thai.woff2') format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Prompt'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/Prompt-Regular.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Prompt'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/Prompt-Medium-Thai.woff2') format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Prompt'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/Prompt-Medium.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Playfair Display */
@font-face { font-family: 'Playfair Display'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/PlayfairDisplay-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/PlayfairDisplay-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-weight: 400; font-style: italic; font-display: swap; src: url('/fonts/PlayfairDisplay-Italic.woff2') format('woff2'); }
/* DB Heavent (ฟอนต์ไทยหลักของเว็บ) */
@font-face { font-family: 'DB Heavent'; font-weight: 300; font-style: normal; font-display: swap; src: url('/fonts/DBHeavent.ttf') format('truetype'); }
@font-face { font-family: 'DB Heavent'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/DBHeavent.ttf') format('truetype'); }
@font-face { font-family: 'DB Heavent'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/DBHeavent.ttf') format('truetype'); }

:root {
    --bg: #000000;
    --primary: #ffffff;
    --accent: #a18f7a; /* Antolini-esque muted gold */
    --gray: #8e99a8;
    --font-heading: 'Cinzel', 'Playfair Display', 'Prompt', serif;
    --font-ui: 'Montserrat', 'Prompt', sans-serif;
    --font-thai: 'Prompt', sans-serif;
}

* { box-sizing: border-box; }

html {
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    margin: 0; 
    padding: 0;
    font-family: var(--font-ui);
    background-color: var(--bg);
    color: var(--primary);
    overflow-x: hidden;
    font-weight: 300;
}

/* Fixed marble background via pseudo-element to avoid compositing conflicts with video */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: linear-gradient(rgba(0,0,0,0.68), rgba(0,0,0,0.68)), url('/images/dark-marble-bg.jpg');
    background-repeat: repeat;
    background-size: 600px auto;
    pointer-events: none;
}

h1, h2, h3, .heading { 
    font-family: var(--font-heading), var(--font-thai); 
    font-weight: 400; 
    margin: 0; 
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navbar */
nav { 
    padding: 1.8rem 4rem; 
    display: flex; justify-content: space-between; align-items: center;
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}
nav.scrolled {
    background-color: rgba(6, 8, 12, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo { 
    font-size: 1.5rem; 
    letter-spacing: 3px; 
    text-decoration: none; 
    color: white; 
    font-family: var(--font-heading);
    display: inline-block;
}
.logo span { 
    color: #c5ab80; 
    font-weight: 400;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
    transition: color 0.3s ease;
}
.logo:hover span {
    color: #dfad65;
}

.nav-logo-img {
    max-height: 64px !important;
    width: auto;
    object-fit: contain;
    transition: max-height 0.3s ease;
}
nav.scrolled .nav-logo-img {
    max-height: 50px !important;
}

.nav-menu { display: flex; gap: 1.5rem; align-items: center; }
.nav-menu a { 
    color: white; 
    text-decoration: none; 
    text-transform: uppercase; 
    font-size: 1.05rem; 
    letter-spacing: 0.5px; 
    transition: color 0.3s; 
    font-family: var(--font-thai);
    position: relative;
    padding-bottom: 5px;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--accent); }



/* Hero Section */
.hero {
    height: 100vh;
    height: 100dvh;
    position: relative;
    display: flex; align-items: center; justify-content: center; text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-bg::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)); /* Darker overlay for Antolini look */
    z-index: 1;
    pointer-events: none;
}
.hero-bg img {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.05); /* Slight scale for Ken Burns intro */
    animation: slowZoom 20s infinite alternate;
}
.hero-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    pointer-events: none;
    display: block;
    transform: translate(-50%, -50%) translate3d(0, 0, 0);
    -webkit-transform: translate(-50%, -50%) translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.hero-bg video::-webkit-media-controls-start-playback-button,
.hero-bg video::-webkit-media-controls-play-button,
.hero-bg video::-webkit-media-controls {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.hero-content { z-index: 1; position: relative; max-width: 900px; padding: 0 2rem; }
.hero h1 { 
    font-size: clamp(2rem, 3.5vw, 3.5rem); 
    letter-spacing: 4px; 
    line-height: 1.3;
    margin-bottom: 1.5rem; 
    font-weight: 300;
}
.hero p { 
    font-size: 1.1rem; 
    font-weight: 300; 
    letter-spacing: 2px; 
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.hero-rotating-text {
    position: absolute;
    bottom: 3.5rem;
    right: 4rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    z-index: 20;
    min-width: 260px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.3s;
    text-decoration: none;
    cursor: pointer;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator .circle-arrow {
    width: 45px;
    height: 45px;
    border: 2px solid rgba(230, 211, 168, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e6d3a8;
    animation: bounce 2s infinite;
    transition: border-color 0.3s;
    background: rgba(0,0,0,0.3);
}

.scroll-indicator:hover .circle-arrow {
    border-color: #e6d3a8;
    background: rgba(0,0,0,0.5);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Trusted Customers Marquee */
.trusted-marquee-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55%;
    padding: 2rem 0 1.5rem 0;
    z-index: 15;
    overflow: hidden;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

.trusted-marquee-title {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #e6d3a8;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    z-index: 20;
    background: rgba(0,0,0,0.7);
    padding: 8px 18px;
    border-radius: 25px;
    border: 1px solid rgba(230, 211, 168, 0.3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.trusted-marquee-track {
    display: flex;
    width: max-content;
    animation: scroll-left 30s linear infinite;
}

.marquee-content {
    display: flex;
    gap: 5rem;
    padding-right: 5rem;
    align-items: center;
}

.trusted-marquee-track:hover {
    animation-play-state: paused;
}

.marquee-content img {
    height: 45px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}

.marquee-content img:hover {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-line-btn {
    position: absolute;
    bottom: 7rem;
    right: 4rem;
    background-color: #00B900;
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    z-index: 20;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 185, 0, 0.4);
}
.hero-line-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 185, 0, 0.6);
}
.hero-line-btn i {
    font-size: 1.5rem;
}

#rotating-text {
    font-size: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
    font-family: var(--font-thai);
    transition: opacity 0.5s ease;
}
.rotating-line {
    width: 40px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.7);
}

/* Section Layout */
.section { padding: 4rem 4rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
/* Marblex Theme Header Styles */
.marblex-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1.5rem;
}
.marblex-header.centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.marblex-subtitle {
    display: flex;
    align-items: center;
    color: #dfad65; /* Marblex Gold */
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.marblex-subtitle .line {
    width: 40px;
    height: 1px;
    background-color: #dfad65;
    margin-right: 15px;
}
.marblex-header.centered .marblex-subtitle .line {
    margin-left: 15px; /* if they want a line on both sides, or just one side. Let's keep it one side */
}
.marblex-title {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 1px;
    margin: 0;
    font-weight: 400;
}
.marblex-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #dfad65;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid #dfad65;
}
.marblex-btn:hover {
    background-color: transparent;
    color: #dfad65;
}
.marblex-btn-dark {
    background-color: #2c3136;
    border-color: #2c3136;
}
.marblex-btn-dark:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

/* Old section header kept for fallback if needed, but redesigned slightly */
.section-header { margin-bottom: 3rem; text-align: center; }
.section-header h2 { font-size: 3rem; letter-spacing: 4px; }
.section-header p { color: var(--gray); font-size: 1.5rem; letter-spacing: 1.5px; margin-top: 1rem; }

/* Marblex About Section */
.marblex-about-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 1360px;
    margin: 0 auto;
    position: relative;
}

.marblex-about-image {
    position: relative;
    z-index: 1;
    width: 100%;
}

.about-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.9), 0 0 35px rgba(223, 173, 101, 0.16);
    border: 1px solid rgba(223, 173, 101, 0.35);
    background: #0d0d11;
    height: 520px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.about-img-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 75px rgba(0, 0, 0, 0.95), 0 0 45px rgba(223, 173, 101, 0.25);
    border-color: rgba(223, 173, 101, 0.55);
}

.about-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-img-wrapper:hover img {
    transform: scale(1.03);
}

.about-img-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(223, 173, 101, 0.04) 0%, transparent 40%, rgba(0, 0, 0, 0.25) 100%);
}

.marblex-about-text {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.marblex-about-lists {
    display: flex;
    gap: 2rem;
}
.marblex-about-lists .list-col { flex: 1; }
.marblex-ul {
    list-style: none;
    padding: 0; margin: 0;
}
.marblex-ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 0.75rem;
    color: #e2e8f0;
    font-size: 0.98rem;
    line-height: 1.6;
    font-weight: 300;
}
.marblex-ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background-color: #dfad65;
}
@media (max-width: 992px) {
    .marblex-about-container { grid-template-columns: 1fr; gap: 2.5rem; }
    .marblex-about-image { margin-right: 0; width: 100%; }
    .about-img-wrapper { height: 380px; max-width: 600px; margin: 0 auto; }
    .marblex-about-text { padding: 0; }
}
@media (max-width: 600px) {
    .marblex-about-lists { flex-direction: column; gap: 1rem; }
    .about-img-wrapper { height: 280px; }
}

/* Divider between About & Designer */
.marblex-about-divider {
    width: 100%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(223, 173, 101, 0.25), transparent);
    margin: 5rem auto;
}

/* Marblex Designer Section */
.marblex-designer-container {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 1360px;
    margin: 0 auto;
    position: relative;
}

.marblex-designer-text {
    position: relative;
    z-index: 4;
    max-width: 620px;
}

.marblex-designer-text .designer-lead-text {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Feature cards */
.designer-services-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 2.2rem;
}

.designer-service-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.15rem 1.4rem;
    background: rgba(14, 14, 20, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.designer-service-item:hover {
    background: rgba(223, 173, 101, 0.08);
    border-color: rgba(223, 173, 101, 0.4);
    transform: translateX(6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(223, 173, 101, 0.15);
}

.designer-service-item .service-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(223, 173, 101, 0.12);
    color: #dfad65;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: background 0.3s, color 0.3s;
}

.designer-service-item:hover .service-icon {
    background: #dfad65;
    color: #000;
}

.designer-service-item .service-text h4 {
    color: #ffffff;
    font-size: 1.12rem;
    margin: 0 0 0.35rem 0;
    font-weight: 500;
    font-family: var(--font-heading), var(--font-thai);
}

.designer-service-item .service-text p {
    color: #a0aec0;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* CTA buttons */
.designer-actions {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
}

.designer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #00B900;
    color: #ffffff !important;
    padding: 12px 26px;
    border-radius: 50px;
    font-size: 1.02rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 185, 0, 0.35);
}

.designer-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 185, 0, 0.55);
}

.designer-cta-btn i {
    font-size: 1.25rem;
}

.designer-secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #dfad65 !important;
    border: 1px solid rgba(223, 173, 101, 0.45);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1.02rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.designer-secondary-btn:hover {
    background: rgba(223, 173, 101, 0.12);
    border-color: #dfad65;
    transform: translateX(4px);
}

/* Image styling */
.marblex-designer-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    z-index: 1;
}

/* Ambient Radial Glow */
.marblex-designer-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(223, 173, 101, 0.15) 0%, rgba(223, 173, 101, 0.03) 55%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(25px);
}

.designer-img-wrapper {
    position: relative;
    width: 100%;
    height: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.92), 0 0 35px rgba(223, 173, 101, 0.2);
    border: 1px solid rgba(223, 173, 101, 0.4);
    background: #0d0d11;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.4s ease;
}

.designer-img-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 75px rgba(0, 0, 0, 0.96), 0 0 45px rgba(223, 173, 101, 0.3);
    border-color: rgba(223, 173, 101, 0.65);
}

.designer-img-wrapper img.designer-img-base {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.designer-img-wrapper:hover img.designer-img-base {
    transform: scale(1.02);
}

.designer-img-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(180deg, rgba(223, 173, 101, 0.04) 0%, transparent 40%, rgba(0, 0, 0, 0.25) 100%);
}

@media (max-width: 992px) {
    .marblex-designer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .marblex-designer-text {
        max-width: 100%;
    }
    .marblex-designer-image {
        order: -1;
        margin-left: 0;
        width: 100%;
    }
    .designer-img-wrapper {
        height: 380px;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .marblex-about-divider {
        margin: 3.5rem auto;
    }
    .designer-img-wrapper {
        height: 260px;
    }
    .designer-service-item {
        padding: 0.9rem 1rem;
    }
    .designer-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .designer-cta-btn, .designer-secondary-btn {
        justify-content: center;
        width: 100%;
    }
}

/* Grid Collections (Antolini Style - Big images, thin gaps) */
.category-carousel { padding-bottom: 2rem; }
.category-carousel .swiper-slide {
    display: flex;
    justify-content: center;
}
.category-filters {
    display: flex; /* Swiper uses flex for wrapper */
    margin-bottom: 0;
}
.swiper.category-carousel {
    overflow: visible;
    padding: 35px 15px 40px 15px;
    margin: -35px -15px 1rem -15px;
}
.category-circle-btn {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer;
    text-align: center;
    background: none; border: none; padding: 0;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}
.category-circle-btn:hover {
    transform: translateY(-8px);
}

.circle-img-wrap {
    position: relative;
    width: 220px; height: 220px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.12);
    transition: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.circle-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.category-circle-btn h4 {
    color: #ffffff;
    font-size: 1.18rem;
    margin: 0.5rem 0 0 0;
    transition: all 0.35s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

/* ========================================================
   Ambient Stone Color Aura Glow Effect (แสงออร่าสีหิน)
   ======================================================== */
.circle-ambient-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    opacity: 0;
    filter: blur(35px);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

/* 1. หินอ่อน (Marble) Aura: Warm Golden Amber */
.circle-ambient-glow,
.cat-marble .circle-ambient-glow {
    background: radial-gradient(circle, rgba(245, 185, 85, 0.85) 0%, rgba(223, 150, 40, 0.6) 45%, rgba(180, 105, 15, 0.3) 70%, transparent 85%);
}

/* 2. หินแกรนิต (Granite) Aura: Crystalline Silver & Electric Sky Blue */
.cat-granite .circle-ambient-glow {
    background: radial-gradient(circle, rgba(186, 230, 253, 0.85) 0%, rgba(147, 197, 253, 0.6) 45%, rgba(96, 165, 250, 0.3) 70%, transparent 85%);
}

/* 3. เฟอร์นิเจอร์และของตกแต่ง (Furniture & Decor) Aura: Champagne Bronze & Royal Gold */
.cat-furniture .circle-ambient-glow {
    background: radial-gradient(circle, rgba(251, 191, 36, 0.85) 0%, rgba(217, 119, 6, 0.6) 45%, rgba(180, 83, 9, 0.3) 70%, transparent 85%);
}

/* On Hover: Expand & Radiate Aura outward to sides */
.category-circle-btn:hover .circle-ambient-glow {
    opacity: 1;
    transform: translateX(-50%) scale(1.48);
    animation: stone-aura-breathe 2.5s ease-in-out infinite alternate;
}

@keyframes stone-aura-breathe {
    0% { transform: translateX(-50%) scale(1.45); opacity: 0.92; }
    100% { transform: translateX(-50%) scale(1.62); opacity: 1; filter: blur(45px); }
}

/* On Hover: Image Zoom & Border Glow Ring */
.category-circle-btn:hover .circle-img-wrap img {
    transform: scale(1.12);
}

.cat-marble:hover .circle-img-wrap {
    border-color: #f3c262;
    box-shadow: 
        0 0 25px rgba(243, 194, 98, 0.75),
        0 0 55px rgba(223, 150, 40, 0.5),
        inset 0 0 15px rgba(243, 194, 98, 0.35);
}
.cat-marble:hover h4 {
    color: #f3c262;
    text-shadow: 0 0 16px rgba(243, 194, 98, 0.6);
}

.cat-granite:hover .circle-img-wrap {
    border-color: #bae6fd;
    box-shadow: 
        0 0 25px rgba(186, 230, 253, 0.75),
        0 0 55px rgba(96, 165, 250, 0.5),
        inset 0 0 15px rgba(186, 230, 253, 0.35);
}
.cat-granite:hover h4 {
    color: #bae6fd;
    text-shadow: 0 0 16px rgba(186, 230, 253, 0.6);
}

.cat-furniture:hover .circle-img-wrap {
    border-color: #fbbf24;
    box-shadow: 
        0 0 25px rgba(251, 191, 36, 0.75),
        0 0 55px rgba(217, 119, 6, 0.5),
        inset 0 0 15px rgba(251, 191, 36, 0.35);
}
.cat-furniture:hover h4 {
    color: #fbbf24;
    text-shadow: 0 0 16px rgba(251, 191, 36, 0.6);
}

.category-circle-btn.active .circle-img-wrap {
    border-color: #dfad65;
    box-shadow: 0 0 30px rgba(223, 173, 101, 0.65);
}
.category-circle-btn.active h4 {
    color: #dfad65;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 2rem;
}
.card { 
    overflow: hidden; cursor: pointer; text-decoration: none; color: var(--primary); display: block; 
    position: relative;
}
.card img { 
    width: 100%; height: 500px; object-fit: cover; 
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    filter: brightness(0.8) grayscale(20%);
}
.card:hover img { 
    transform: scale(1.08); 
    filter: brightness(1) grayscale(0%);
}
.card-info {
    position: absolute; bottom: 0; left: 0; width: 100%; 
    padding: 2rem; background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.card-info h3 { font-size: 1.2rem; letter-spacing: 2px; }
.card-info p { margin-top: 0.5rem; font-size: 1rem; color: var(--accent); font-family: var(--font-ui); letter-spacing: 1px; }

/* Luxury Carousel (Projects - Marblex Style) */
.projects-carousel { width: 100%; position: relative; padding-bottom: 3rem; }
.projects-carousel .swiper-slide { position: relative; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 12px; }
.projects-carousel .swiper-slide img, .projects-carousel .swiper-slide video {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.projects-carousel .swiper-slide:hover img, .projects-carousel .swiper-slide:hover video {
    transform: scale(1.1);
}

.slide-content {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(30, 34, 38, 0.85); /* Dark overlay */
    color: white; z-index: 10; 
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 2rem; text-align: center;
    opacity: 0; transition: all 0.4s ease;
}
.swiper-slide:hover .slide-content { opacity: 1; }

.slide-content h3 { 
    font-size: clamp(1.4rem, 3vmin, 2rem); margin-bottom: 0.5rem; letter-spacing: 1px; word-wrap: break-word; 
    transform: translateY(20px); transition: transform 0.4s ease;
    font-weight: 500;
}
.swiper-slide:hover .slide-content h3 { transform: translateY(0); }

.slide-content p { 
    font-size: 0.9rem; letter-spacing: 2px; color: #dfad65; text-transform: uppercase; 
    transform: translateY(20px); transition: transform 0.4s ease; transition-delay: 0.1s;
}
.swiper-slide:hover .slide-content p { transform: translateY(0); }

.slide-arrow-icon {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    width: 40px; height: 40px;
    border: 1px solid rgba(223, 173, 101, 0.5); /* Gold border */
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: #dfad65;
    transform: translateY(20px); transition: all 0.4s ease; transition-delay: 0.2s;
}
.swiper-slide:hover .slide-arrow-icon { transform: translateY(0); }
.slide-arrow-icon:hover { background-color: #dfad65; color: #fff; }

.swiper-button-next, .swiper-button-prev { 
    color: #fff !important; 
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 54px !important;
    height: 54px !important;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.65) !important;
    border-color: rgba(223, 173, 101, 0.4);
    color: #dfad65 !important;
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 22px !important;
    font-weight: bold;
}
.swiper-pagination-bullet { background: var(--gray) !important; }
.swiper-pagination-bullet-active { background: var(--accent) !important; }

/* Footer (Luxury Antolini Style with Map Showcase) */
.antolini-footer { background-color: transparent !important; padding: 6rem 4rem 3rem 4rem; border-top: 1px solid rgba(255,255,255,0.06); position: relative; z-index: 100; opacity: 1 !important; visibility: visible !important; display: block !important; }
.footer-inner { max-width: 1440px; margin: 0 auto; }
.footer-layout { display: grid; grid-template-columns: 1.08fr 1fr; gap: 3.5rem; align-items: stretch; margin-bottom: 5rem; }

.footer-info-pane { display: flex; flex-direction: column; justify-content: flex-start; }
.footer-brand { margin-bottom: 2.8rem; }
.footer-brand .logo { font-size: 1.85rem; letter-spacing: 2px; margin-bottom: 0; display: inline-flex; align-items: center; gap: 14px; font-weight: 600; }
.footer-brand .company-subname { color: #d0d0d0; font-size: 1.15rem; letter-spacing: 0.5px; margin-bottom: 2rem; font-weight: 300; }

/* Top Section: Two Branches Side-by-Side */
.footer-locations-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.2rem; margin-bottom: 2.2rem; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.company-branch-title { color: #ffffff; font-size: 1.15rem; font-weight: 500; margin: 0 0 0.5rem 0; letter-spacing: 0.3px; line-height: 1.4; }
.location-phone-line { margin: 0.6rem 0 0 0; font-size: 1.05rem; color: #e0e0e0; letter-spacing: 0.3px; }
.location-phone-line a { color: #e0e0e0; text-decoration: none; transition: color 0.3s ease; }
.location-phone-line a:hover { color: var(--accent); }

/* Middle Section: Contact Channels & Follow Us (Ample Space for Social Icons) */
.footer-contacts-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem 2.2rem; align-items: start; margin-bottom: 1.8rem; }
.footer-contacts-row .social-icons { display: flex; gap: 0.85rem; flex-wrap: wrap; align-items: center; }

/* Bottom Section: Business Hours (เวลาทำการ ด้านล่าง) */
.footer-hours-row { width: 100%; margin-top: 0.2rem; }
.hours-card-wide { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; padding: 1.1rem 1.4rem; }
.hours-content-flex { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 0.2rem; }
.hours-content-flex .hours-text { margin: 0; color: #e0e0e0; font-size: 1.05rem; letter-spacing: 0.3px; }
.hours-content-flex .hours-divider { color: var(--accent); font-size: 1.2rem; line-height: 1; }
.hours-content-flex .closed-tag { color: var(--accent); font-size: 1.02rem; font-weight: 500; margin: 0; }

/* Legacy / Shared Card Styles */
.footer-info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
.info-card-header { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 1rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 0.75rem; }
.info-card-header i { font-size: 1.05rem; width: 18px; text-align: center; }
.info-card-body { color: #e0e0e0; font-size: 1.02rem; line-height: 1.75; margin: 0; font-weight: 300; }
.info-card-body p { margin: 0 0 0.5rem 0; font-size: 1.02rem; color: #e0e0e0; letter-spacing: 0.2px; line-height: 1.75; }
.info-card-body a { color: #ffffff; text-decoration: none; transition: color 0.3s ease; }
.info-card-body a:hover { color: var(--accent); }
.info-card-body .closed-tag { color: var(--accent); font-size: 0.98rem; margin-top: 4px; font-weight: 500; }

/* Dual Map Pane (Split 50% / 50%) */
.footer-map-pane { display: flex; flex-direction: column; width: 100%; }
.dual-map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; height: 100%; }
.map-showcase-card { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; overflow: hidden; height: 100%; min-height: 380px; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); transition: border-color 0.3s ease; }
.map-showcase-card:hover { border-color: rgba(223, 173, 101, 0.35); }
.map-topbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; background: rgba(10, 10, 12, 0.88); border-bottom: 1px solid rgba(255, 255, 255, 0.06); backdrop-filter: blur(10px); gap: 0.6rem; flex-wrap: wrap; }
.map-heading { flex: 1; min-width: 140px; }
.map-tag { color: var(--accent); font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.map-tag .line { display: inline-block; width: 18px; height: 1px; background: var(--accent); }
.map-name { color: #fff; font-size: 1.05rem; font-weight: 500; margin: 3px 0 0 0; letter-spacing: 0.3px; line-height: 1.35; }
.map-route-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid rgba(223, 173, 101, 0.4); color: var(--accent); padding: 7px 13px; border-radius: 4px; font-size: 0.8rem; letter-spacing: 0.8px; text-decoration: none; text-transform: uppercase; transition: all 0.3s ease; white-space: nowrap; font-weight: 500; }
.map-route-btn:hover { background: var(--accent); color: #000; }
.map-canvas { flex: 1; width: 100%; min-height: 280px; position: relative; background: #000; }
.map-canvas iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; filter: contrast(105%) brightness(95%); }

.social-icons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: white; color: black; font-size: 1.25rem; transition: transform 0.3s, background-color 0.3s; }
.social-icons a:hover { transform: scale(1.1); color: black; background: var(--accent); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; }
.footer-bottom p { font-size: 0.95rem; letter-spacing: 2px; color: var(--gray); text-transform: uppercase; margin: 0; }
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a { font-size: 0.95rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); text-decoration: none; transition: 0.3s; }
.footer-legal a:hover { color: var(--accent); }

/* Product Modal (Minimalist Luxury) */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 2000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(15px); padding: 20px; }
.modal-overlay.active { display: flex !important; }
.modal-content { display: grid; grid-template-columns: 1fr 1.15fr; width: 95%; max-width: 1050px; height: 88vh; background: #0a0a0c; position: relative; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 2px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.95); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; background: rgba(26, 18, 20, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 2px solid #e74c3c; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; cursor: pointer; color: #ff6b6b; z-index: 50; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.85), 0 0 14px rgba(231, 76, 60, 0.45); }
.modal-close:hover, .modal-close:active { color: #ffffff; background: #e74c3c; border-color: #ff8585; transform: scale(1.1) rotate(90deg); box-shadow: 0 0 24px rgba(231, 76, 60, 0.85); }
.modal-image { width: 100%; height: 100%; background: #000; min-height: 380px; display: flex; align-items: center; justify-content: center; padding: 0; box-sizing: border-box; overflow: hidden; }
.modal-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.modal-info { width: 100%; height: 100%; max-height: 100%; min-height: 0; padding: 3rem 2.5rem; overflow-y: auto; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start; background: transparent; }
.modal-info h2 { font-size: 2.2rem; margin: 0; letter-spacing: 2px; color: #ffffff; font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; }
.modal-subtitle-en { color: #8e8e9f; font-size: 0.95rem; margin-top: 5px; margin-bottom: 1.2rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 300; }
.modal-price { font-size: 1.3rem; margin-bottom: 2rem; color: #dfad65; font-family: var(--font-ui); font-weight: 400; letter-spacing: 1px; }
.modal-details { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.modal-details p { margin-bottom: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 0.8rem; font-size: 1.15rem; letter-spacing: 0.5px; color: #999; display: flex; justify-content: flex-start; align-items: flex-start; }
.modal-details strong { color: #dfad65; font-weight: 400; flex-shrink: 0; width: 150px; margin-right: 15px; }
.modal-details span { color: #fff; font-weight: 300; flex: 1; line-height: 1.6; text-align: left; }
.modal-desc-box { margin: 0 0 2.5rem 0; padding: 0; }
.modal-desc-title { font-size: 1.05rem; color: #dfad65; font-weight: 400; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.modal-desc-text { line-height: 1.8; color: #aaa; margin: 0; font-size: 1.15rem; font-weight: 300; white-space: pre-line; }
.modal-action-btn { flex: 1; min-width: 130px; padding: 14px 16px; font-weight: 400; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; transition: all 0.3s ease; letter-spacing: 1.5px; text-transform: uppercase; }
.modal-action-line { background: transparent; color: #00B900; border: 1px solid #00B900; }
.modal-action-line:hover { background: #00B900; color: #fff; }
.modal-action-phone { background: transparent; color: #dfad65; border: 1px solid #dfad65; }
.modal-action-phone:hover { background: #dfad65; color: #000; }
.btn-submit { background-color: #dfad65; color: #000; padding: 1rem 2rem; border: none; border-radius: 8px; cursor: pointer; font-size: 1rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; transition: all 0.3s; box-shadow: 0 4px 15px rgba(223, 173, 101, 0.3); }
.btn-submit:hover { background-color: #fff; color: #000; transform: translateY(-2px); }

/* Smooth fade in without layout shift */
.fade-in { animation: fadeIn 1.2s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 768px) {
    nav { padding: 1.2rem 1.25rem; }
    .logo { font-size: 1.15rem; letter-spacing: 1.5px; }
    .nav-logo-img { max-height: 48px !important; }
    .nav-menu { display: none; }
    .hero h1 { font-size: 2rem; line-height: 1.3; }
    .section { padding: 6rem 2rem; }
    .antolini-footer { padding: 4rem 2rem 2rem 2rem; }
    .footer-layout { grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem; }
    .footer-locations-row { grid-template-columns: 1fr; gap: 1.8rem; margin-bottom: 1.8rem; padding-bottom: 1.8rem; }
    .footer-contacts-row { grid-template-columns: 1fr; gap: 1.8rem; margin-bottom: 1.8rem; }
    .hours-content-flex { flex-direction: column; align-items: flex-start; gap: 6px; }
    .hours-content-flex .hours-divider { display: none; }
    .footer-info-cards { grid-template-columns: 1fr; gap: 1.8rem; }
    .dual-map-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .map-canvas { min-height: 260px; }
    .footer-bottom { flex-direction: column; text-align: center; justify-content: center; gap: 1.5rem; }
    .footer-legal { justify-content: center; flex-wrap: wrap; }
    .hero-rotating-text { display: none; }
    .hero-line-btn {
        bottom: 1.8rem;
        right: 1rem;
        padding: 8px 14px;
        font-size: 0.82rem;
        z-index: 10;
    }
    .trusted-marquee-wrapper {
        width: 100%;
        -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
        mask-image: linear-gradient(to right, black 90%, transparent 100%);
    }
    .modal-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        background: rgba(22, 14, 16, 0.95);
        border: 2.5px solid #e74c3c;
        color: #ff7875;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.95), 0 0 16px rgba(231, 76, 60, 0.6);
    }
}
/* Thai Language Specific Font Size Adjustments */
html[lang="th"] body {
    font-family: var(--font-ui);
}

html[lang="th"] .nav-menu a {
    font-size: 1.08rem !important;
    letter-spacing: 0.5px;
}

html[lang="th"] .marblex-subtitle {
    font-size: 1.12rem !important;
}

html[lang="th"] .marblex-about-text p {
    font-size: 1.12rem !important;
    line-height: 1.85 !important;
}

html[lang="th"] .list-col h4 {
    font-size: 1.22rem !important;
    font-weight: 500 !important;
}

html[lang="th"] .marblex-ul li {
    font-size: 1.02rem !important;
    line-height: 1.65 !important;
}

html[lang="th"] .category-circle-btn h4 {
    font-size: 1.22rem !important;
}

html[lang="th"] .slide-content h3 {
    font-size: clamp(1.45rem, 3.5vmin, 2.1rem) !important;
}

html[lang="th"] .slide-content p {
    font-size: 1.05rem !important;
}

html[lang="th"] .footer-col > p:first-child,
html[lang="th"] .social-group > p:first-child {
    font-size: 1.18rem !important;
}

html[lang="th"] .footer-legal a {
    font-size: 0.98rem !important;
}

/* Thai Designer Section Sizing */
html[lang="th"] .marblex-designer-text .designer-lead-text {
    font-size: 1.12rem !important;
    line-height: 1.85 !important;
}

html[lang="th"] .designer-service-item .service-text h4 {
    font-size: 1.18rem !important;
}

html[lang="th"] .designer-service-item .service-text p {
    font-size: 1.02rem !important;
    line-height: 1.65 !important;
}

html[lang="th"] .designer-cta-btn,
html[lang="th"] .designer-secondary-btn {
    font-size: 1.08rem !important;
}

/* English Language Specific Font Size Adjustments */
html[lang="en"] .nav-menu a {
    font-size: 1.1rem !important;
}

html[lang="en"] #rotating-text {
    font-size: 1.4rem !important;
}

html[lang="en"] .marblex-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
}



/* Navigation Divider */
.nav-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 0.5rem;
    align-self: center;
}

/* Luxury Single Circular Language Switcher Component */
.lang-circle-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    z-index: 100;
}

.lang-circle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(10, 12, 18, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(223, 173, 101, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.12);
    outline: none;
}

/* Disable nav underline pseudo element */
.nav-menu .lang-circle-dropdown button::after,
.nav-menu .lang-circle-dropdown a::after {
    display: none !important;
}

/* Animated Shimmer Bezel Ring (ลูกเล่นวงแหวนทองหมุนรอบปุ่ม) */
.lang-circle-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, #dfad65 25%, transparent 50%, #f7dfa5 75%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
}

.lang-circle-btn:hover .lang-circle-ring,
.lang-circle-dropdown.open .lang-circle-ring {
    opacity: 1;
    animation: langRingSpin 2.5s linear infinite;
}

@keyframes langRingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lang-circle-btn:hover,
.lang-circle-dropdown.open .lang-circle-btn {
    transform: scale(1.08) translateY(-1px);
    background: rgba(223, 173, 101, 0.18);
    border-color: #dfad65;
    box-shadow: 0 0 20px rgba(223, 173, 101, 0.45), inset 0 0 8px rgba(223, 173, 101, 0.25);
}

.lang-circle-code-center {
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: 13.5px;
    font-weight: 700;
    color: #dfad65;
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 6px rgba(223, 173, 101, 0.4);
    z-index: 2;
    transition: all 0.3s ease;
}

.lang-circle-btn:hover .lang-circle-code-center {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(223, 173, 101, 0.85);
}

/* Translucent Floating Glass Dropdown Menu */
.lang-circle-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 190px;
    background: rgba(10, 12, 18, 0.58);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(223, 173, 101, 0.45);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(223, 173, 101, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transform-origin: top right;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

/* Open on hover on desktop OR on .open class (click/tap) */
.lang-circle-dropdown:hover .lang-circle-menu,
.lang-circle-dropdown.open .lang-circle-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.lang-menu-header {
    font-size: 10px;
    font-weight: 600;
    color: rgba(223, 173, 101, 0.85);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 6px 10px 8px 10px;
    border-bottom: 1px solid rgba(223, 173, 101, 0.2);
    margin-bottom: 4px;
    font-family: var(--font-cinzel, 'Cinzel', serif);
}

.lang-menu-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 10px !important;
    border-radius: 8px;
    text-decoration: none !important;
    color: #e2e8f0 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    cursor: pointer;
}

.lang-menu-item:hover {
    background: rgba(223, 173, 101, 0.2) !important;
    color: #ffffff !important;
    transform: translateX(3px);
}

.lang-menu-item.active {
    background: rgba(223, 173, 101, 0.25) !important;
    color: #dfad65 !important;
    font-weight: 600 !important;
    cursor: default;
}

.lang-item-badge {
    font-family: var(--font-cinzel, 'Cinzel', serif);
    font-size: 10.5px;
    font-weight: 700;
    color: #dfad65;
    background: rgba(223, 173, 101, 0.15);
    padding: 3px 6px;
    border-radius: 6px;
    border: 1px solid rgba(223, 173, 101, 0.35);
    min-width: 26px;
    text-align: center;
}

.lang-item-label {
    flex: 1;
    white-space: nowrap;
    font-family: var(--font-ui), var(--font-thai);
}

.lang-item-check {
    color: #dfad65;
    font-size: 12px;
    margin-right: 2px;
}

/* Mobile Language Switcher */
.lang-circle-dropdown-mobile {
    display: none;
}

@media (max-width: 768px) {
    .lang-circle-dropdown-mobile {
        display: inline-flex;
        margin-left: auto;
    }
    .lang-circle-dropdown-mobile .lang-circle-btn {
        width: 38px;
        height: 38px;
    }
    .lang-circle-dropdown-mobile .lang-circle-code-center {
        font-size: 12px;
    }
    .lang-circle-dropdown-mobile .lang-circle-menu {
        width: 180px;
        top: calc(100% + 8px);
    }
}

@media (max-width: 1200px) { .circle-img-wrap, .circle-ambient-glow { width: 180px; height: 180px; } }
@media (max-width: 768px) { .circle-img-wrap, .circle-ambient-glow { width: 140px; height: 140px; } }
@media (max-width: 576px) { .circle-img-wrap, .circle-ambient-glow { width: 120px; height: 120px; } }


/* Chinese Language Specific Font Adjustments */
html[lang="zh"] {
    --font-heading: 'Cinzel', 'Playfair Display', 'Noto Sans SC', serif;
    --font-ui: 'Montserrat', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-thai: 'Noto Sans SC', sans-serif;
}

html[lang="zh"] body {
    font-family: var(--font-ui);
}

html[lang="zh"] .nav-menu a {
    font-size: 1.02rem !important;
    letter-spacing: 0.8px;
}

html[lang="zh"] .marblex-subtitle {
    font-size: 1.02rem !important;
    letter-spacing: 1px;
}

html[lang="zh"] .marblex-about-text p {
    font-size: 1.02rem !important;
    line-height: 1.8 !important;
}

html[lang="zh"] .list-col h4 {
    font-size: 1.15rem !important;
    font-weight: 500 !important;
}

html[lang="zh"] .marblex-ul li {
    font-size: 0.98rem !important;
    line-height: 1.6 !important;
}

html[lang="zh"] .category-circle-btn h4 {
    font-size: 1.15rem !important;
}

html[lang="zh"] .slide-content h3 {
    font-size: clamp(1.4rem, 3.5vmin, 2rem) !important;
}

html[lang="zh"] .slide-content p {
    font-size: 1.02rem !important;
}

html[lang="zh"] .footer-col > p:first-child,
html[lang="zh"] .social-group > p:first-child {
    font-size: 1.12rem !important;
}

html[lang="zh"] .footer-legal a {
    font-size: 0.95rem !important;
}

/* ==========================================================================
   Cross-Device & Mobile Optimization (iOS Safari, Touch Targets, Safe Areas)
   ========================================================================== */

/* Safe area insets for notched devices & Dynamic Island */
body {
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

/* Prevent accidental horizontal overflow across all mobile viewports */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Mobile optimizations: iOS zoom prevention & touch targets */
@media (max-width: 768px) {
    /* iOS Safari zoom prevention on input focus (minimum 16px font-size) */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Standard touch target sizes: minimum 44px for clickable elements */
    .nav-toggle,
    .hamburger,
    .btn,
    .btn-primary,
    .btn-secondary,
    .footer-legal a,
    .map-route-btn,
    .social-icons a,
    .category-pill,
    .tone-circle,
    .hero-line-btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Ensure comfortable tap target spacing */
    .footer-legal a {
        padding: 8px 12px;
    }
}

/* ==========================================================================
   Luxury Micro-Interactions & Gold Shimmer Sweep Effect
   ========================================================================== */

/* 1. Gold Shimmer / Light Sweep on Hover */
.shimmer-card,
.project-card,
.other-project-card,
.tone-card,
.category-item,
.project-media-frame {
    position: relative;
    overflow: hidden;
}

.shimmer-card::before,
.project-card::before,
.other-project-card::before,
.tone-card::before,
.category-item::before,
.project-media-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: -160%;
    width: 70%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 223, 158, 0.04) 25%,
        rgba(255, 223, 158, 0.28) 50%,
        rgba(255, 223, 158, 0.04) 75%,
        transparent 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 8;
    transition: none;
}

.shimmer-card:hover::before,
.project-card:hover::before,
.other-project-card:hover::before,
.tone-card:hover::before,
.category-item:hover::before,
.project-media-frame:hover::before {
    left: 190%;
    transition: left 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Magnetic Buttons Class & Hardware Acceleration */
.magnetic-btn,
.hero-line-btn,
.designer-cta-btn,
.designer-secondary-btn,
.btn-back-tones,
.btn-back-projects,
.marblex-btn,
.modal-action-btn {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 3. Luxury Scroll Reveal GPU Acceleration */
.reveal-item,
.tone-card,
.category-item,
.project-card,
.other-project-card {
    will-change: transform, opacity;
}




