/* ==========================================================================
   THE DIGIT KOH SAMUI — AIGOCY GLAZED-GLASS & KOH SAMUI HOSPITALITY EDITION
   100% Authentic Aigocy Design System + Glazed-Glass Surfaces + Samui Imagery
   Site-Wide Adaptive High-Contrast Typography & Adaptive Anti-Pixelation Media
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. MISSING AIGOCY ROOT TOKENS & ADAPTIVE SURFACE CONTRAST VARIABLES
   -------------------------------------------------------------------------- */
:root {
    --white-64: rgba(255, 255, 255, 0.82);
    --white-32: rgba(255, 255, 255, 0.38);
    --white-16: rgba(255, 255, 255, 0.18);
    --black-32: rgba(9, 9, 11, 0.32);
    --line: #D4D4D8;
    --line-2: rgba(255, 255, 255, 0.16);
    --line-3: rgba(24, 24, 27, 0.12);
    --main: #09090B;
    --primary-rgb: 9, 9, 11;
    --brand-contrast-fg: #FFFFFF;

    /* Adaptive Surface Contrast Tokens */
    --surface-light-fg-primary: #09090B;
    --surface-light-fg-secondary: #27272A;
    --surface-light-fg-muted: #52525B;
    --surface-dark-fg-primary: #FFFFFF;
    --surface-dark-fg-secondary: #E4E4E7;
    --surface-dark-fg-muted: #D4D4D8;
}

.text-white-64 {
    color: var(--white-64) !important;
}

/* --------------------------------------------------------------------------
   1. GLOBAL RESET & SMOOTH SCROLL DEFENSIVE FIXES
   -------------------------------------------------------------------------- */
html,
body {
    height: auto !important;
    min-height: 100%;
    overflow-x: clip !important;
    color: var(--surface-light-fg-primary);
}

main#wrapper {
    position: relative;
    z-index: 1;
    isolation: isolate;
    overflow-x: clip;
}

/* IMPORTANT: Never override header.tf-header z-index! Only content sections get z-index: 1 */
main#wrapper > *:not(header):not(.tf-header) {
    position: relative;
    z-index: 1;
}

.smooth-wrapper,
.smooth-content {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
}

body.counter-scroll #wrapper {
    transform: none !important;
}

/* --------------------------------------------------------------------------
   2. SITE-WIDE PERSISTENT GLAZED-GLASS HEADER MENU (.tf-header)
   -------------------------------------------------------------------------- */
header.tf-header,
header.tf-header.header2 {
    position: fixed !important;
    top: 20px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9990 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    pointer-events: none;
    transition: top 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s ease;
}

body.header-scrolled header.tf-header,
body.header-scrolled header.tf-header.header2 {
    top: 12px !important;
}

header.tf-header .header-inner,
header.tf-header.header2 .header-inner {
    pointer-events: auto;
    max-width: 1320px !important;
    width: calc(100% - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 10px 14px 10px 28px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.86) !important;
    backdrop-filter: blur(32px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.92) !important;
    box-shadow:
        0 14px 40px rgba(9, 9, 11, 0.12),
        0 2px 8px rgba(9, 9, 11, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 -2px 0 rgba(0, 0, 0, 0.04) inset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

body.header-scrolled header.tf-header .header-inner {
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow:
        0 18px 48px rgba(9, 9, 11, 0.16),
        0 1px 0 rgba(255, 255, 255, 0.98) inset !important;
}

.tf-header .logo-site {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 4px 0;
}

.tf-header .logo-site img {
    height: 34px !important;
    width: auto !important;
    max-width: 165px;
    object-fit: contain !important;
    display: block;
}

.tf-header .box-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.tf-header .nav-menu-main {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tf-header .nav-menu-main > .menu-item > .item-link {
    font-size: 15px;
    font-weight: 600;
    color: #09090B !important;
    padding: 8px 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.tf-header .nav-menu-main > .menu-item:hover > .item-link,
.tf-header .nav-menu-main > .menu-item.active > .item-link {
    color: var(--brand) !important;
}

.tf-header .nav-menu-main > .menu-item.has-child > .item-link::after {
    content: "\e902";
    font-family: "icomoon";
    font-size: 11px;
    opacity: 0.75;
    transition: transform 0.25s ease;
}

.tf-header .nav-menu-main > .menu-item.has-child:hover > .item-link::after {
    transform: rotate(180deg);
    color: var(--brand);
    opacity: 1;
}

/* Glazed-Glass Submenu Dropdown */
.tf-header .sub-menu {
    min-width: 250px !important;
    left: -16px !important;
    top: calc(100% + 14px) !important;
    padding: 12px !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.92) !important;
    box-shadow:
        0 24px 48px rgba(9, 9, 11, 0.16),
        0 4px 12px rgba(9, 9, 11, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
    z-index: 9999 !important;
}

.tf-header .sub-menu li > a {
    padding: 9px 16px !important;
    border-radius: 12px;
    font-size: 14px !important;
    font-weight: 600;
    color: #09090B !important;
    transition: all 0.2s ease;
}

.tf-header .sub-menu li > a:hover,
.tf-header .sub-menu li > a.active {
    background: rgba(209, 36, 32, 0.10);
    color: var(--brand) !important;
    padding-left: 20px !important;
}

.tf-header .header-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.tf-header .header-location-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(24, 24, 27, 0.06);
    border: 1px solid rgba(24, 24, 27, 0.12);
    font-size: 12px;
    font-weight: 600;
    color: #09090B !important;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.tf-header .header-location-pill .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(209, 36, 32, 0.2);
}

/* Mobile Menu Logo & Glazed Offcanvas */
.offcanvas-menu {
    z-index: 9999 !important;
    background-color: rgba(9, 9, 11, 0.94) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
}

.offcanvas-menu .canvas_head .logo-site img {
    height: 34px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block;
}

/* --------------------------------------------------------------------------
   3. GLAZED-GLASS HERO WITH KOH SAMUI PHOTOGRAPHY BACKGROUNDS
   -------------------------------------------------------------------------- */
.section-hero {
    position: relative;
    overflow: hidden;
}

.section-hero .hero-image {
    overflow: hidden;
    background-image: url(../img/hero.jpg);
    background-position: center 28%;
    background-size: cover;
    background-attachment: scroll !important;
    box-shadow: 0 24px 60px rgba(9, 9, 11, 0.12);
}

/* Glazed-glass atmospheric veil over Koh Samui photography so text & glass elements pop with >11:1 contrast */
.section-hero .hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.90) 0%, rgba(255, 255, 255, 0.80) 52%, rgba(244, 244, 246, 0.72) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.62) 55%, rgba(237, 236, 236, 0.92) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
    pointer-events: none;
}

.section-hero .hero-image img,
.section-hero .hero-image video {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    transform: scale(1.01);
    transition: transform 8s ease;
}

.section-hero .container,
.section-hero .scroll-more {
    position: relative;
    z-index: 3;
}

.section-hero .content-wrap {
    padding-top: 175px !important;
}

.section-hero .content-wrap .sub {
    background: rgba(255, 255, 255, 0.90) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    padding: 8px 20px !important;
    border-radius: 999px !important;
    font-size: 14px;
    letter-spacing: 0.02em;
    color: #09090B !important;
    box-shadow: 0 6px 20px rgba(9, 9, 11, 0.08);
}

.section-hero .content-wrap .text {
    color: #09090B !important;
    font-weight: 500;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

/* Case Study Hero Brand Logo Badge — ensures white & colored logos both pop */
.case-hero-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.case-hero-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 18px;
    background: rgba(9, 9, 11, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 32px rgba(9, 9, 11, 0.18);
}

.case-hero-logo-badge img {
    max-height: 54px !important;
    max-width: 170px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
}

/* Glazed-Glass Koh Samui Telemetry Strip inside Hero (supports both .hero-samui-card & .glass-stat-item) */
.hero-samui-glass-strip {
    margin-top: 44px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1060px;
    padding: 20px 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.94);
    box-shadow:
        0 20px 50px rgba(9, 9, 11, 0.10),
        0 1px 0 rgba(255, 255, 255, 0.95) inset;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: left;
}

.hero-samui-glass-strip .glass-stat-item,
.hero-samui-glass-strip .hero-samui-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 12px;
    border-right: 1px solid rgba(24, 24, 27, 0.12);
}

.hero-samui-glass-strip .glass-stat-item:last-child,
.hero-samui-glass-strip .hero-samui-card:last-child {
    border-right: none;
    padding-right: 0;
}

.hero-samui-glass-strip .glass-stat-thumb,
.hero-samui-glass-strip .hero-samui-card > img {
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    object-fit: cover !important;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.hero-samui-glass-strip .glass-stat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-samui-glass-strip .glass-stat-num,
.hero-samui-glass-strip .card-num {
    font-size: 20px;
    font-weight: 700;
    color: #09090B !important;
    line-height: 1.15;
}

.hero-samui-glass-strip .glass-stat-label,
.hero-samui-glass-strip .card-label {
    font-size: 12px;
    font-weight: 600;
    color: #27272A !important;
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   4. ABOUT US — KOH SAMUI AERIAL BACKDROP & GLAZED-GLASS CARDS
   -------------------------------------------------------------------------- */
.section-about-us .col-left {
    position: relative;
    background-image:
        linear-gradient(180deg, rgba(9, 9, 11, 0.80) 0%, rgba(9, 9, 11, 0.68) 45%, rgba(9, 9, 11, 0.92) 100%),
        url(../img/island-aerial.jpg) !important;
    background-size: cover !important;
    background-position: center !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 64px 32px 0 !important;
}

.section-about-us .col-left .sub {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    color: #FFFFFF !important;
}

.section-about-us .col-left > img {
    mix-blend-mode: lighten;
    opacity: 0.92;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.section-about-us .review-box,
.section-about-us .mission-box,
.section-about-us .box-quotes {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.94) !important;
}

/* --------------------------------------------------------------------------
   5. GLAZED-GLASS CONTAINERS (.box-white & .box-black) WITH SAMUI IMAGERY
   -------------------------------------------------------------------------- */
.box-white {
    position: relative;
    background:
        linear-gradient(180deg, rgba(250, 250, 250, 0.92) 0%, rgba(255, 255, 255, 0.88) 50%, rgba(250, 250, 250, 0.94) 100%),
        url(../img/beach-hotel.jpg) center/cover no-repeat !important;
    border: 1px solid rgba(255, 255, 255, 0.90);
    box-shadow: 0 20px 60px rgba(9, 9, 11, 0.06);
}

.box-black {
    position: relative;
    background:
        linear-gradient(180deg, rgba(9, 9, 11, 0.90) 0%, rgba(9, 9, 11, 0.85) 50%, rgba(9, 9, 11, 0.94) 100%),
        url(../img/resort-cliff.jpg) center/cover no-repeat !important;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

/* --------------------------------------------------------------------------
   6. SERVICES ACCORDION & LIVE HOVER PREVIEW IMAGE
   -------------------------------------------------------------------------- */
.section-services .services-image {
    max-width: 420px;
    width: 100%;
    height: 260px;
    border-radius: 24px;
    overflow: hidden;
    padding: 8px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 45px rgba(9, 9, 11, 0.12);
}

.section-services .services-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 18px;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.accordion-faq_item .accordion-content .image {
    overflow: hidden;
    border-radius: 20px;
}

.accordion-faq_item .accordion-content .image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 20px;
}

/* --------------------------------------------------------------------------
   7. BENEFITS CARDS — GLAZED GLASS OVER KOH SAMUI RESORT BACKGROUNDS
   -------------------------------------------------------------------------- */
.section-benefits .benefits-box {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.section-benefits .benefits-box.benefits-progress {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 248, 250, 0.94) 100%),
        url(../img/resort-pool.jpg) center/cover no-repeat !important;
}

.section-benefits .benefits-box.benefits-step {
    background:
        linear-gradient(180deg, rgba(24, 24, 27, 0.86) 0%, rgba(9, 9, 11, 0.94) 100%),
        url(../img/beach-bar.jpg) center/cover no-repeat !important;
    border-color: rgba(255, 255, 255, 0.18);
}

.section-benefits .benefits-box.benefits-secure {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 248, 250, 0.94) 100%),
        url(../img/spa-stone.jpg) center/cover no-repeat !important;
}

.section-benefits .benefits-box.benefits-design {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 248, 250, 0.94) 100%),
        url(../img/pool-villa.jpg) center/cover no-repeat !important;
}

/* Dark Glazed Benefits Cards inside .box-black (contact.html) */
.box-black .benefits-item {
    background: rgba(24, 24, 27, 0.78);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    padding: 36px 32px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.box-black .benefits-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.32);
}

/* --------------------------------------------------------------------------
   8. FEATURES RADIAL HUB & CENTER SQUARE LOGO
   -------------------------------------------------------------------------- */
.section-features .features-item {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(22px) !important;
    -webkit-backdrop-filter: blur(22px) !important;
    border: 1px solid rgba(255, 255, 255, 0.94) !important;
}

.section-features .features-center {
    width: 184px;
    height: 184px;
    border-radius: 38px;
    background: #09090B;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0px -3px 0px 0px #080808 inset,
        0px 1px 0px 0px rgba(255, 255, 255, 0.30) inset,
        0px 22px 44px rgba(0, 0, 0, 0.22),
        0px 100px 80px rgba(0, 0, 0, 0.15);
}

.section-features .features-center img {
    width: 74% !important;
    height: 74% !important;
    object-fit: contain !important;
    border-radius: 16px;
}

/* --------------------------------------------------------------------------
   9. TOOLS ORBIT SECTION (.section-tools & .section-tools.v2) WITH SAMUI IMAGERY
   -------------------------------------------------------------------------- */
.section-tools {
    position: relative;
    overflow: hidden;
    margin: 24px 16px;
    border-radius: 40px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(245, 245, 247, 0.84) 50%, rgba(255, 255, 255, 0.90) 100%),
        url(../img/fishing-boats.jpg) center/cover no-repeat !important;
    border: 1px solid rgba(255, 255, 255, 0.90);
    box-shadow: 0 20px 50px rgba(9, 9, 11, 0.08);
}

.section-tools .container,
.section-tools .tool-wrap {
    position: relative;
    z-index: 3;
}

.section-tools .tool-wrap .image-center {
    width: 148px;
    height: 148px;
    border-radius: 32px;
    background: #09090B;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.section-tools .tool-wrap .image-center img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 14px;
}

/* Ensure animated circuit lines contrast clearly over light glazed background */
.section-tools .side-line svg path {
    stroke: rgba(24, 24, 27, 0.26) !important;
}

/* --------------------------------------------------------------------------
   10. DARK SHOWCASE CARDS (PODS, STATS, VERTICALS, TESTIMONIALS)
   -------------------------------------------------------------------------- */
.box-black .team-item,
.box-black .awards-item {
    background: rgba(24, 24, 27, 0.78) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.box-black .team-item .image {
    overflow: hidden;
    border-radius: 20px;
}

.box-black .team-item .image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
}

.box-black .team-item.style-1 .image {
    overflow: hidden;
    border-radius: 16px;
    flex-shrink: 0;
}

.box-black .team-item.style-1 .image img {
    height: 92px;
    width: 92px;
    object-fit: cover;
    border-radius: 16px;
}

.testimonial-image,
.testimonial-image-v2 {
    overflow: hidden;
    border-radius: 32px;
    position: relative;
}

.testimonial-image img,
.testimonial-image-v2 img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

/* --------------------------------------------------------------------------
   11. FEATURED WORKS & PORTFOLIO FILTER
   -------------------------------------------------------------------------- */
.featured-works-item {
    background: rgba(255, 255, 255, 0.90) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
}

.featured-works-item .image {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #121215;
}

.featured-works-item .image > img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.featured-works-item .work-brand-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    background: rgba(9, 9, 11, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 14px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.featured-works-item .work-brand-badge img {
    height: 32px !important;
    width: auto !important;
    max-width: 115px !important;
    object-fit: contain !important;
    border-radius: 4px;
}

.featured-works-item .work-vertical-pill {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 3;
    background: rgba(9, 9, 11, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #FFFFFF !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.portfolio-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 52px;
}

.portfolio-filter-btn {
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid rgba(24, 24, 27, 0.16);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    color: #09090B !important;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-filter-btn:hover,
.portfolio-filter-btn.active {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: var(--brand-contrast-fg, #FFFFFF) !important;
    box-shadow: 0 8px 20px rgba(209, 36, 32, 0.25);
}

.featured-works-list.portfolio-all-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.featured-works-list.portfolio-all-grid .featured-works-item {
    position: relative !important;
    top: auto !important;
    margin-bottom: 0 !important;
}

/* --------------------------------------------------------------------------
   12. WORK SINGLE & SERVICE SINGLE CASE LEDGER & GALLERIES
   -------------------------------------------------------------------------- */
.section-work-single .wrap-image,
.section-services-single .top-image,
.section-work-single .image,
.section-services-single .image {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #121215;
    box-shadow: 0 20px 50px rgba(9, 9, 11, 0.12);
}

.section-work-single .wrap-image img,
.section-services-single .top-image img {
    width: 100%;
    height: 560px;
    max-height: 620px;
    object-fit: cover;
    border-radius: 28px;
    display: block;
    position: relative;
    z-index: 1;
}

.section-work-single .image img,
.section-services-single .image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 24px;
    display: block;
    position: relative;
    z-index: 1;
}

.case-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 28px 32px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
    margin-bottom: 48px;
}

.case-meta-grid .meta-item .meta-label,
.case-meta-grid .meta-cell .meta-k {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #52525B !important;
    margin-bottom: 6px;
}

.case-meta-grid .meta-item .meta-value,
.case-meta-grid .meta-cell .meta-v {
    font-size: 16px;
    font-weight: 700;
    color: #09090B !important;
    line-height: 1.35;
}

/* --------------------------------------------------------------------------
   13. CONTACT SECTION, GLAZED FORM & FOOTER LOGOS
   -------------------------------------------------------------------------- */
.section-contact .contact-image {
    overflow: hidden;
}

.section-contact .contact-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 55%, rgba(244, 244, 246, 0.78) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: inherit;
    pointer-events: none;
}

.section-contact .container {
    position: relative;
    z-index: 2;
}

.section-contact .col-left .contact-item {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    padding: 18px 22px;
    box-shadow: 0 12px 32px rgba(9, 9, 11, 0.08);
}

.section-contact .col-left .contact-item .title {
    color: #52525B !important;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.section-contact .col-left .contact-item .text,
.section-contact .col-left .contact-item .text a,
.section-contact .col-left .contact-item .text a.text-white {
    color: #09090B !important;
    font-weight: 600;
}

.section-contact .col-left .contact-item .text a:hover {
    color: var(--brand) !important;
}

.section-contact .form-contact,
.box-contact-item {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.96) !important;
    color: #09090B !important;
}

.form-contact .attachment {
    cursor: pointer;
    user-select: none;
    color: #09090B !important;
    transition: color 0.2s ease;
}

.form-contact .attachment:hover {
    color: var(--brand) !important;
}

.form-thank-you {
    display: none;
    margin-top: 20px;
    padding: 20px 24px;
    border-radius: 16px;
    background: rgba(9, 9, 11, 0.96);
    border: 1px solid var(--brand);
    color: #FFFFFF !important;
}

.form-thank-you.show {
    display: block;
}

footer .footer-logo img {
    width: 84px !important;
    height: 84px !important;
    border-radius: 20px;
    object-fit: contain !important;
    background: #09090B;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

footer .footer-image img {
    width: 100%;
    max-width: 1440px;
    height: auto;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
}

/* Partner Marquee Pills */
.infiniteSlide_partner .partner-brand-pill {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 56px;
    padding: 8px 24px;
    margin: 0 12px;
    border-radius: 999px;
    background: rgba(9, 9, 11, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s ease;
}

.infiniteSlide_partner .partner-brand-pill span {
    color: #FFFFFF !important;
}

.infiniteSlide_partner .partner-brand-pill:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
}

.infiniteSlide_partner .partner-brand-pill img {
    height: 30px !important;
    width: auto !important;
    max-width: 90px !important;
    object-fit: contain !important;
    border-radius: 4px;
}

/* Color Configuration Swatches */
.settings-color .choose-item {
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.settings-color .choose-item.active {
    border-color: #fff;
    transform: scale(1.12);
}

/* --------------------------------------------------------------------------
   14. SITE-WIDE ADAPTIVE HIGH-CONTRAST TYPOGRAPHY RULES
   Ensures all fonts strictly contrast against their underlying surface
   -------------------------------------------------------------------------- */

/* A. Fix low-contrast / transparent text gradients on light surfaces */
.text-gradient-1,
.text-gradient-2,
.text-gradient-3 {
    background: linear-gradient(180deg, #09090B 0%, #27272A 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: #09090B;
}

/* B. Automatically invert text gradients to crisp white/silver on dark surfaces */
.box-black .text-gradient-1,
.box-black .text-gradient-2,
.box-black .text-gradient-3,
.benefits-box.benefits-step .text-gradient-1,
.benefits-box.benefits-step .text-gradient-2,
.benefits-box.benefits-step .text-gradient-3,
.section-about-us .col-left .text-gradient-1,
.section-about-us .col-left .text-gradient-2,
.section-about-us .col-left .text-gradient-3,
[data-surface="dark"] .text-gradient-1,
[data-surface="dark"] .text-gradient-2,
[data-surface="dark"] .text-gradient-3 {
    background: linear-gradient(180deg, #FFFFFF 0%, #E4E4E7 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: #FFFFFF;
}

/* C. Light & Glazed-Light Surface High-Contrast Enforcement */
.box-white,
.review-box,
.mission-box,
.box-quotes,
.process-card,
.section-benefits .benefits-box:not(.benefits-step),
.section-features .features-item,
.featured-works-item .content,
.pricing-item:not(.style-black),
.accordion-asked-item,
.form-contact,
.case-meta-grid,
footer {
    color: #09090B;
}

.box-white .heading,
.box-white h1, .box-white h2, .box-white h3, .box-white h4, .box-white h5, .box-white h6,
.review-box .desc,
.box-quotes .desc,
.box-quotes .cite .name,
.process-card .title,
.process-card .bot .time,
.section-benefits .benefits-box:not(.benefits-step) .title,
.section-features .features-item .title,
.featured-works-item .content .heading,
.featured-works-item .content .heading a,
.featured-works-item .content .grid-text .item > div:not(.title),
.pricing-item:not(.style-black) .price-number,
.pricing-item:not(.style-black) .top .text,
.pricing-item:not(.style-black) .content .text,
.accordion-asked-item .accordion-button,
.section-delay .delay-item .left .title,
footer .footer-content .title,
footer .tf-social-1 a,
footer .footer-bottom a {
    color: #09090B !important;
}

/* Fix secondary/body copy on light glazed surfaces so it never looks washed out */
.text-secondary,
.box-white .text-secondary,
.section-about-us .review-box .text,
.box-quotes .cite .sub,
.process-card .text,
.section-benefits .benefits-box:not(.benefits-step) .text-secondary,
.section-features .features-item .text-secondary,
.featured-works-item .content .grid-text .item .title,
.accordion-asked-item .accordion-body,
.section-work-single p.text-secondary,
.section-services-single p.text-secondary,
.section-delay .delay-item .right .text,
footer .footer-content .text,
footer .coppy-rights {
    color: #27272A !important;
}

/* Fix invisible .text-neutral-200 / .text-neutral-400 counters on white cards */
.review-box .counter,
.review-box .counter.text-neutral-200 {
    color: #18181B !important;
}

.process-card .bot .number .text-neutral-400 {
    color: #09090B !important;
    font-weight: 700;
}

.process-card .bot .number .text-neutral-200 {
    color: #52525B !important;
    font-weight: 600;
}

.box-quotes .icon svg path {
    fill: #71717A !important;
}

/* D. Dark & Glazed-Dark Surface High-Contrast Enforcement */
.box-black,
.section-about-us .col-left,
.section-benefits .benefits-box.benefits-step,
.pricing-item.style-black,
.box-black .team-item,
.box-black .awards-item,
.box-black .benefits-item,
.testimonials-v2-wrap,
.offcanvas-menu,
.offcanvas-color {
    color: #FFFFFF;
}

/* Fix .benefits-box.benefits-step (dark card over beach-bar.jpg) */
.section-benefits .benefits-box.benefits-step .title,
.section-benefits .benefits-box.benefits-step h5,
.section-benefits .benefits-box.benefits-step .sub-text {
    color: #FFFFFF !important;
}

.section-benefits .benefits-box.benefits-step .text-secondary,
.section-benefits .benefits-box.benefits-step p {
    color: #E4E4E7 !important;
}

/* Fix all headings, titles, and links inside .box-black and dark cards */
.box-black .heading-title,
.box-black h1, .box-black h2, .box-black h3, .box-black h4, .box-black h5, .box-black h6,
.box-black .team-item .name,
.box-black .awards-item .title,
.box-black .benefits-item .benefits-title,
.box-black .statistic-slider .swiper-slide .title,
.box-black .statistic-slider .statistic-number .number,
.pricing-item.style-black .price-number,
.pricing-item.style-black .top .text,
.pricing-item.style-black .top i,
.pricing-item.style-black .content .text {
    color: #FFFFFF !important;
}

.box-black p,
.box-black .text-secondary,
.box-black .text-neutral-300,
.box-black .text-neutral-400,
.box-black .text-white-64,
.box-black .team-item .sub,
.box-black .awards-item .text,
.box-black .awards-item .date,
.box-black .testimonials-v2-wrap .cite .name,
.box-black .testimonials-v2-wrap .cite .sub,
.section-about-us .col-left p,
.section-about-us .col-left .text-neutral-300 {
    color: #E4E4E7 !important;
}

/* Prevent accidental .text-primary (#09090B black) inside .box-black */
.box-black .text-primary {
    color: var(--brand) !important;
}

/* Fix Testimonial pagination counter inside .box-black (was #3F3F46 on #09090B) */
.box-black .testimonial-wrap .group-slider .testimonials-pagination,
.box-black .testimonial-wrap .group-slider .testimonials-pagination span {
    color: #E4E4E7 !important;
}

.box-black .testimonials-v2-wrap > .col-left > svg path {
    fill: rgba(255, 255, 255, 0.18) !important;
}

/* E. Services Accordion (.accordion-faq_item) Adaptive Collapsed vs Expanded Contrast */
.accordion-faq_item {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Collapsed = Light Glazed Surface -> Dark High-Contrast Text */
.accordion-faq_item:has(.accordion-action.collapsed) {
    background: rgba(255, 255, 255, 0.90) !important;
    border: 1px solid rgba(24, 24, 27, 0.10) !important;
}

.accordion-faq_item .accordion-action.collapsed .accordion-title,
.accordion-faq_item .accordion-action.collapsed .accordion-title .num,
.accordion-faq_item .accordion-action.collapsed .accordion-title i {
    color: #09090B !important;
}

/* Expanded = Dark Charcoal Surface -> Crisp White & Silver Text */
.accordion-faq_item:has(.accordion-action:not(.collapsed)) {
    background: #18181B !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.accordion-faq_item .accordion-action:not(.collapsed) .accordion-title,
.accordion-faq_item .accordion-action:not(.collapsed) .accordion-title .num,
.accordion-faq_item .accordion-action:not(.collapsed) .accordion-title i {
    color: #FFFFFF !important;
}

.accordion-faq_item .accordion-content .text,
.accordion-faq_item .accordion-content .text-neutral-300 {
    color: #E4E4E7 !important;
}

.accordion-faq_item.style-1 .accordion-content .content .num {
    color: #D4D4D8 !important;
}

.accordion-faq_item .accordion-content .tags-item {
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #FFFFFF !important;
}

.accordion-faq_item .accordion-content .tags-item:hover {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: var(--brand-contrast-fg, #FFFFFF) !important;
}

/* F. Delay Progress Bar Percentage Pill — guarantees 19:1 contrast at any % fill */
.section-delay .delay-progress .number-progress {
    background: #09090B !important;
    color: #FFFFFF !important;
    padding: 4px 14px !important;
    border-radius: 999px !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);
    z-index: 3;
}

/* G. Buttons & Brand Accents Adaptive Foreground */
.tf-btn {
    color: var(--brand-contrast-fg, #FFFFFF) !important;
}

/* --------------------------------------------------------------------------
   15. SITE-WIDE ADAPTIVE IMAGE ENGINE (SMART CROP / FIT / FILL, ZERO PIXELATION)
   Adapts every image to its original dimensions (naturalWidth / naturalHeight)
   -------------------------------------------------------------------------- */
img {
    max-width: 100%;
    image-rendering: auto;
}

/* Logos, Icons & Badges: Always preserve native aspect ratio with object-fit: contain */
img[src*="logos/"],
img[src$=".svg"],
.logo-site img,
.work-brand-badge img,
.partner-brand-pill img,
.case-hero-logo-badge img,
.features-center img,
.image-center img,
.box-logo-item img,
.footer-logo img,
.footer-image img {
    object-fit: contain !important;
}

/* Portrait Photography (aspect ratio 0.56 - 0.88): Smart upper-third focal point */
img[data-aspect-type="portrait"] {
    object-fit: cover;
    object-position: center 24% !important;
}

/* Ultra-Tall Captures (aspect ratio < 0.56, e.g., full-page web captures like Book Samui):
   Frame cleanly with top-weighted focus or ambient glazed studio backdrop */
.hero-image img[data-aspect-type="ultra-tall"] {
    object-fit: cover !important;
    object-position: center 12% !important;
}

.is-adaptive-framed {
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #121215 !important;
}

.is-adaptive-framed::before {
    content: "";
    position: absolute;
    inset: -24px;
    background-image: var(--adaptive-bg);
    background-position: center center;
    background-size: cover;
    filter: blur(28px) saturate(160%) brightness(0.72);
    transform: scale(1.08);
    z-index: 0;
    pointer-events: none;
}

.is-adaptive-framed::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(9, 9, 11, 0.10) 0%, rgba(9, 9, 11, 0.45) 100%);
    z-index: 0;
    pointer-events: none;
}

/* Tall vertical captures inside showcase/gallery slots show top-down cleanly without pixelation */
.is-adaptive-framed.is-tall-capture > img {
    position: relative !important;
    z-index: 1 !important;
    width: auto !important;
    max-width: min(88%, 760px) !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
}

/* Anti-pixelation clamp if an image is ever smaller than an ultra-wide container */
.is-adaptive-framed.is-native-clamped > img {
    position: relative !important;
    z-index: 1 !important;
    width: auto !important;
    max-width: var(--max-crisp-w, 100%) !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38) !important;
}

/* --------------------------------------------------------------------------
   16. COMPREHENSIVE MULTI-DEVICE & ORIENTATION RESPONSIVENESS
   -------------------------------------------------------------------------- */

/* Laptop / Smaller Desktop (<= 1399px) */
@media (max-width: 1399px) {
    .tf-header .header-location-pill {
        display: none;
    }
    .tf-header .nav-menu-main {
        gap: 20px;
    }
}

/* Tablet Landscape (<= 1199px) */
@media (max-width: 1199px) {
    header.tf-header .header-inner,
    header.tf-header.header2 .header-inner {
        padding: 10px 14px 10px 22px !important;
        gap: 12px !important;
    }
    .tf-header .nav-menu-main {
        gap: 16px;
    }
    .tf-header .nav-menu-main > .menu-item > .item-link {
        font-size: 14px;
    }
    .hero-samui-glass-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .hero-samui-glass-strip .glass-stat-item:nth-child(2),
    .hero-samui-glass-strip .hero-samui-card:nth-child(2) {
        border-right: none;
    }
    .section-about-us {
        min-height: unset !important;
    }
}

/* Tablet Portrait & Mobile Navigation Breakpoint (<= 991px) */
@media (max-width: 991px) {
    header.tf-header,
    header.tf-header.header2 {
        top: 12px !important;
    }
    header.tf-header .header-inner,
    header.tf-header.header2 .header-inner {
        width: calc(100% - 24px) !important;
        padding: 8px 10px 8px 20px !important;
    }
    .tf-header .box-navigation {
        display: none !important;
    }
    .tf-header .logo-site img {
        height: 30px !important;
    }
    .section-hero .content-wrap {
        padding: 140px 0 80px !important;
    }
    .section-services .col-left {
        margin-bottom: 40px !important;
    }
    .section-services .services-image {
        position: relative !important;
        max-width: 100%;
        height: 280px;
        margin-top: 32px;
    }
    .features-wrap .features-center {
        display: flex !important;
        margin: 28px auto;
        width: 140px;
        height: 140px;
    }
    .case-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 24px;
    }
    .testimonial-image img,
    .testimonial-image-v2 img {
        height: 380px;
        margin-top: 24px;
    }
    .section-work-single .wrap-image img,
    .section-services-single .top-image img {
        height: 420px;
    }
}

/* Mobile Landscape & Large Phones (<= 767px) */
@media (max-width: 767px) {
    .section-hero {
        padding: 8px 8px 0 !important;
    }
    .section-hero .hero-image {
        inset: 8px 8px 0 8px !important;
        border-radius: 24px !important;
    }
    .section-hero .content-wrap {
        padding: 120px 0 64px !important;
    }
    .section-hero .content-wrap .title-icon {
        height: 96px;
        transform: scale(0.78);
        transform-origin: center center;
        margin-top: -10px;
        margin-bottom: -10px;
    }
    .hero-samui-glass-strip {
        grid-template-columns: 1fr;
        padding: 16px 20px;
        margin-top: 28px;
        border-radius: 20px;
    }
    .hero-samui-glass-strip .glass-stat-item,
    .hero-samui-glass-strip .hero-samui-card {
        border-right: none;
        border-bottom: 1px solid rgba(24, 24, 27, 0.08);
        padding-bottom: 12px;
        padding-right: 0;
    }
    .hero-samui-glass-strip .glass-stat-item:last-child,
    .hero-samui-glass-strip .hero-samui-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .box-white,
    .box-black,
    .section-tools {
        margin-left: 8px !important;
        margin-right: 8px !important;
        border-radius: 24px !important;
    }
    .featured-works-item .image > img {
        height: 280px;
    }
    .section-work-single .wrap-image img,
    .section-services-single .top-image img {
        height: 300px;
    }
    .section-work-single .image img,
    .section-services-single .image img {
        height: 260px;
    }
    .section-statistic .statistic-carousel .statistic-number {
        font-size: 84px !important;
        line-height: 90px !important;
    }
    .section-statistic .statistic-carousel .statistic-number .prefix {
        font-size: 76px !important;
    }
    .mb-menu-link {
        font-size: 28px !important;
        line-height: 38px !important;
    }
}

/* Small Phones (<= 575px) */
@media (max-width: 575px) {
    header.tf-header .header-inner,
    header.tf-header.header2 .header-inner {
        width: calc(100% - 16px) !important;
        padding: 8px 8px 8px 16px !important;
    }
    .tf-header .logo-site img {
        height: 26px !important;
        max-width: 135px;
    }
    .case-meta-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .portfolio-filter-btn {
        padding: 9px 16px;
        font-size: 13px;
    }
    .featured-works-item .work-brand-badge {
        top: 12px;
        left: 12px;
        padding: 6px 10px;
    }
    .featured-works-item .work-brand-badge img {
        height: 24px !important;
    }
}

/* Landscape Orientation on Mobile Devices */
@media (max-height: 540px) and (orientation: landscape) {
    header.tf-header,
    header.tf-header.header2 {
        top: 8px !important;
    }
    .section-hero .content-wrap {
        padding: 105px 0 48px !important;
    }
    .offcanvas-menu .offcanvas-content {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }
    .mb-menu-link {
        font-size: 22px !important;
        line-height: 30px !important;
    }
}
