:root {
    /* --- สีและค่าอื่นๆ คงเดิม --- */
    --primary: #fc5b08;
    --primary-hover: #e04f05;
    --secondary: #333333;
    --text-light: #666666;
    --bg-cream: #fffaf0;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --bg-dark: #111111;
    --card-dark: rgba(30, 30, 30, 0.9);
    --white: #ffffff;
    --white-10: rgba(255, 255, 255, 0.1);
    --white-20: rgba(255, 255, 255, 0.2);
    --black-5: rgba(0, 0, 0, 0.05);

    /* --- แก้ไขส่วนฟอนต์ตรงนี้ --- */
    /* บังคับใช้ Anuphan เป็นฟอนต์หลักทั้งหัวข้อและเนื้อหา */
    --font-display: 'Kanit', serif;
    --font-sans: 'Kanit', sans-serif;


    /* สั่งให้ Element พวก Form/Button สืบทอดฟอนต์จาก Body */
    button,
    input,
    select,
    textarea {
        font-family: inherit;
        /* หรือใช้ var(--font-sans) โดยตรงก็ได้ */
    }

    /* --- ค่าอื่นๆ คงเดิม --- */
    --radius-md: 0.5rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-4xl: 2.5rem;

    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Dark Mode Variables */
body.dark-mode {
    --secondary: #e5e5e5;
    --text-light: #a3a3a3;
    --bg-cream: #111111;
    --glass-bg: rgba(30, 30, 30, 0.9);
    --glass-border: rgba(255, 255, 255, 0.1);
    --black-5: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 200;
    /* 200 คือ ExtraLight */
    color: var(--secondary);
    background-color: var(--bg-cream);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Material Icons */
.material-icons {
    font-size: 24px;
    vertical-align: middle;
}

/* --- Backgrounds --- */
.bg-wrapper {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bg-color-layer {
    position: absolute;
    inset: 0;
    background-color: var(--bg-cream);
    transition: background-color 0.3s;
}

.bg-pattern-layer {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fc5b08' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3Ccircle cx='13' cy='13' r='1'/%3E%3C/g%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

body.dark-mode .bg-pattern-layer {
    opacity: 0.05;
    mix-blend-mode: overlay;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(252, 91, 8, 0.05);
    filter: blur(60px);
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    animation: pulse 8s infinite;
}

.blob-2 {
    top: 40%;
    left: -10%;
    width: 50%;
    height: 50%;
    opacity: 0.5;
}

.blob-3 {
    bottom: 10%;
    right: 10%;
    width: 40%;
    height: 40%;
    opacity: 0.6;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 0.4;
    }
}

.hero-bg-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .hero-bg-image-wrapper {
        height: 120vh;
    }
}

.gradient-overlay-bottom {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to bottom, transparent, transparent, var(--bg-cream));
}

.gradient-overlay-top {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
}

body.dark-mode .gradient-overlay-top {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

/* --- Navigation --- */
.navbar {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 1024px) {
    .navbar {
        padding: 1.5rem 3rem;
    }
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    color: var(--primary);
    font-size: 1.875rem;
}

body.dark-mode .brand-icon {
    color: var(--white);
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--secondary);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.2s;
}

body.dark-mode .nav-link {
    color: #d1d5db;
}

.nav-link:hover {
    color: var(--primary);
}

body.dark-mode .nav-link:hover {
    color: var(--white);
}

.nav-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .nav-actions {
        display: flex;
    }
}

/* Lang Switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

body.dark-mode .lang-btn {
    border-color: var(--white-10);
    background-color: var(--white-10);
}

.lang-btn:hover {
    background-color: var(--white);
    border-color: rgba(252, 91, 8, 0.5);
}

.lang-icon {
    font-size: 0.875rem;
    color: var(--text-light);
}

.lang-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
}

.expand-icon {
    font-size: 0.75rem;
    color: var(--text-light);
}

.btn-contact {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(252, 91, 8, 0.4);
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s;
}

body.dark-mode .btn-contact {
    color: var(--white);
    border-color: var(--primary);
}

.btn-contact:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-theme-toggle {
    padding: 0.5rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .btn-theme-toggle {
    background-color: rgba(0, 0, 0, 0.2);
}

.btn-mobile-menu {
    display: block;
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
}

@media (min-width: 768px) {
    .btn-mobile-menu {
        display: none;
    }
}

/* --- Main Container --- */
.main-container {
    position: relative;
    z-index: 10;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

@media (min-width: 1024px) {
    .main-container {
        padding: 2rem 3rem;
    }
}

/* --- Hero Section --- */
.hero-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-section {
        grid-template-columns: repeat(12, 1fr);
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-column: span 5;
    }
}

.hero-title {
    font-size: 3rem;
    line-height: 0.9;
    color: var(--secondary);
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.title-line {
    display: block;
    font-family: var(--font-display);
    font-weight: 500;
}

.tm-mark {
    font-size: 1.5rem;
    vertical-align: top;
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-hero {
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
}

.btn-primary-hero:hover {
    background-color: var(--primary-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

/* Hero Visuals (Card) */
.hero-visuals {
    position: relative;
    padding-top: 3rem;
}

@media (min-width: 1024px) {
    .hero-visuals {
        grid-column: span 7;
        padding-top: 0;
    }
}

.glass-card {
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-4xl);
    padding: 2rem;
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: visible;
}

@media (min-width: 1024px) {
    .glass-card {
        padding: 3rem;
    }
}

.card-header {
    position: relative;
    z-index: 20;
    margin-bottom: 8rem;
}

@media (min-width: 1024px) {
    .card-header {
        margin-bottom: 12rem;
    }
}

.tags-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    background-color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
}

body.dark-mode .tag {
    border-color: #4b5563;
    background-color: rgba(0, 0, 0, 0.2);
    color: #d1d5db;
}

.tag-highlight {
    background-color: var(--primary);
    color: var(--white);
    border: none;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Roomtour Widget */
.roomtour-widget {
    position: absolute;
    top: 3rem;
    right: 1.5rem;
    z-index: 30;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 0.75rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 8rem;
    cursor: pointer;
    transition: transform 0.3s;
}

body.dark-mode .roomtour-widget {
    background-color: rgba(31, 41, 55, 0.9);
    border-color: var(--white-10);
}

.roomtour-widget:hover {
    transform: scale(1.05);
}

.widget-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-light);
}

.widget-image-box {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    height: 4rem;
    width: 100%;
}

.widget-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 0.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
}

.play-btn span {
    font-size: 0.75rem;
    color: var(--primary);
}

.widget-connector {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    width: 2px;
    height: 2rem;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 0;
}

.widget-dot {
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--white);
    border-radius: 50%;
    border: 2px solid var(--primary);
    z-index: 20;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.house-cutout {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 110%;
    z-index: 10;
}

.house-cutout img {
    width: 100%;
    border-bottom-right-radius: 2rem;
    border-bottom-left-radius: 2rem;
    box-shadow: var(--shadow-2xl);
    mask-image: linear-gradient(to bottom, transparent 5%, black 20%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 5%, black 20%);
}

/* --- Features Section --- */
.features-section {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: flex-end;
}

@media (min-width: 1024px) {
    .features-section {
        margin-top: 6rem;
        grid-template-columns: repeat(12, 1fr);
    }
}

.feature-box {
    background-color: var(--primary);
    border-radius: var(--radius-4xl);
    padding: 2rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 1024px) {
    .feature-box {
        grid-column: span 4;
    }
}

.box-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.box-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 150px;
}

.box-image-wrapper {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 10rem;
    height: 10rem;
    transform: rotate(0);
    transition: transform 0.5s;
}

.feature-box:hover .box-image-wrapper {
    transform: scale(1.1);
}

.box-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.feature-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .feature-stats {
        flex-direction: row;
        align-items: flex-end;
    }
}

@media (min-width: 1024px) {
    .feature-stats {
        grid-column: span 8;
        padding-bottom: 1rem;
    }
}

.stat-customers {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatars {
    display: flex;
    margin-left: 1rem;
}

.avatars img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid var(--white);
    object-fit: cover;
    margin-left: -1rem;
}

body.dark-mode .avatars img {
    border-color: #1f2937;
}

.avatar-plus {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid var(--white);
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
    margin-left: -1rem;
}

body.dark-mode .avatar-plus {
    border-color: #1f2937;
    color: var(--white);
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.875rem;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.stat-slogan {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .stat-slogan {
        align-items: flex-end;
        text-align: right;
    }
}

.slogan-text {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.2;
    color: var(--secondary);
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .slogan-text {
        font-size: 1.5rem;
    }
}

.slogan-text .highlight {
    font-weight: 500;
}

.link-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.link-learn-more:hover {
    color: var(--primary-hover);
}

.icon-arrow {
    font-size: 0.875rem;
    transition: transform 0.2s;
}

.link-learn-more:hover .icon-arrow {
    transform: translateX(4px);
}

/* --- Services Section --- */
.services-section {
    margin-top: 6rem;
    width: 100%;
}

.section-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
    }
}

.header-text {
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-light);
    max-width: 32rem;
}

.link-view-all {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 0.25rem;
    transition: color 0.2s;
}

@media (min-width: 768px) {
    .link-view-all {
        display: flex;
    }
}

body.dark-mode .link-view-all {
    color: var(--white);
    border-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background-color: var(--glass-bg);
    border-radius: 2rem;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 340px;
    transition: all 0.5s;
    cursor: pointer;
}

body.dark-mode .service-card {
    background-color: var(--card-dark);
    border-color: var(--white-20);
}

.service-card:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-2xl);
}

body.dark-mode .service-card:hover {
    background-color: #27272a;
}

.service-icon-box {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background-color: rgba(252, 91, 8, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

body.dark-mode .service-icon-box {
    background-color: var(--white-10);
}

.service-card:hover .service-icon-box {
    transform: scale(1.1);
}

.service-icon-box span {
    color: var(--primary);
    font-size: 1.5rem;
}

body.dark-mode .service-icon-box span {
    color: var(--white);
}

.box-blue {
    background-color: #eff6ff;
}

body.dark-mode .box-blue {
    background-color: rgba(30, 58, 138, 0.3);
}

.icon-blue {
    color: #2563eb !important;
}

body.dark-mode .icon-blue {
    color: #93c5fd !important;
}

.box-green {
    background-color: #f0fdf4;
}

body.dark-mode .box-green {
    background-color: rgba(20, 83, 45, 0.3);
}

.icon-green {
    color: #16a34a !important;
}

body.dark-mode .icon-green {
    color: #86efac !important;
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.service-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    opacity: 0.6;
    transition: all 0.3s;
    transform: translateY(0.5rem);
}

.service-card:hover .card-bottom {
    opacity: 1;
    transform: translateY(0);
}

.link-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}

body.dark-mode .link-text {
    color: var(--white);
}

.btn-arrow-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.btn-arrow-circle span {
    font-size: 0.875rem;
}

/* --- Status Section --- */
/* ค้นหาคลาส .status-section */
.status-section {
    /* ของเดิมอาจจะเป็น padding: 4rem 0; หรือมากกว่า */
    
    /* แก้ไข: ลด padding บน-ล่าง ให้เหลือน้อยลง (เช่น 2rem หรือ 3rem) */
    padding: 2.5rem 1.5rem; 
    
    position: relative;
    z-index: 10;
}

/* ถ้าต้องการให้หัวข้อ "สถานะโครงการปัจจุบัน" ขยับเข้าหาการ์ดมากขึ้น */
.status-section .section-header {
    /* ลด margin-bottom */
    margin-bottom: 2rem; 
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: rgba(252, 91, 8, 0.1);
    border: 1px solid rgba(252, 91, 8, 0.2);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 1rem;
}

.status-dot-wrapper {
    position: relative;
    display: flex;
    width: 0.5rem;
    height: 0.5rem;
}

.ping-dot {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary);
    opacity: 0.75;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.real-dot {
    position: relative;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--primary);
}

.status-legend {
    display: none;
}

@media (min-width: 768px) {
    .status-legend {
        display: flex;
        gap: 2rem;
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text-light);
    }
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.dot-gray {
    background-color: #d1d5db;
}

body.dark-mode .dot-gray {
    background-color: #4b5563;
}

.dot-primary {
    background-color: var(--primary);
}

.dot-secondary {
    background-color: var(--secondary);
}

body.dark-mode .dot-secondary {
    background-color: var(--white);
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .status-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.status-card {
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 2.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s;
    cursor: pointer;
    /* เพิ่มบรรทัดนี้ */
    position: relative;
    /* เพื่อให้มั่นใจว่ากดติด */
    transition: all 0.3s ease;
}

.status-card:active {
    transform: scale(0.98);
    /* เอฟเฟกต์กดยุบลงเล็กน้อย */
}

body.dark-mode .status-card {
    background-color: var(--card-dark);
    border-color: var(--white-20);
}

.status-card:hover {
    border-color: rgba(252, 91, 8, 0.3);
    box-shadow: var(--shadow-2xl);
}

.status-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.project-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.project-thumb {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
}

.project-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--secondary);
}

.project-loc {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

.project-type {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

body.dark-mode .project-type {
    border-color: #374151;
    background-color: var(--white-10);
    color: #9ca3af;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.progress-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.progress-stage {
    font-weight: 500;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-stage {
    font-size: 0.875rem;
    color: var(--primary);
}

.progress-percent {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--primary);
}

body.dark-mode .progress-percent {
    color: var(--white);
}

.progress-percent span {
    font-size: 1.125rem;
    vertical-align: top;
}

.progress-bar-track {
    width: 100%;
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 0.5rem;
}

body.dark-mode .progress-bar-track {
    background-color: #374151;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 9999px;
    transition: width 1s;
}

body.dark-mode .progress-bar-fill {
    background-color: var(--white);
}

.project-dates {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

body.dark-mode .project-dates {
    border-color: var(--white-10);
}

/* --- Designs Section --- */
.designs-section {
    margin-top: 8rem;
    margin-bottom: 3rem;
}

.designs-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 4rem;
}

.free-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid var(--glass-border);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

body.dark-mode .free-badge {
    color: var(--white);
}

.dot-pulse {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--primary);
    animation: pulse 2s infinite;
}

.designs-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .designs-title {
        font-size: 3.75rem;
    }
}

.highlight-italic {
    font-style: italic;
    color: var(--primary);
}

.designs-subtitle {
    color: var(--text-light);
    max-width: 36rem;
    font-weight: 300;
    font-size: 1.125rem;
}

.filter-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    position: relative;
    z-index: 40;
}

@media (min-width: 768px) {
    .filter-bar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

.style-filters {
    display: flex;
    padding: 0.375rem;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
}

body.dark-mode .style-filters {
    background-color: var(--white-10);
    border-color: var(--white-10);
}

.btn-filter {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: none;
    background: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.2s;
}

body.dark-mode .btn-filter {
    color: var(--white);
}

.btn-filter.active {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.filter-separator {
    width: 1px;
    height: 2rem;
    background-color: #d1d5db;
    display: none;
}

@media (min-width: 768px) {
    .filter-separator {
        display: block;
    }
}

body.dark-mode .filter-separator {
    background-color: var(--white-10);
}

.btn-price-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    background-color: var(--white);
    border: 1px solid #e5e7eb;
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

body.dark-mode .btn-price-filter {
    background-color: #27272a;
    border-color: var(--white-10);
    color: var(--white);
}

.btn-price-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.designs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .designs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .designs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.design-card {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-2xl);
    transition: all 0.5s;
}

body.dark-mode .design-card {
    background-color: var(--card-dark);
    border-color: var(--white-10);
}

.design-card:hover {
    transform: translateY(-0.5rem);
}

.design-image-box {
    position: relative;
    height: 20rem;
    overflow: hidden;
}

.design-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

.design-card:hover .design-image-box img {
    transform: scale(1.1);
}

.image-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent, transparent);
    opacity: 0.8;
}

.area-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.design-info-overlay {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    color: var(--white);
}

.design-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.design-specs {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.025em;
    color: rgba(255, 255, 255, 0.8);
}

.design-details {
    padding: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.feature-icons {
    display: flex;
    margin-left: 0.5rem;
}

.f-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #e5e7eb;
    border: 2px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    color: #4b5563;
    margin-left: -0.5rem;
}

.price-info {
    text-align: right;
}

.price-val {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--secondary);
}

.price-lbl {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.design-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-build {
    width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-build:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-2xl);
}

.btn-build span {
    font-size: 0.875rem;
    transition: transform 0.2s;
}

.btn-build:hover span {
    transform: translateX(4px);
}

.view-all-wrapper {
    margin-top: 3rem;
    text-align: center;
}

.link-view-all-designs {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.25rem;
    transition: all 0.2s;
}

body.dark-mode .link-view-all-designs {
    color: rgba(255, 255, 255, 0.8);
}

.link-view-all-designs:hover {
    color: var(--primary);
    border-color: var(--primary);
}

body.dark-mode .link-view-all-designs:hover {
    color: var(--white);
}

/* --- Testimonials & CTA --- */
.testimonials-cta-section {
    margin-top: 8rem;
    margin-bottom: 3rem;
}

.testimonials-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .testimonials-wrapper {
        grid-template-columns: repeat(12, 1fr);
    }
}

.testimonials-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .testimonials-content {
        grid-column: span 5;
    }
}

.testimonials-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 500;
    color: var(--secondary);
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .testimonials-title {
        font-size: 3rem;
    }
}

.testimonials-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--text-light);
}

.review-card {
    background-color: var(--glass-bg);
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    position: relative;
}

body.dark-mode .review-card {
    background-color: var(--card-dark);
    border-color: var(--white-20);
}

.quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: rgba(252, 91, 8, 0.2);
    font-size: 3rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-info img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.reviewer-name {
    font-weight: 700;
    color: var(--secondary);
}

.reviewer-role {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.review-text {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.6;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-top: 1rem;
    color: #eab308;
}

.stars span {
    font-size: 0.875rem;
}

.cta-banner {
    background-color: var(--primary);
    border-radius: 2.5rem;
    padding: 2rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    height: 100%;
    display: flex;
    align-items: center;
}

@media (min-width: 1024px) {
    .cta-banner {
        grid-column: span 7;
        padding: 3rem;
    }
}

.cta-bg-blobs {
    position: absolute;
    top: -6rem;
    right: -6rem;
    width: 16rem;
    height: 16rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(40px);
}

.cta-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

@media (min-width: 768px) {
    .cta-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cta-text {
    flex: 1;
}

.cta-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.cta-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 24rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.btn-consult {
    background-color: var(--white);
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-consult:hover {
    background-color: #f3f4f6;
}

.btn-contact-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-contact-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.booking-widget {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 240px;
    transform: rotate(3deg);
    transition: transform 0.5s;
}

.booking-widget:hover {
    transform: rotate(0);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.booking-lines div {
    height: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.l1 {
    width: 75%;
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.l2 {
    width: 100%;
}

.l3 {
    width: 85%;
}

.booking-footer {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.calendar-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-icon span {
    font-size: 0.875rem;
}

.booking-date {
    font-size: 0.75rem;
    font-weight: 700;
}

.booking-slots {
    font-size: 0.625rem;
    opacity: 0.7;
}

/* --- Footer --- */
/* 1. เพิ่มโค้ดนี้ไว้บนสุดของไฟล์ index_TH.css */
/* เพื่อล้างค่าขอบขาวเริ่มต้นของ Browser ออกให้หมด */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* ป้องกันไม่ให้มีสกรอลบาร์แนวนอนเกินมา */
}

/* 2. ค้นหาคลาส .site-footer และแก้เป็นแบบนี้ */
.site-footer {
    /* ใช้ width 100% และลบ margin */
    width: 100%;
    margin: 0;
    padding: 4rem 0; /* padding บน-ล่าง คงไว้ได้ */
    
    background-color: #111111; /* หรือสีพื้นหลัง Footer ของคุณ */
    color: #ffffff;
    
    /* สำคัญ: ลบ border-radius ออก ถ้ามี (เพื่อให้มุมชนขอบ) */
    border-radius: 0 !important;
    
    /* ดันให้ชิดขอบล่างสุดแน่นอน (ถ้าเนื้อหาน้อย) */
    position: relative; 
}

/* 3. ค้นหา .footer-container (ตัวคุมเนื้อหาข้างใน) */
/* เราขยายพื้นหลังเต็มจอ แต่เนื้อหาข้างในต้องไม่ไหลไปติดขอบ */
.footer-container {
    max-width: 1400px; /* หรือตามความกว้าง Grid หลักของเว็บ */
    width: 100%;
    margin: 0 auto;    /* จัดเนื้อหาให้อยู่กึ่งกลาง */
    padding: 0 1.5rem; /* เว้นระยะห่างซ้ายขวาของ 'เนื้อหา' ไม่ให้ติดขอบจอเกินไป */
}

@media (min-width: 1024px) {
    .footer-container {
        padding: 0 3rem;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .footer-brand-col {
        grid-column: span 4;
    }

    .footer-links-col {
        grid-column: span 2;
    }

    /* Used twice */
    .footer-contact-col {
        grid-column: span 4;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-brand .brand-icon {
    color: var(--primary);
    font-size: 1.875rem;
}

.footer-brand .brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-desc {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 20rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--white-5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s;
}

.social-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background-color: var(--primary);
}

.footer-list,
.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-list a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.footer-list a:hover {
    color: var(--primary);
    padding-left: 0.25rem;
}

.contact-list li {
    display: flex;
    gap: 0.75rem;
    color: #9ca3af;
    font-size: 0.875rem;
    align-items: flex-start;
}

.contact-list li span:first-child {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 0.15rem;
}

.footer-bottom {
    border-top: 1px solid var(--white-10);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--white);
}

/* --- Particles --- */
.particles-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: pulse 4s infinite;
}

.p1 {
    top: 25%;
    left: 25%;
    width: 0.5rem;
    height: 0.5rem;
    background-color: rgba(252, 91, 8, 0.1);
}

.p2 {
    top: 75%;
    right: 25%;
    width: 0.75rem;
    height: 0.75rem;
    background-color: rgba(252, 91, 8, 0.05);
    animation-duration: 7s;
}

.p3 {
    bottom: 25%;
    left: 50%;
    width: 0.25rem;
    height: 0.25rem;
    background-color: rgba(51, 51, 51, 0.05);
    animation-duration: 5s;
}

/* ... CSS เดิม ... */

/* ========================================== */
/* แก้ไข CSS Modal ให้พอดีกับ Card และปุ่มอยู่นอก */
/* ========================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.7);
    /* เพิ่มความเข้มพื้นหลังเล็กน้อย */
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: relative;
    width: 95%;

    /* --- ตั้งค่าขนาดให้พอดีกับ Glass Card ในหน้า Build_with_us --- */
    max-width: 64rem;
    /* ตรงกับ max-width ของ .glass-card */
    aspect-ratio: 16/9;
    /* ตรงกับ aspect-ratio ของ .glass-card */
    height: auto;
    max-height: 85vh;

    /* --- ทำให้ Container โปร่งใส (เพราะตัว Card ข้างในมีพื้นหลังแล้ว) --- */
    background: transparent;
    box-shadow: none;
    border-radius: 0;

    /* สำคัญ: ต้องเป็น visible เพื่อให้ปุ่มที่ลอยออกไปข้างนอกแสดงผลได้ */
    overflow: visible;

    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

/* ใน index_TH.css */

.modal-body {
    width: 100%;
    height: 100%;
    padding: 0;
    /* ต้องไม่มี padding */
    background: transparent;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;

    /* กำหนดขอบมนที่ตัว Iframe แทน */
    border-radius: 2rem;

    /* ตัดส่วนเกินที่ล้นขอบโค้ง */
    overflow: hidden;
}

/* --- จัดตำแหน่งปุ่มปิดให้อยู่นอก Modal --- */
/* ในไฟล์ index_TH.css */

.modal-close-btn {
    position: fixed;

    /* --- แก้ไขตำแหน่ง (ขยับเข้ามุมมากขึ้น) --- */
    top: 1rem;
    right: 1rem;

    z-index: 10001;

    /* --- แก้ไขขนาด (เล็กลง) --- */
    width: 2.5rem;
    height: 2.5rem;

    border-radius: 50%;

    /* ค่าอื่นๆ คงเดิม */
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: none;
}

.modal-close-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg);
}

/* ส่วน Media Query สำหรับมือถือ (ถ้ามีอยู่เดิม ให้แก้ให้ตรงกัน หรือลบออกก็ได้เพราะค่า 1rem ใช้ได้ดีกับมือถือแล้ว) */
@media (max-width: 768px) {
    .modal-close-btn {
        top: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* =========================================================
   ANIMATION: Designs Section & Testimonials
   (Fade In จากล่างขึ้นบน เหมือน Process)
   ========================================================= */

/* กำหนดสถานะเริ่มต้น (ซ่อนไว้) ให้กับ Elements ต่างๆ */
.designs-header,
.design-card,
.link-view-all-designs,
.testimonials-title,
.testimonials-subtitle,
.review-card,
.cta-content {
    opacity: 0;
    transform: translateY(40px); /* เลื่อนลงมาเยอะหน่อยให้เห็นชัด */
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

/* สถานะแสดงผล (Visible) */
.designs-header.visible,
.design-card.visible,
.link-view-all-designs.visible,
.testimonials-title.visible,
.testimonials-subtitle.visible,
.review-card.visible,
.cta-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   BACK TO TOP BUTTON
   ========================================================= */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    
    background-color: var(--primary); /* สีส้มตามธีม */
    color: white;
    border: none;
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999; /* ให้ลอยอยู่เหนือทุกอย่าง */
    
    box-shadow: 0 4px 15px rgba(252, 91, 8, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* ซ่อนไว้ก่อน (สถานะเริ่มต้น) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top-btn .material-icons {
    font-size: 1.5rem;
}

/* สถานะแสดงผล (JS จะเติม class นี้เมื่อเลื่อนหน้าจอ) */
.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover Effect */
.back-to-top-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(252, 91, 8, 0.4);
}

/* Mobile Responsive: ปรับขนาดให้เล็กลงนิดหน่อยในมือถือ */
@media (max-width: 768px) {
    .back-to-top-btn {
        width: 3rem;
        height: 3rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}