        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            /* Minimal Grayscale System */
            --gray-50: #f9fafb;
            --gray-100: #f3f4f6;
            --gray-200: #e5e7eb;
            --gray-300: #d1d5db;
            --gray-500: #6b7280;
            --gray-600: #4b5563;
            --gray-700: #374151;
            --gray-800: #1f2937;
            --gray-900: #111827;

            /* Primary Professional Blue */
            --primary: #1e40af;

            /* Semantic Colors (for backwards compatibility) */
            --text-primary: var(--gray-900);
            --text-secondary: var(--gray-600);
            --border: var(--gray-200);
            --background: var(--gray-50);

            /* Legacy variable mappings */
            --dark: var(--gray-900);
            --gray: var(--gray-500);
            --light: var(--gray-100);
            --white: #ffffff;
            --secondary: var(--gray-600);
            --accent: var(--primary);
        }

        html {
            scroll-behavior: smooth;
            overflow-x: hidden;
        }

        /* ========================================
           ACCESSIBILITY: REDUCED MOTION SUPPORT
           WCAG 2.1 Level AA Compliance
           ======================================== */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }

            html {
                scroll-behavior: auto;
            }

            /* Preserve essential animations for usability */
            .loader-spinner {
                animation: spin 1s linear infinite !important;
            }
        }

        body {
            font-family: 'Inter', sans-serif;
            color: var(--dark);
            line-height: 1.6;
            font-size: 16px;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
        }

        /* ========================================
           ACCESSIBILITY: FOCUS-VISIBLE SUPPORT
           Modern keyboard navigation
           ======================================== */
        *:focus {
            outline: none;
        }

        *:focus-visible {
            outline: 3px solid var(--primary);
            outline-offset: 3px;
            border-radius: 4px;
        }

        /* Skip to content link */
        .skip-link {
            position: absolute;
            top: -100px;
            left: 20px;
            z-index: 10000;
            padding: 12px 24px;
            background: var(--primary);
            color: white;
            text-decoration: none;
            border-radius: 8px;
            font-weight: 600;
            transition: top 0.3s ease;
        }

        .skip-link:focus {
            top: 20px;
            outline: 3px solid white;
            outline-offset: 2px;
        }

        body.zh {
            font-family: 'Noto Sans SC', sans-serif;
        }

        body.en {
            font-family: 'Inter', sans-serif;
            font-size: 16px;
        }

        body.th {
            font-family: 'Prompt', sans-serif;
            font-size: 15px;
            line-height: 1.7;
        }

        /* Language Switcher */
        .lang-switcher {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-left: 30px;
        }

        @media (max-width: 768px) {
            .lang-switcher {
                margin-left: auto;
                gap: 6px;
            }
        }

        @media (max-width: 480px) {
            .lang-switcher {
                margin-left: 10px;
                gap: 5px;
            }
        }

        .lang-btn {
            padding: 8px 14px;
            background: transparent;
            border: 2px solid var(--light);
            border-radius: 20px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
            color: var(--dark);
            font-size: 14px;
            min-width: 44px;
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        @media (max-width: 768px) {
            .lang-btn {
                padding: 6px 12px;
                font-size: 13px;
            }
        }

        @media (max-width: 480px) {
            .lang-btn {
                padding: 6px 10px;
                font-size: 12px;
            }
        }

        .lang-btn.active {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
            box-shadow: 0 2px 8px rgba(30, 64, 175, 0.2);
        }

        .lang-btn:hover:not(.active) {
            border-color: var(--secondary);
            color: var(--secondary);
        }

        /* Hide/Show based on language */
        .lang-zh,
        .lang-en,
        .lang-th {
            display: none !important;
			
        }

        /* Show selected language - use revert to restore default display */
        body.zh .lang-zh {
            display: revert !important;
        }

        body.en .lang-en {
            display: revert !important;
        }

        body.th .lang-th {
            display: revert !important;
			
        }

        /* Special handling for elements that need specific display values */
        body.en .about-copy.lang-en,
        body.th .about-copy.lang-th {
            display: flex !important;
        }

        body.en div.service-desc > .lang-en,
        body.th div.service-desc > .lang-th {
            display: block !important;
        }

        body.zh .lang-zh-inline {
            display: inline;
        }

        /* Language inline display - default English */
        .lang-en-inline {
            display: inline;
        }

        .lang-th-inline,
        .lang-zh-inline {
            display: none;
        }

        /* Thai language active */
        body.th .lang-en-inline,
        body.th .lang-zh-inline {
            display: none;
        }

        body.th .lang-th-inline {
            display: inline;
        }

        /* English language active */
        body.en .lang-th-inline,
        body.en .lang-zh-inline {
            display: none;
        }

        body.en .lang-en-inline {
            display: inline;
        }

/* Loading Screen */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
    margin: 0;
    padding: 0;
}

.loader.hide {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #1e40af;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

        /* ========================================
           COMMON BUTTON STYLES
           ======================================== */
        .btn {
            padding: 18px 45px;
            font-size: 18px;
            font-weight: 600;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            display: inline-block;
            position: relative;
            overflow: hidden;
            z-index: 1;
            color: white;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        body.th .btn {
            font-size: 17px;
            padding: 17px 42px;
        }

        .btn-primary,
        .hero-btn-primary {
            background: #1e40af;
            color: white;
            box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .btn-primary::before,
        .hero-btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: -1;
        }

        .btn-primary:hover::before,
        .hero-btn-primary:hover::before {
            opacity: 1;
        }

        .btn-primary::after,
        .hero-btn-primary::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.6s ease, height 0.6s ease;
            z-index: -1;
        }

        .btn-primary:hover::after,
        .hero-btn-primary:hover::after {
            width: 300px;
            height: 300px;
        }

        .btn-primary:hover,
        .hero-btn-primary:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 15px 35px rgba(30, 64, 175, 0.4);
            background: linear-gradient(135deg, #2563eb, #1e40af);
        }

        .btn-primary:active,
        .hero-btn-primary:active {
            transform: translateY(-2px) scale(1.02);
        }

        .btn-secondary,
        .hero-btn-secondary {
            background: linear-gradient(135deg,
                    rgba(255, 255, 255, 0.2),
                    rgba(255, 255, 255, 0.1));
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: white;
            position: relative;
            overflow: hidden;
        }

        .btn-secondary::before,
        .hero-btn-secondary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: white;
            transition: transform 0.4s ease;
            z-index: -1;
        }

        .btn-secondary:hover::before,
        .hero-btn-secondary:hover::before {
            transform: translateX(100%);
        }

        .btn-secondary:hover,
        .hero-btn-secondary:hover {
            color: #ff6b00;
            border-color: white;
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
        }

        .btn-secondary:hover span,
        .hero-btn-secondary:hover span {
            position: relative;
            z-index: 1;
        }

        .btn-secondary:active,
        .hero-btn-secondary:active {
            transform: translateY(-2px) scale(1.02);
        }

        /* ========================================
           COMMON SECTION STYLES
           ======================================== */

        /* Sections */
        section {
            padding: 25px 0;
        }

        @media (max-width: 968px) {
            section {
                padding: 80px 0;
            }
        }

        @media (max-width: 768px) {
            section {
                padding: 60px 0;
            }
        }

        @media (max-width: 480px) {
            section {
                padding: 50px 0;
            }
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 40px;
        }

        @media (max-width: 768px) {
            .container {
                padding: 0 20px;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 0 15px;
            }
        }

        .section-header {
            text-align: center;
            margin-bottom: 25px;
        }

        @media (max-width: 768px) {
            .section-header {
                margin-bottom: 25px;
            }
        }

        @media (max-width: 480px) {
            .section-header {
                margin-bottom: 25px;
            }
        }

        .section-badge {
            display: inline-block;
            padding: 8px 24px;
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.1));
            border: 2px solid var(--primary);
            border-radius: 50px;
            color: var(--primary);
            font-size: 0.85rem;
            font-weight: 700;
            letter-spacing: 2px;
            margin-bottom: 20px;
            text-transform: uppercase;
            transition: all 0.3s ease;
        }

        @media (max-width: 768px) {
            .section-badge {
                font-size: 0.75rem;
                padding: 6px 20px;
                letter-spacing: 1.5px;
            }
        }

        @media (max-width: 480px) {
            .section-badge {
                font-size: 0.7rem;
                padding: 6px 18px;
                letter-spacing: 1px;
            }
        }

        .section-badge:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white;
        }

        .section-title {
            font-size: 2.5rem;
            font-weight: 700;
            background: #0029ff;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 15px;
            animation: fadeInUp 0.8s ease;
            line-height: 1.2;
			text-shadow:-1px 2px 1px rgb(122 122 122 / 39%);
        }

        section#project {
            background: #efefef;
        }
        body.th .section-title {
            font-size: 2.5rem;
            line-height: 1.4;
        }

        .section-subtitle {
            font-size: 1.2rem;
            line-height: 1.6;
        }

        body.th .section-subtitle {
            font-size: 1.1rem;
            line-height: 1.8;
        }

        .section-subtitle {
            color: var(--gray);
        }

        /* ========================================
           KNOWLEDGE SECTION STYLES
           (Shared grid and card styles)
           ======================================== */

        /* Knowledge Section */
        #knowledge {
            padding: 25px 0;
            background: linear-gradient(357deg, #9b9a9a, #dfdfdf);
        }

        .knowledge-content {
            margin-top: 40px;
            text-align: center;
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
        }

        .knowledge-content > p {
            margin-bottom: 40px;
            font-size: 18px;
            color: var(--gray);
        }

        .knowledge-categories {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        .knowledge-category {
            background: var(--white);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
        }

        .knowledge-category:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        }

        .knowledge-category h3 {
            color: var(--primary);
            margin-bottom: 15px;
            font-size: 20px;
        }

        .knowledge-category p {
            color: var(--gray);
            font-size: 16px;
        }

        .knowledge-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 40px;
        }

        @media (max-width: 768px) {
            .knowledge-grid {
                grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
                gap: 30px;
            }
        }

        @media (max-width: 600px) {
            .knowledge-grid {
                grid-template-columns: 1fr;
                gap: 25px;
            }
        }

        .knowledge-grid-simple {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }

        @media (max-width: 768px) {
            .knowledge-grid-simple {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 600px) {
            .knowledge-grid-simple {
                grid-template-columns: 1fr;
                gap: 20px;
            }
        }

        .knowledge-item-simple {
            background: #dfdfdf;
            border-radius: 2px;
            overflow: hidden;
         //   box-shadow: 0 10px 40px rgba(0,0,0,0.08);
			box-shadow: rgb(201 201 201 / 30%) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
           // border: 2px solid rgba(37, 99, 235, 0.15);
            text-decoration: none;
            color: inherit;
            display: block;
        }

        .knowledge-item-simple:hover {
            transform: translateY(-12px);
       //     box-shadow: 0 25px 70px rgba(37, 99, 235, 0.25);
			box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
        //    border-color: var(--primary);
        }

        .knowledge-item-image {
            position: relative;
            height: 250px;
            overflow: hidden;
           // background: #f3f4f6;
        }

        .knowledge-item-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .knowledge-item-image canvas {
            display: none;
            width: 100%;
            height: 100%;
        }

        .knowledge-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
            color: #64748b;
            font-size: 3rem;
        }

        .pdf-loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #1e40af;
            font-size: 2rem;
            z-index: 1;
        }

        .pdf-loading.pdf-error {
            color: #94a3b8;
        }

        .pdf-loading.pdf-error i {
            font-size: 3rem;
        }

        .knowledge-item-title {
            padding: 15px;
            margin: 0;
            font-size: 1rem;
            font-weight: 600;
            color: var(--dark);
            line-height: 1.4;
            text-align: center;
        }

        body.th .knowledge-item-title {
            font-size: 0.95rem;
        }

        .knowledge-card-link {
            text-decoration: none;
            color: inherit;
            display: block;
        }

        .knowledge-card {
            background: white;
            border-radius: 4px;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0,0,0,0.08);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            height: 100%;
            border: 2px solid rgba(37, 99, 235, 0.15);
            position: relative;
            display: flex;
            flex-direction: column;
        }

        .knowledge-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.4s ease;
        }

        .knowledge-card:hover::before {
            transform: scaleX(1);
        }

        .knowledge-card-image {
            width: 100%;
            height: 220px;
            overflow: hidden;
        }

        .knowledge-card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .knowledge-card:hover {
            transform: translateY(-12px);
            box-shadow: 0 25px 70px rgba(37, 99, 235, 0.25);
            border-color: var(--primary);
        }

        @media (max-width: 768px) {
            .knowledge-card-image img {
                height: 200px;
            }
        }

        @media (max-width: 480px) {
            .knowledge-card-image img {
                height: 180px;
            }
        }

        .knowledge-card-content {
            padding: 8px;
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .knowledge-card-meta {
            margin-top: auto;
            text-align: right;
        }

        .knowledge-card-content .read-more {
            display: inline-flex;
        }

        @media (max-width: 768px) {
            .knowledge-card-content {
                padding: 8px;
            }
        }

        @media (max-width: 480px) {
            .knowledge-card-content {
                padding: 8px;
            }
        }

        .knowledge-card-title {
            font-size: 1.4rem;
            margin-bottom: 15px;
            font-weight: 700;
            line-height: 1.4;
            color: var(--dark);
        }

        body.th .knowledge-card-title {
            font-size: 1.3rem;
            line-height: 1.6;
        }

        .knowledge-card-summary {
            color: var(--gray);
            margin-bottom: 20px;
            line-height: 1.7;
            font-size: 1rem;
        }

        body.th .knowledge-card-summary {
            font-size: 0.95rem;
            line-height: 1.8;
        }

        .knowledge-card-pdfs {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            background: #eff6ff;
            color: #1e40af;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 15px;
            transition: all 0.3s ease;
            cursor: pointer;
            border-radius: 4px;
        }

        .knowledge-card-pdfs i {
            font-size: 1rem;
            color: #1e40af;
        }

        .knowledge-card-pdfs:hover {
            background: #1e40af;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(30, 64, 175, 0.3);
        }

        .knowledge-card-pdfs:hover i {
            color: white;
        }

        .knowledge-card:hover .knowledge-card-pdfs {
            background: #1e40af;
            color: white;
        }

        .knowledge-card:hover .knowledge-card-pdfs i {
            color: white;
        }

        body.th .knowledge-card-pdfs {
            font-size: 0.8rem;
        }

        .read-more {
            font-weight: 700;
            color: var(--secondary);
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: all 0.3s ease;
        }

        .knowledge-card:hover .read-more {
            gap: 10px;
            color: var(--primary);
        }

        /* View All Articles Button - Mobile Responsive */
        @media (max-width: 768px) {
            #knowledge .btn-primary {
                padding: 12px 32px !important;
                font-size: 15px !important;
            }
        }

        @media (max-width: 480px) {
            #knowledge .btn-primary {
                padding: 12px 28px !important;
                font-size: 14px !important;
                width: 100%;
                max-width: 300px;
            }
        }
