:root {
    /* OSX Light Theme Variables */
    --primary-color-light: #007aff;
    --primary-color-rgb-light: 0, 122, 255;
    --secondary-color-light: #005ecb;
    --text-color-light: #2c2c2e; /* Slightly softer black */
    --heading-color-light: #000000; /* Darker for headings */
    --muted-text-color-light: #5f5f63; /* Adjusted for Prompt readability */
    --bg-main-light: #ffffff;
    --bg-alt-light: #f8f8fa; /* Slightly brighter alt background */
    --border-color-light: #dcdce0; /* Softer border */
    --card-shadow-light: 0 5px 15px rgba(0, 0, 0, 0.06);
    --card-hover-shadow-light: 0 8px 25px rgba(0, 0, 0, 0.09);
    --navbar-bg-light: rgba(252, 252, 253, 0.75);
    --navbar-scrolled-bg-light: rgba(249, 249, 250, 0.85);
    --navbar-link-hover-text-light: var(--primary-color-light);
    --navbar-link-active-text-light: var(--primary-color-light);
    --navbar-link-mobile-hover-bg-light: rgba(0,122,255,0.07);

    /* Hero Specific Light V4.51 */
    --hero-bg-image-url:url("/img/header_3.webp");
    --hero-bg-blur-light: 2px;
    --hero-overlay-color-light: rgba(255, 255, 255, 0.4);
    --hero-heading-color-light: #0B213F; /* Fallback, gradient will be used */
    --hero-headline-text-color-light: #0B213F;
    --hero-paragraph-color-light: var(--heading-color-light);
    --hero-btn-primary-bg-light: var(--primary-color-light);
    --hero-btn-primary-text-light: #ffffff;
    --hero-btn-outline-border-light: var(--primary-color-light);
    --hero-btn-outline-text-light: var(--primary-color-light);
    --hero-btn-outline-hover-bg-light: var(--primary-color-light);
    --hero-btn-outline-hover-text-light: #ffffff;
    --hero-text-gradient-start-light: #004A7F; /* Medium Dark Blue */
    --hero-text-gradient-mid-light:  var(--primary-color-light);   /* Brighter Blue */
    --hero-text-gradient-end-light: #003366;  /* Bright Cyan-ish Blue */
    --hero-text-glow-color-light: rgba(var(--primary-color-rgb-light), 0.25); /* Subtle blue glow */

    --map-filter-light: grayscale(0.1) contrast(0.95) brightness(1.0);
    --footer-bg-light: var(--bg-alt-light);
    --footer-text-light: var(--muted-text-color-light);
    --footer-link-bg-light: rgba(0, 0, 0, 0.03);
    --footer-link-hover-bg-light: rgba(0, 122, 255, 0.08);
    --footer-border-light: var(--border-color-light);
    --btn-primary-hover-bg-light: var(--secondary-color-light);
    --btn-primary-hover-border-light: var(--secondary-color-light);
    --btn-outline-hover-bg-light: var(--primary-color-light);
    --btn-outline-hover-text-light: #ffffff;
    --back-to-top-hover-bg-light: #0069d9;
    --back-to-top-hover-shadow-light: 0 5px 15px rgba(0, 105, 217, 0.25);

    --tab-nav-link-bg-hover-light: rgba(0, 122, 255, 0.05);
    --tab-nav-link-active-bg-light: rgba(0, 122, 255, 0.08);
    --tab-nav-link-active-border-light: var(--primary-color-light);
    --tab-content-bg-light: var(--bg-main-light); /* Changed to main for better contrast with alt sections */

    /* OSX Dark Theme Variables */
    --primary-color-dark: #0b84fe; /* Slightly adjusted dark primary */
    --primary-color-rgb-dark: 11, 132, 254;
    --secondary-color-dark: #0060df;
    --text-color-dark: #e0e0e5; /* Lighter text for dark mode */
    --heading-color-dark: #fcfcfd; /* Almost white for headings */
    --muted-text-color-dark: #a0a0a5; /* Adjusted muted for dark */
    --bg-main-dark: #1b1b1d; /* Darker main background */
    --bg-alt-dark: #252527; /* Darker alt background */
    --border-color-dark: #424245; /* Softer dark border */
    --card-shadow-dark: 0 6px 18px rgba(0, 0, 0, 0.25);
    --card-hover-shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.3);
    --navbar-bg-dark: rgba(25, 25, 27, 0.75);
    --navbar-scrolled-bg-dark: rgba(20, 20, 22, 0.85);
    --navbar-link-hover-bg-dark: rgba(11,132,254,0.15);
    --navbar-link-active-bg-dark: rgba(11,132,254,0.2);
    --accent-color-dark: #61dafb;
    --accent-color-dark-rgb: 97, 218, 251;


    /* Hero Specific Dark V4.51 */
    --hero-bg-blur-dark: 1px;
    --hero-overlay-color-dark: rgba(0, 5, 15, 0.78);
    --hero-heading-color-dark: #ffffff;
    --hero-paragraph-color-dark: rgba(240, 240, 245, 0.90);
    --hero-btn-primary-bg-dark: var(--primary-color-dark);
    --hero-btn-primary-text-dark: #ffffff;
    --hero-btn-outline-border-dark: rgba(255,255,255,0.6);
    --hero-btn-outline-text-dark: rgba(255,255,255,0.88);
    --hero-btn-outline-hover-bg-dark: rgba(255,255,255,0.9);
    --hero-btn-outline-hover-text-dark: var(--primary-color-dark);
    --hero-text-gradient-start-dark: var(--primary-color-dark);
    --hero-text-gradient-mid-dark: #40c9ff;
    --hero-text-gradient-end-dark: var(--accent-color-dark);
    --hero-text-glow-color-dark: rgba(var(--accent-color-dark-rgb), 0.4);


    --map-filter-dark: grayscale(0.75) invert(1) contrast(0.85) brightness(0.9);
    --footer-bg-dark: var(--bg-main-dark);
    --footer-text-dark: var(--muted-text-color-dark);
    --footer-link-bg-dark: rgba(255, 255, 255, 0.06);
    --footer-link-hover-bg-dark: rgba(11, 132, 254, 0.15);
    --footer-border-dark: var(--border-color-dark);
    --btn-primary-hover-bg-dark: var(--secondary-color-dark);
    --btn-primary-hover-border-dark: var(--secondary-color-dark);
    --btn-outline-hover-bg-dark: var(--primary-color-dark);
    --btn-outline-hover-text-dark: #ffffff;
    --back-to-top-hover-bg-dark: var(--secondary-color-dark);
    --back-to-top-hover-shadow-dark: 0 6px 15px rgba(0,0,0,0.4);

    --tab-nav-link-bg-hover-dark: rgba(11, 132, 254, 0.15);
    --tab-nav-link-active-bg-dark: rgba(11, 132, 254, 0.2);
    --tab-nav-link-active-border-dark: var(--primary-color-dark);
    --tab-content-bg-dark: var(--bg-main-dark); /* Changed to main for dark */

    /* Universal variables */
    --primary-color: var(--primary-color-light);
    --primary-color-rgb: var(--primary-color-rgb-light);
    --secondary-color: var(--secondary-color-light);
    --text-color: var(--text-color-light);
    --heading-color: var(--heading-color-light);
    --muted-text-color: var(--muted-text-color-light);
    --bg-main: var(--bg-main-light);
    --bg-alt: var(--bg-alt-light);
    --border-color: var(--border-color-light);
    --card-shadow: var(--card-shadow-light);
    --card-hover-shadow: var(--card-hover-shadow-light);
    --navbar-bg: var(--navbar-bg-light);
    --navbar-scrolled-bg: var(--navbar-scrolled-bg-light);
    --navbar-link-hover-bg: var(--navbar-link-mobile-hover-bg-light);
    --navbar-link-active-bg: var(--navbar-link-mobile-hover-bg-light);

    --hero-bg-blur: var(--hero-bg-blur-light);
    --hero-overlay-color: var(--hero-overlay-color-light);
    --hero-heading-color: var(--hero-heading-color-light);
    --hero-paragraph-color: var(--hero-paragraph-color-light);
    --hero-btn-primary-bg: var(--hero-btn-primary-bg-light);
    --hero-btn-primary-text: var(--hero-btn-primary-text-light);
    --hero-btn-outline-border: var(--hero-btn-outline-border-light);
    --hero-btn-outline-text: var(--hero-btn-outline-text-light);
    --hero-btn-outline-hover-bg: var(--hero-btn-outline-hover-bg-light);
    --hero-btn-outline-hover-text: var(--hero-btn-outline-hover-text-light);
    --hero-text-gradient-start: var(--hero-text-gradient-start-light);
    --hero-text-gradient-mid: var(--hero-text-gradient-mid-light);
    --hero-text-gradient-end: var(--hero-text-gradient-end-light);
    --hero-text-glow-color: var(--hero-text-glow-color-light);

    --map-filter: var(--map-filter-light);
    --footer-bg: var(--footer-bg-light);
    --footer-text: var(--footer-text-light);
    --footer-link-bg: var(--footer-link-bg-light);
    --footer-link-hover-bg: var(--footer-link-hover-bg-light);
    --footer-border: var(--footer-border-light);
    --btn-primary-hover-bg: var(--btn-primary-hover-bg-light);
    --btn-primary-hover-border: var(--btn-primary-hover-border-light);
    --btn-outline-hover-bg: var(--btn-outline-hover-bg-light);
    --btn-outline-hover-text: var(--btn-outline-hover-text-light);
    --back-to-top-hover-bg: var(--back-to-top-hover-bg-light);
    --back-to-top-hover-shadow: var(--back-to-top-hover-shadow-light);

    --tab-nav-link-bg-hover: var(--tab-nav-link-bg-hover-light);
    --tab-nav-link-active-bg: var(--tab-nav-link-active-bg-light);
    --tab-nav-link-active-border: var(--tab-nav-link-active-border-light);
    --tab-content-bg: var(--tab-content-bg-light);
/*    Modal*/


    /* Modal Specific Variables (using universal variables) - ตัวแปรเฉพาะ Modal (ใช้ตัวแปรสากล) */
    /* ตัวแปรเหล่านี้จะใช้ค่าจากตัวแปรสากลด้านบน ทำให้ Modal เข้ากับ Theme ของ User */
    --modal-backdrop-bg-custom: rgba(20, 30, 40, 0.15);
    --modal-service-guarantee-bg: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --modal-service-guarantee-text-color: #ffffff;
    --modal-service-guarantee-shadow: rgba(var(--primary-color-rgb), 0.2);
    --modal-brand-list-bg: transparent;
    --modal-brand-list-border: transparent;
    --modal-brand-badge-bg: rgba(var(--primary-color-rgb), 0.08);
    --modal-brand-badge-text: var(--primary-color);
    --modal-brand-badge-border: rgba(var(--primary-color-rgb), 0.3);
    --modal-brand-badge-hover-bg: rgba(var(--primary-color-rgb), 0.15);
    --modal-header-btn-close-hover-bg-light: rgba(220, 53, 69, 0.1);
    --modal-header-btn-close-hover-color-light: #dc3545;
    --modal-header-btn-close-hover-bg: var(--modal-header-btn-close-hover-bg-light);
    --modal-header-btn-close-hover-color: var(--modal-header-btn-close-hover-color-light);
    /* Theme Switcher Variables (Light) - ตัวแปรปุ่มสลับ Theme (Light) */
    --theme-switcher-bg: #ffffff;
    --theme-switcher-color: var(--primary-color);
    --theme-switcher-shadow: rgba(37, 56, 88, 0.1);
    --theme-switcher-border: var(--primary-color);

    /* Font Weights - ความหนาตัวอักษร */
    --heading-font-weight: 600; /* Prompt SemiBold for headings */
    --body-font-weight: 300;    /* Prompt Light for body text */
    --button-font-weight: 500;  /* Prompt Medium for buttons */


    /* NEW: Variables for "Close Window" button hover (Dark Theme) - ตัวแปรใหม่สำหรับ Hover ปุ่ม "ปิดหน้าต่าง" (Dark Theme) */
    --modal-btn-close-window-hover-border-color: #e74c3c; /* A slightly brighter red for dark theme - สีแดงที่สว่างขึ้นเล็กน้อยสำหรับ Dark Theme */
    --modal-btn-close-window-hover-text-color: #e74c3c;
/*    Modal*/
}

html[data-theme="dark"] {
    --primary-color: var(--primary-color-dark);
    --primary-color-rgb: var(--primary-color-rgb-dark);
    --secondary-color: var(--secondary-color-dark);
    --text-color: var(--text-color-dark);
    --heading-color: var(--heading-color-dark);
    --muted-text-color: var(--muted-text-color-dark);
    --bg-main: var(--bg-main-dark);
    --bg-alt: var(--bg-alt-dark);
    --border-color: var(--border-color-dark);
    --card-shadow: var(--card-shadow-dark);
    --card-hover-shadow: var(--card-hover-shadow-dark);
    --navbar-bg: var(--navbar-bg-dark);
    --navbar-scrolled-bg: var(--navbar-scrolled-bg-dark);
    --navbar-link-hover-bg: var(--navbar-link-hover-bg-dark);
    --navbar-link-active-bg: var(--navbar-link-active-bg-dark);



    --map-filter: var(--map-filter-dark);
    --footer-bg: var(--footer-bg-dark);
    --footer-text: var(--footer-text-dark);
    --footer-link-bg: var(--footer-link-bg-dark);
    --footer-link-hover-bg: var(--footer-link-hover-bg-dark);
    --footer-border: var(--footer-border-dark);
    --btn-primary-hover-bg: var(--btn-primary-hover-bg-dark);
    --btn-primary-hover-border: var(--btn-primary-hover-border-dark);
    --btn-outline-hover-bg: var(--btn-outline-hover-bg-dark);
    --btn-outline-hover-text: var(--btn-outline-hover-text-dark);
    --back-to-top-hover-bg: var(--back-to-top-hover-bg-dark);
    --back-to-top-hover-shadow: var(--back-to-top-hover-shadow-dark);

    --tab-nav-link-bg-hover: var(--tab-nav-link-bg-hover-dark);
    --tab-nav-link-active-bg: var(--tab-nav-link-active-bg-dark);
    --tab-nav-link-active-border: var(--tab-nav-link-active-border-dark);
    --tab-content-bg: var(--tab-content-bg-dark);
    --modal-backdrop-bg-custom: rgba(0, 0, 0, 0.3);
    --modal-service-guarantee-bg: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --modal-service-guarantee-text-color: var(--bg-main);
    --modal-service-guarantee-shadow: rgba(var(--primary-color-rgb), 0.25);
    --modal-brand-badge-bg: rgba(var(--primary-color-rgb), 0.1);
    --modal-brand-badge-text: var(--primary-color);
    --modal-brand-badge-border: rgba(var(--primary-color-rgb), 0.4);
    --modal-brand-badge-hover-bg: rgba(var(--primary-color-rgb), 0.2);
    --modal-btn-close-window-hover-border-color: #e74c3c;
    --modal-btn-close-window-hover-text-color: #e74c3c;

    --hero-bg-blur: var(--hero-bg-blur-dark);
    --hero-overlay-color: var(--hero-overlay-color-dark);
    --hero-heading-color: var(--hero-heading-color-dark);
    --hero-paragraph-color: var(--hero-paragraph-color-dark);
    --hero-btn-primary-bg: var(--hero-btn-primary-bg-dark);
    --hero-btn-primary-text: var(--hero-btn-primary-text-dark);
    --hero-btn-outline-border: var(--hero-btn-outline-border-dark);
    --hero-btn-outline-text: var(--hero-btn-outline-text-dark);
    --hero-btn-outline-hover-bg: var(--hero-btn-outline-hover-bg-dark);
    --hero-btn-outline-hover-text: var(--hero-btn-outline-hover-text-dark);
    --hero-text-gradient-start: var(--hero-text-gradient-start-dark);
    --hero-text-gradient-mid: var(--hero-text-gradient-mid-dark);
    --hero-text-gradient-end: var(--hero-text-gradient-end-dark);
    --hero-text-glow-color: var(--hero-text-glow-color-dark);

    /* Variables for Modal Header Close Button (X) Hover (Dark Theme) - ตัวแปรสำหรับ Hover ปุ่มปิด Modal (X) ใน Header (Dark Theme) */
    --modal-header-btn-close-hover-bg-dark: rgba(231, 76, 60, 0.2);
    --modal-header-btn-close-hover-color-dark: #e74c3c;
    --modal-header-btn-close-hover-bg: var(--modal-header-btn-close-hover-bg-dark);
    --modal-header-btn-close-hover-color: var(--modal-header-btn-close-hover-color-dark);
}

body {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* Primary font set to Prompt */
    scroll-behavior: smooth;
    font-size: 1rem; /* Base font size for Prompt */
    background-color: var(--bg-main);
    color: var(--text-color);
    line-height: 1.75; /* Adjusted for Prompt */
    font-weight: 300; /* Prompt Light for body text */
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Prompt', sans-serif; /* Ensure headings also use Prompt */
    font-weight: 600; /* Prompt SemiBold for headings */
    color: var(--heading-color);
    transition: color 0.3s ease;
    letter-spacing: -0.01em; /* Slight adjustment for Prompt */
}
h1 { font-weight: 700; /* Prompt Bold for H1 */ }
h3 { font-size: clamp(1.5rem, 4vw, 1.8rem); } /* Adjusted h3 size for Prompt */

p {
    margin-bottom: 1.25rem;
    font-weight: 300; /* Prompt Light */
    line-height: 1.8; /* Adjusted for Prompt */
}
b, strong { font-weight: 500; /* Prompt Medium for emphasis */ }

.btn { font-weight: 500; /* Prompt Medium for buttons */ }

/* Navbar */
.navbar { background-color: var(--navbar-bg); backdrop-filter: blur(12px) saturate(180%); -webkit-backdrop-filter: blur(12px) saturate(180%); box-shadow: 0 1px 0 var(--border-color); padding-top: 0.75rem; padding-bottom: 0.75rem; transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease; }
.navbar.scrolled { background-color: var(--navbar-scrolled-bg); box-shadow: 0 1px 0 var(--border-color), 0 2px 8px rgba(0,0,0,0.05); html[data-theme="dark"] & { box-shadow: 0 1px 0 var(--border-color), 0 2px 8px rgba(0,0,0,0.15); } }
.navbar-brand img { width: 100%; max-height: 50px; transition: max-height 0.3s ease; }
.navbar-brand img{border-radius: 8px;}
.navbar.scrolled .navbar-brand img { max-height: 38px; }
.navbar-nav .nav-link { color: var(--text-color); font-weight: 400; /* Prompt Regular for nav links */ padding: 0.6rem 1rem; transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease; position: relative; border-radius: 20px; margin: 0 0.2rem; }
.navbar-nav .nav-link::after { content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%) scaleX(0); width: 60%; height: 2px; background-color: var(--primary-color); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.navbar-nav .nav-link.active::after, .navbar-nav .nav-link:hover::after { transform: translateX(-50%) scaleX(1); }
.navbar-nav .nav-link:hover { color: var(--navbar-link-hover-text-light); html[data-theme="dark"] & { color: var(--primary-color-dark); } background-color: transparent; transform: translateY(-1px); }
.navbar-nav .nav-link.active { color: var(--navbar-link-active-text-light); html[data-theme="dark"] & { color: var(--primary-color-dark); } font-weight: 500; /* Prompt Medium for active nav link */ background-color: transparent; box-shadow: none; }
@media (max-width: 991.98px) { .navbar-nav .nav-link { display: block; width: 100%; text-align: left; padding: 0.75rem 1rem; margin: 0.25rem 0; border-radius: 8px; } .navbar-nav .nav-link::after { display: none; } .navbar-nav .nav-link:hover { background-color: var(--navbar-link-hover-bg); transform: none; color: var(--primary-color); } .navbar-nav .nav-link.active { background-color: var(--navbar-link-active-bg); color: var(--primary-color); font-weight: 500; /* Prompt Medium for active mobile */ box-shadow: none; } }

.navbar-toggler { border: none; background: transparent !important; padding: 0.25rem 0; width: 30px; height: 24px; position: relative; transition: transform 0.3s ease-out; display: none; }
@media (max-width: 991.98px) { .navbar-toggler { display: block; } }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler .toggler-icon-bar { display: block; position: absolute; height: 2px; width: 100%; background: var(--heading-color); border-radius: 1px; opacity: 1; left: 0; transform: rotate(0deg); transition: .25s ease-in-out; }
html[data-theme="dark"] .navbar-toggler .toggler-icon-bar { background: var(--heading-color-dark); }
.navbar-toggler .toggler-icon-bar:nth-child(1) { top: 0px; } .navbar-toggler .toggler-icon-bar:nth-child(2) { top: 10px; } .navbar-toggler .toggler-icon-bar:nth-child(3) { top: 20px; }
.navbar-toggler[aria-expanded="true"] .toggler-icon-bar:nth-child(1) { top: 10px; transform: rotate(135deg); } .navbar-toggler[aria-expanded="true"] .toggler-icon-bar:nth-child(2) { opacity: 0; transform: translateX(-100%); } .navbar-toggler[aria-expanded="true"] .toggler-icon-bar:nth-child(3) { top: 10px; transform: rotate(-135deg); }
.navbar-toggler:hover { transform: scale(1.1); }

.theme-toggle-button { background: transparent; border: 1px solid transparent; color: var(--text-color); font-size: 1.3rem; cursor: pointer; padding: 0; margin-left: 15px; border-radius: 8px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; transition: color 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease; }
.theme-toggle-button:hover {
    color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.08);
    transform: scale(1.15) translateY(-1px); /* Updated hover effect */
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.15); /* Updated shadow */
}
.theme-toggle-button .bx { transition: opacity 0.3s ease-in-out, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
#theme-icon-moon.d-none ~ #theme-icon-sun, #theme-icon-sun.d-none ~ #theme-icon-moon { transform: rotate(0deg); }
#theme-icon-sun { transform: scale(1) rotate(0deg); } #theme-icon-moon { transform: scale(0) rotate(-90deg); }
html[data-theme="dark"] #theme-icon-sun { transform: scale(0) rotate(90deg); } html[data-theme="dark"] #theme-icon-moon { transform: scale(1) rotate(0deg); }


section { padding: 80px 0; transition: background-color 0.3s ease; }
.section-title { text-align: center; margin-bottom: 50px; font-weight: 700; /* Prompt Bold */ font-size: clamp(2rem, 5vw, 2.5rem); position: relative; }
.section-title::after { content: ''; position: absolute; display: block; width: 50px; height: 3px; background: var(--primary-color); bottom: -12px; left: calc(50% - 20px); border-radius: 1.5px; }
.section-subtitle { text-align: center; color: var(--muted-text-color); font-size: clamp(1rem, 2vw, 1.1rem); margin-top: -35px; margin-bottom: 50px; max-width: 700px; margin-left: auto; margin-right: auto; font-weight: 300; /* Prompt Light */ line-height: 1.8; }

#about { background-color: var(--bg-alt); }
#about .content h3 { font-weight: 600; /* Prompt SemiBold */ font-size: clamp(1.6rem, 4vw, 1.8rem); margin-bottom: 1.25rem; } /* Adjusted h3 size */
#about .content p { font-weight: 300; /* Prompt Light */ font-size: 1rem; line-height: 1.8; }
#about .img-fluid { border-radius: 12px; box-shadow: var(--card-shadow); }
#about .btn-primary { border-radius: 8px; padding: 10px 28px; font-weight: 500; /* Prompt Medium */ transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
#about .btn-primary:hover { background-color: var(--btn-primary-hover-bg); border-color: var(--btn-primary-hover-border); transform: translateY(-2px); }

#why-choose-us { background-color: var(--bg-main); }
#why-choose-us .content h3 { font-weight: 600; /* Prompt SemiBold */ font-size: clamp(1.6rem, 4vw, 1.8rem); margin-bottom: 1.25rem; }
#why-choose-us .content .list-unstyled { padding-left: 0; }
#why-choose-us .content .list-unstyled li.lead { font-size: 1rem; margin-bottom: 0.75rem; color: var(--text-color); line-height: 1.8; font-weight: 300; /* Prompt Light */ display: flex; align-items: flex-start; }
#why-choose-us .content .list-unstyled li.lead i.bx { font-size: 1.2em; margin-right: 0.5em; margin-top: 0.15em; flex-shrink: 0; }
#why-choose-us .content .lead b.text-primary { font-weight: 500; /* Prompt Medium for emphasis */ }
#why-choose-us .img-fluid { border-radius: 12px; box-shadow: var(--card-shadow); }
#why-choose-us .btn-primary { border-radius: 8px; padding: 10px 28px; font-weight: 500; /* Prompt Medium */ transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
#why-choose-us .btn-primary:hover { background-color: var(--btn-primary-hover-bg); border-color: var(--btn-primary-hover-border); transform: translateY(-2px); }

#services { background-color: var(--bg-alt); }
.service-card { background-color: var(--bg-main); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: var(--card-shadow); transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease; height: 100%; display: flex; flex-direction: column; padding: 30px; text-align: center; }
.service-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: var(--card-hover-shadow); border-color: var(--primary-color); }
.service-card .icon-box { width: 56px; height: 56px; margin: 0 auto 20px auto; background-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: #ffffff; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 2rem; transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease; box-shadow: 0 4px 10px rgba(var(--primary-color-rgb), 0.25); }
.service-card:hover .icon-box {
    transform: scale(1.18) translateY(-6px); /* Updated hover effect */
    box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.35); /* Updated shadow */
}
.service-card .card-title { font-weight: 500; /* Prompt Medium */ margin-bottom: 12px; font-size: 1.25rem; }
.service-card .card-text { color: var(--muted-text-color); font-size: 0.9rem; line-height: 1.7; font-weight: 300; /* Prompt Light */ }

#system-overview-showcase { background-color: var(--bg-main); }
#system-overview-showcase .img-fluid { border: 1px solid var(--border-color); max-width: 100%; height: auto; max-height: 550px; width: auto; margin: 0 auto; display: block; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
#system-overview-showcase .img-fluid:hover { transform: scale(1.03); box-shadow: var(--card-hover-shadow); }

/* Modern Modal Styles for Image Gallery */
#systemOverviewModal .modal-dialog { max-width: 90vw; }
@media (min-width: 992px) { #systemOverviewModal .modal-dialog { max-width: 1140px; } }
.modern-modal-content { background-color: var(--bg-main); border-radius: 10px; border: none; box-shadow: 0 15px 45px rgba(0,0,0,0.2); overflow: hidden; }
html[data-theme="dark"] .modern-modal-content { background-color: var(--bg-alt-dark); }
.modern-modal-close-btn { position: absolute; top: 15px; right: 15px; z-index: 1056; padding: 0.5rem; background-color: rgba(var(--bg-main-rgb, 255,255,255),0.7); border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.1); opacity: 0.8; transition: opacity 0.2s ease, background-color 0.2s ease; }
.modern-modal-close-btn:hover { opacity: 1; background-color: rgba(var(--bg-main-rgb, 255,255,255),0.9); }
html[data-theme="dark"] .modern-modal-close-btn { background-color: rgba(var(--bg-main-rgb-dark, 30,30,30),0.7); filter: invert(1) grayscale(100%) brightness(150%); }
html[data-theme="dark"] .modern-modal-close-btn:hover { background-color: rgba(var(--bg-main-rgb-dark, 30,30,30),0.9); }
#systemOverviewModal .modal-body { padding: 1.5rem; /* Added padding for a frame */ overflow: hidden; }
.modal-image-zoom-container { width: 100%; height: auto; max-height: calc(88vh - 3rem); /* Adjusted for body padding */ display: flex; align-items: center; justify-content: center; overflow: hidden; /* Removed background, will use modal-body's */ }
.modal-zoomable-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: zoom-in; }
.modal-image-zoom-container:hover .modal-zoomable-image:not(.zoomed) { transform: scale(1.15); } /* Zoom on hover only if not clicked-zoomed */
.modal-zoomable-image.zoomed { transform: scale(1.5); cursor: zoom-out; }


#custom-tabs-section { background-color: var(--bg-alt); padding-top: 40px; padding-bottom: 60px; }
#custom-tabs-section .nav-tabs { border-bottom: 2px solid var(--border-color); margin-bottom: 2rem; flex-wrap: nowrap; overflow-x: auto ; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
#custom-tabs-section .nav-tabs::-webkit-scrollbar { display: none; }
#custom-tabs-section .nav-item { margin-bottom: -2px; }
#custom-tabs-section .nav-link { color: var(--muted-text-color); background-color: transparent; border: none; border-bottom: 2px solid transparent; padding: 0.8rem 1.25rem; font-weight: 400; /* Prompt Regular */ font-size: clamp(0.9rem, 1.8vw, 1rem); white-space: nowrap; transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease; }
#custom-tabs-section .nav-link i.bx { vertical-align: middle; margin-right: 0.3em; font-size: 1.2em; }
#custom-tabs-section .nav-link:hover { color: var(--primary-color); background-color: var(--tab-nav-link-bg-hover); border-bottom-color: var(--primary-color); }
#custom-tabs-section .nav-link.active { color: var(--primary-color); font-weight: 500; /* Prompt Medium */ background-color: var(--tab-nav-link-active-bg); border-bottom-color: var(--tab-nav-link-active-border); }
#custom-tabs-section .tab-content { background-color: var(--tab-content-bg); padding: 2rem; border-radius: 8px; border: 1px solid var(--border-color); margin-top: -1px; box-shadow: var(--card-shadow-light); }
html[data-theme="dark"] #custom-tabs-section .tab-content { background-color: var(--tab-content-bg-dark); box-shadow: var(--card-shadow-dark); }
#custom-tabs-section .tab-pane h4 { font-weight: 500; /* Prompt Medium */ margin-bottom: 1rem; }
#custom-tabs-section .tab-pane p { font-weight: 300; /* Prompt Light */ line-height: 1.8; margin-bottom: 1rem; }
#custom-tabs-section .tab-pane ul { list-style: none; padding-left: 0; margin-bottom: 1.5rem; }
#custom-tabs-section .tab-pane ul li { padding-left: 0; position: relative; margin-bottom: 0.6rem; font-weight: 300; /* Prompt Light */ display: flex; align-items: flex-start;}
#custom-tabs-section .tab-pane ul li i.bx { vertical-align: middle; margin-right: 0.5rem; color: var(--primary-color); font-size: 1.1em; margin-top: 0.15em; flex-shrink: 0;}
#custom-tabs-section .tab-pane img.tab-main-image { width: 100%; max-height: 400px; object-fit: contain; border-radius: 6px; margin-bottom: 1.5rem; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
html[data-theme="dark"] #custom-tabs-section .tab-pane img.tab-main-image { box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
#custom-tabs-section .tab-pane .btn-view-all { border-radius: 20px; padding: 0.5rem 1.2rem; font-weight: 500; /* Prompt Medium */ font-size: 0.9rem; border-color: var(--primary-color); color: var(--primary-color); background-color: transparent; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); display: inline-flex; align-items: center; }
#custom-tabs-section .tab-pane .btn-view-all:hover { background-color: var(--primary-color); color: #ffffff; transform: translateY(-2px) scale(1.03); box-shadow: 0 4px 10px rgba(var(--primary-color-rgb), 0.2); }
#custom-tabs-section .tab-pane .btn-view-all .bx { font-size: 1.1em; line-height: 1; }
@media (max-width: 767.98px) { #custom-tabs-section .nav-link { padding: 0.7rem 1rem; } #custom-tabs-section .tab-content { padding: 1.5rem; } }

#product-tabs-section { background-color: var(--bg-alt); padding-top: 40px; padding-bottom: 60px; }
#product-tabs-section .nav-tabs { border-bottom: 2px solid var(--border-color); margin-bottom: 2rem; flex-wrap: nowrap; overflow-x: auto ; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
#product-tabs-section.nav-tabs::-webkit-scrollbar { display: none; }
#product-tabs-section .nav-item { margin-bottom: -2px; }
#product-tabs-section .nav-link { color: var(--muted-text-color); background-color: transparent; border: none; border-bottom: 2px solid transparent; padding: 0.8rem 1.25rem; font-weight: 400; /* Prompt Regular */ font-size: clamp(0.9rem, 1.8vw, 1rem); white-space: nowrap; transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease; }
#product-tabs-section .nav-link i.bx { vertical-align: middle; margin-right: 0.3em; font-size: 1.2em; }
#product-tabs-section .nav-link:hover { color: var(--primary-color); background-color: var(--tab-nav-link-bg-hover); border-bottom-color: var(--primary-color); }
#product-tabs-section .nav-link.active { color: var(--primary-color); font-weight: 500; /* Prompt Medium */ background-color: var(--tab-nav-link-active-bg); border-bottom-color: var(--tab-nav-link-active-border); }
#product-tabs-section.tab-content { background-color: var(--tab-content-bg); padding: 2rem; border-radius: 8px; border: 1px solid var(--border-color); margin-top: -1px; box-shadow: var(--card-shadow-light); }
html[data-theme="dark"] #custom-tabs-section .tab-content { background-color: var(--tab-content-bg-dark); box-shadow: var(--card-shadow-dark); }
#product-tabs-section .tab-pane h4 { font-weight: 500; /* Prompt Medium */ margin-bottom: 1rem; }
#product-tabs-section .tab-pane p { font-weight: 300; /* Prompt Light */ line-height: 1.8; margin-bottom: 1rem; }
#product-tabs-section .tab-pane ul { list-style: none; padding-left: 0; margin-bottom: 1.5rem; }
#product-tabs-section.tab-pane ul li { padding-left: 0; position: relative; margin-bottom: 0.6rem; font-weight: 300; /* Prompt Light */ display: flex; align-items: flex-start;}
#product-tabs-section .tab-pane ul li i.bx { vertical-align: middle; margin-right: 0.5rem; color: var(--primary-color); font-size: 1.1em; margin-top: 0.15em; flex-shrink: 0;}
#product-tabs-section.tab-pane img.tab-main-image { width: 100%; max-height: 400px; object-fit: contain; border-radius: 6px; margin-bottom: 1.5rem; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
html[data-theme="dark"] #custom-tabs-section .tab-pane img.tab-main-image { box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
#product-tabs-section .tab-pane .btn-view-all { border-radius: 20px; padding: 0.5rem 1.2rem; font-weight: 500; /* Prompt Medium */ font-size: 0.9rem; border-color: var(--primary-color); color: var(--primary-color); background-color: transparent; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); display: inline-flex; align-items: center; }
#product-tabs-section .tab-pane .btn-view-all:hover { background-color: var(--primary-color); color: #ffffff; transform: translateY(-2px) scale(1.03); box-shadow: 0 4px 10px rgba(var(--primary-color-rgb), 0.2); }
#product-tabs-section.tab-pane .btn-view-all .bx { font-size: 1.1em; line-height: 1; }
@media (max-width: 767.98px) { #custom-tabs-section .nav-link { padding: 0.7rem 1rem; } #custom-tabs-section .tab-content { padding: 1.5rem; } }

customer-section { background-color: var(--bg-alt); padding-top: 40px; padding-bottom: 60px; }
#customer-section .nav-tabs { border-bottom: 2px solid var(--border-color); margin-bottom: 2rem; flex-wrap: nowrap; overflow-x: auto ; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
#customer-section .nav-tabs::-webkit-scrollbar { display: none; }
#customer-section .nav-item { margin-bottom: -2px; }
#customer-section .nav-link { color: var(--muted-text-color); background-color: transparent; border: none; border-bottom: 2px solid transparent; padding: 0.8rem 1.25rem; font-weight: 400; /* Prompt Regular */ font-size: clamp(0.9rem, 1.8vw, 1rem); white-space: nowrap; transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease; }
#customer-section .nav-link i.bx { vertical-align: middle; margin-right: 0.3em; font-size: 1.2em; }
#customer-section .nav-link:hover { color: var(--primary-color); background-color: var(--tab-nav-link-bg-hover); border-bottom-color: var(--primary-color); }
#customer-section .nav-link.active { color: var(--primary-color); font-weight: 500; /* Prompt Medium */ background-color: var(--tab-nav-link-active-bg); border-bottom-color: var(--tab-nav-link-active-border); }
#customer-section .tab-content { background-color: var(--tab-content-bg); padding: 2rem; border-radius: 8px; border: 1px solid var(--border-color); margin-top: -1px; box-shadow: var(--card-shadow-light); }
html[data-theme="dark"] #customer-section .tab-content { background-color: var(--tab-content-bg-dark); box-shadow: var(--card-shadow-dark); }
#customer-section .tab-pane h4 { font-weight: 500; /* Prompt Medium */ margin-bottom: 1rem; }
#customer-section .tab-pane p { font-weight: 300; /* Prompt Light */ line-height: 1.8; margin-bottom: 1rem; }
#customer-section .tab-pane ul { list-style: none; padding-left: 0; margin-bottom: 1.5rem; }
#customer-section .tab-pane ul li { padding-left: 0; position: relative; margin-bottom: 0.6rem; font-weight: 300; /* Prompt Light */ display: flex; align-items: flex-start;}
#customer-section .tab-pane ul li i.bx { vertical-align: middle; margin-right: 0.5rem; color: var(--primary-color); font-size: 1.1em; margin-top: 0.15em; flex-shrink: 0;}
#customer-section .tab-pane img.tab-main-image { width: 100%; max-height: 400px; object-fit: contain; border-radius: 6px; margin-bottom: 1.5rem; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
html[data-theme="dark"] #customer-section .tab-pane img.tab-main-image { box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
#customer-section .tab-pane .btn-view-all { border-radius: 20px; padding: 0.5rem 1.2rem; font-weight: 500; /* Prompt Medium */ font-size: 0.9rem; border-color: var(--primary-color); color: var(--primary-color); background-color: transparent; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); display: inline-flex; align-items: center; }
#customer-section .tab-pane .btn-view-all:hover { background-color: var(--primary-color); color: #ffffff; transform: translateY(-2px) scale(1.03); box-shadow: 0 4px 10px rgba(var(--primary-color-rgb), 0.2); }
#customer-section .tab-pane .btn-view-all .bx { font-size: 1.1em; line-height: 1; }
@media (max-width: 767.98px) { #customer-section .nav-link { padding: 0.7rem 1rem; } #customer-section .tab-content { padding: 1.5rem; } }

#portfolio { background-color: var(--bg-main); }
#portfolio .btn-outline-primary { border-radius: 20px; padding: 0.6rem 1.2rem; font-weight: 500; /* Prompt Medium */ border-color: var(--primary-color); color: var(--primary-color); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); display: inline-flex; align-items: center; }
#portfolio .btn-outline-primary:hover { background-color: var(--btn-outline-hover-bg); color: var(--btn-outline-hover-text); border-color: var(--primary-color); transform: translateY(-2px) scale(1.03); box-shadow: 0 4px 10px rgba(var(--primary-color-rgb), 0.2); }
#portfolio .btn-outline-primary .bx { font-size: 1.1em; line-height: 1; }
.portfolio-card { margin-bottom: 30px; border-radius: 12px; overflow: hidden; background-color: var(--bg-alt); box-shadow: var(--card-shadow); transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative; }
html[data-theme="dark"] .portfolio-card { background-color: var(--bg-alt-dark); }
.portfolio-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: var(--card-hover-shadow); }
.portfolio-card img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.4s ease-out; }
.portfolio-card:hover img { transform: scale(1.08); }
.portfolio-card .portfolio-info { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.1) 80%, transparent); padding: 25px 20px 20px 20px; opacity: 0; transform: translateY(15px); transition: opacity 0.35s ease-out, transform 0.35s ease-out; color: #ffffff; }
.portfolio-card:hover .portfolio-info { opacity: 1; transform: translateY(0); }
.portfolio-card .portfolio-info h5 { font-weight: 500; /* Prompt Medium */ font-size: 1.2rem; color: #ffffff; margin-bottom: 4px; }
.portfolio-card .portfolio-info p { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-bottom: 0; font-weight: 300; /* Prompt Light */ }

#clients { background-color: var(--bg-alt); padding: 60px 0; }
.client-logo img { max-width: 120px; filter: grayscale(100%) opacity(0.6); transition: all 0.3s ease; padding: 10px; }
html[data-theme="dark"] .client-logo img { filter: brightness(0) invert(1) grayscale(1) opacity(0.5); }
.client-logo img:hover { filter: grayscale(0%) opacity(1); transform: scale(1.08); }
html[data-theme="dark"] .client-logo img:hover { filter: brightness(0) invert(1) opacity(1); }

#contact { background-color: var(--bg-main); }
.contact-wrapper { background-color: var(--bg-alt); padding: 40px; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: var(--card-shadow); }
html[data-theme="dark"] .contact-wrapper { background-color: var(--bg-alt-dark); }
.contact-info-block h3, .contact-form-block h3 { font-size: 1.5rem; font-weight: 600; /* Prompt SemiBold */ margin-bottom: 1.5rem; display: flex; align-items: center;}
.contact-info-block h3::after, .contact-form-block h3::after { display:none; } /* Removed underlines for these specific H3s for cleaner look */
.contact-item { display: flex; align-items: center; margin-bottom: 20px; opacity: 0.9; }
.contact-item .icon { font-size: 1.6rem; color: var(--primary-color); margin-right: 15px; width: 30px; flex-shrink: 0; text-align: center; }
.contact-item .details h4 { font-size: 1rem; font-weight: 500; /* Prompt Medium */ margin-bottom: 2px; }
.contact-item .details p { margin-bottom: 0; font-size: 0.95rem; font-weight: 300; /* Prompt Light */ }
.contact-item .details p a { transition: color 0.2s ease; font-weight: 300; /* Prompt Light for links */ color: var(--text-color); text-decoration: none;}
.contact-item .details p a:hover { color: var(--primary-color); text-decoration: underline; }
.contact-map-container { margin-top: 20px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-color); }
.contact-map-container iframe { width: 100%; height: 300px; border: 0; filter: var(--map-filter); }
.contact-form .form-control { border-radius: 8px; box-shadow: none; font-size: 0.95rem; padding: 10px 14px; border: 1px solid var(--border-color); background-color: var(--bg-main); color: var(--text-color); transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; font-weight: 300; /* Prompt Light for form inputs */ }
.contact-form .form-control::placeholder { color: var(--muted-text-color); opacity: 0.8; font-weight: 300; /* Prompt Light for placeholders */ }
.contact-form .form-control:focus { border-color: var(--primary-color); background-color: var(--bg-main); box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb),.15); }
.contact-form textarea.form-control { min-height: 130px; }
.contact-form .btn-primary { background: var(--primary-color); border: 1px solid var(--primary-color); padding: 10px 30px; color: #ffffff; transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; border-radius: 8px; font-weight: 500; /* Prompt Medium */ font-size: 1rem; text-transform: none; }
.contact-form .btn-primary:hover { background: var(--btn-primary-hover-bg); border-color: var(--btn-primary-hover-border); transform: translateY(-2px); }

.footer { background-color: var(--footer-bg); color: var(--footer-text); padding: 50px 0 25px 0; font-size: 0.9rem; border-top: 1px solid var(--footer-border); font-weight: 300; /* Prompt Light for footer text */ }
.footer .footer-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer .social-links { margin-bottom: 20px; }
.footer .social-links a { font-size: 1.3rem; display: inline-flex; align-items: center; justify-content: center; background-color: var(--footer-link-bg); color: var(--footer-text); html[data-theme="dark"] & { color: #e0e0e5; } margin: 0 7px; border-radius: 8px; width: 40px; height: 40px; transition: background-color 0.25s ease, transform 0.25s ease, color 0.25s ease; border: none; }
.footer .social-links a:hover { background-color: var(--footer-link-hover-bg); color: var(--primary-color); html[data-theme="dark"] & { color: #ffffff; } transform: translateY(-3px) scale(1.1); }
.footer .footer-links a { color: var(--footer-text); transition: color 0.2s ease; margin: 0 0.5rem; font-weight: 400; /* Prompt Regular for footer links */ }
.footer .footer-links a:hover { color: var(--primary-color); }
.footer .footer-bottom { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--footer-border); width: 100%; }
.footer .footer-bottom p { margin-bottom: 0; font-weight: 300; /* Prompt Light */ }
.footer .footer-bottom strong { color: var(--heading-color); font-weight: 500; /* Prompt Medium */ }

@media (max-width: 991.98px) { .navbar-collapse { background-color: var(--bg-main); padding: 1rem; margin-top: 0.5rem; border-top: 1px solid var(--border-color); box-shadow: 0 8px 16px rgba(0,0,0,0.05); border-radius: 0 0 8px 8px; } .navbar-nav { text-align: left; } .navbar-nav .nav-item { margin: 0.25rem 0; } .contact-wrapper { padding: 30px; } }
@media (max-width: 767.98px) { body { font-size: 0.9rem; } { font-size: clamp(0.85rem, 3.8vw, 1rem); } section { padding: 60px 0; } .section-title { font-size: clamp(1.7rem, 4.8vw, 2.1rem); margin-bottom: 40px; } .section-subtitle { font-size: clamp(0.95rem, 2.2vw, 1.05rem); margin-top: -30px; margin-bottom: 40px; } .service-card, .portfolio-card, .contact-wrapper { padding: 20px; } #custom-tabs-section .tab-pane h4 { font-size: 1.15rem; } #custom-tabs-section .tab-pane p, #custom-tabs-section .tab-pane ul li { font-size: 0.85rem; } .contact-form-block { margin-top: 30px; } #about .btn-primary, #why-choose-us .btn-primary, #portfolio .btn-outline-primary, #custom-tabs-section .tab-pane .btn-view-all { padding: 8px 20px; font-size: 0.85rem;} .contact-form .btn-primary { padding: 10px 25px; font-size: 0.9rem;} }

.back-to-top { position: fixed; bottom: 25px; right: 25px; z-index: 1080; background-color: var(--primary-color); color: #ffffff; border: none; border-radius: 50%; width: 45px; height: 45px; font-size: 1.6rem; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease; opacity: 0; visibility: hidden; transform: translateY(20px); display: inline-flex; align-items: center; justify-content: center; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
html[data-theme="light"] .back-to-top:hover { background-color: var(--back-to-top-hover-bg-light); transform: translateY(-3px) scale(1.05); box-shadow: var(--back-to-top-hover-shadow-light); }
html[data-theme="dark"] .back-to-top:hover { background-color: var(--back-to-top-hover-bg-dark); transform: translateY(-3px) scale(1.05); box-shadow: var(--back-to-top-hover-shadow-dark); }

/* Additional class for button alignment */
.text-lg-end {
    text-align: end !important;
}
@media (max-width: 991.98px) {
    .text-lg-end {
        text-align: center !important; /* Center buttons on smaller screens if desired */
    }
}

/*test header*/
/* --- การตั้งค่าพื้นฐานสำหรับ Component --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* --- ส่วนหัววิดีโอ --- */
/*.video-header {*/
/*    position: relative; !* เป็นจุดอ้างอิงสำหรับ .background-video และ .header-overlay *!*/
/*    height: 100vh; !* ความสูง 100% ของ viewport height *!*/
/*    width: 100%;   !* ความกว้างเต็ม *!*/
/*    overflow: hidden; !* ซ่อนส่วนที่เกินของวิดีโอหรือเนื้อหา *!*/
/*    background-color: #222; !* สีพื้นหลังสำรองหากวิดีโอไม่แสดง *!*/
/*}*/

/*!* กำหนดให้วิดีโอพื้นหลังเต็มพื้นที่ของ .video-header และอยู่ด้านหลังสุด *!*/
/*.video-header .background-video {*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    left: 50%;*/
/*    min-width: 100%;*/
/*    min-height: 100%;*/
/*    width: auto;   !* รักษาสัดส่วนของวิดีโอ *!*/
/*    height: auto;  !* รักษาสัดส่วนของวิดีโอ *!*/
/*    z-index: -100; !* ให้อยู่หลังเนื้อหาอื่นๆ *!*/
/*    transform: translateX(-50%) translateY(-50%); !* จัดให้อยู่กึ่งกลางพอดี *!*/
/*    object-fit: cover; !* สำคัญมาก: ทำให้วิดีโอเต็มพื้นที่โดยคงสัดส่วน และตัดส่วนที่เกินออก *!*/
/*    !* object-position: center center; *! !* สามารถใช้ปรับตำแหน่งการ crop ของวิดีโอได้ถ้าต้องการ *!*/
/*}*/
/*@media (max-width: 576px) {*/
/*    .video-header {*/
/*        width: 576px;*/
/*        height: auto;*/
/*    }*/

/*.video-header {*/
/*    position: relative;*/
/*    width: 100%; !* ความกว้างเต็ม viewport โดย default *!*/
/*    height: 80vh; !* ความสูงเต็ม viewport โดย default *!*/
/*    min-height: 320px; !* ความสูงขั้นต่ำโดยรวม *!*/
/*    overflow: hidden; !* ป้องกันไม่ให้เนื้อหา (เช่น วิดีโอ) ล้นออกนอกกรอบ *!*/
/*    background-color: #1a1a1a; !* สีพื้นหลังสำรอง *!*/
/*}*/

/*.background-video {*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%; !* วิดีโอจะกว้างเต็ม 100% ของ .video-header *!*/
/*    height: 100%; !* วิดีโอจะสูงเต็ม 100% ของ .video-header *!*/
/*    !* object-fit: cover;*/
/*      - ทำให้วิดีโอปรับขนาดเพื่อเติมเต็มพื้นที่ของ .video-header ทั้งหมด โดยรักษาสัดส่วนเดิมของวิดีโอไว้*/
/*      - หากสัดส่วนของวิดีโอไม่ตรงกับสัดส่วนของ .video-header บางส่วนของวิดีโอจะถูกตัดออก (cropped)*/
/*        เพื่อให้พอดีโดยไม่มีช่องว่างและไม่บิดเบี้ยว*/
/*      - นี่คือวิธีที่ทำให้วิดีโอ "เต็มเซสชั่นไม่ให้มีช่องว่าง"*/
/*    *!*/
/*    object-fit: cover;*/
/*    z-index: 0; !* ให้อยู่ด้านหลังสุด *!*/
/*}*/
/*@media (max-width: 576px) {*/
/*    .video-header {*/
/*        !* บนจอเล็กมาก อาจจะยังคงให้วิดีโอเต็มจอ (100vh) หรือปรับความสูงตามความเหมาะสม*/
/*           ตัวอย่าง: ลดความสูงลงเล็กน้อยเพื่อให้เห็นว่ามีเนื้อหาอื่นด้านล่าง *!*/
/*        !*min-height:100vh; !* ลดความสูงของ header ลงเหลือ 70% ของ viewport height *!*!*/
/*        !*padding: 0;*!*/
/*        !* หรือถ้าต้องการให้เห็นเนื้อหาอื่นชัดเจนขึ้น อาจจะกำหนดความสูงที่น้อยลงไปอีก *!*/
/*        !*min-height: 300px; !* หรือกำหนดเป็นค่า px คงที่ *!*!*/
/*    }*/

/*    !* หากต้องการให้วิดีโอมีพฤติกรรมที่แตกต่างบนจอเล็กมาก เช่น*/
/*       อาจจะเปลี่ยน object-fit เป็น contain ถ้าต้องการให้เห็นวิดีโอทั้งภาพโดยไม่โดนตัด*/
/*       แต่จะมีแถบสีดำ (letterboxing) หากสัดส่วนไม่พอดีกับ container*/
/*       ให้เลือกใช้ระหว่าง cover (ค่าเริ่มต้น) หรือ contain ตามความต้องการ *!*/

/*    .video-header .background-video {*/
/*        object-fit: contain; !* ยกเลิกคอมเมนต์นี้ ถ้าต้องการให้เห็นภาพวิดีโอทั้งหมด โดยอาจมีแถบสีดำด้านข้าง/บนล่าง *!*/
/*    }*/

/*}*/


/*test header*/
/*Logo*/
.navbar-brand {
    position: relative;
    overflow: hidden;
    padding: 0.25rem 0;
}
.navbar-brand img {
    max-height: 45px;
    transition: max-height 0.3s ease;
    display: block;
}
.navbar.scrolled .navbar-brand img {
    max-height: 38px;
}
.navbar-brand::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 20px;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    html[data-theme="dark"] & {
        background: linear-gradient(
            to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0) 100%
        );
    }
    transform: rotate(25deg);
    animation: logoSparkle 7s infinite ease-in-out;
    animation-delay: 2s;
    opacity: 0;
}

@keyframes logoSparkle {
    0% { left: -70%; opacity: 0; }
    20% { left: 120%; opacity: 0.7; }
    25% { left: 120%; opacity: 0; }
    100% { left: 120%; opacity: 0; }
}

/*logo*/

/*Hero*/
/* Hero Section Styles */
.hero-section-new-bg-v45 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-alt);
}

.hero-section-new-bg-v45::before {
    content: '';
    position: absolute;
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    background-image: var(--hero-bg-image-url);
    background-size: cover;
    background-position: center;
    filter: blur(var(--hero-bg-blur));
    z-index: 1; /* Behind overlay and content */
    transform: scale(1.05);
}

.hero-section-new-bg-v45::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--hero-overlay-color);
    z-index: 2; /* Above background, below content */
}

.hero-content-new-bg-v45 {
    position: relative;
    z-index: 3; /* Content on top */
    max-width: 850px;
}

.hero-content-new-bg-v45 .hero-headline-v2 {
    font-size: clamp(2.8rem, 6.5vw, 4.5rem);
    font-weight: 800;
    color: var(--hero-heading-color); /* Base color for H1 */
    line-height: 1.15;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-content-new-bg-v45 .hero-headline-v2 .hero-headline-en {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1.5px;
    font-weight: 700;
    display: inline-block;
    background: linear-gradient(90deg, var(--hero-text-gradient-start), var(--hero-text-gradient-mid), var(--hero-text-gradient-end), var(--hero-text-gradient-mid), var(--hero-text-gradient-start));
    background-size: 400% auto;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    animation: textGradientShift 10s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 4px var(--hero-text-glow-color)) drop-shadow(0 0 10px var(--hero-text-glow-color));
}
.hero-content-new-bg-v45 .hero-headline-v2 .hero-headline-en .text-larger {
    font-size: 1.3em;
    display: block;
}
.hero-content-new-bg-v45 .hero-headline-v2 .hero-headline-en .text-smaller {
    font-size: 0.7em;
    display: block;
    margin-top: 0.05em;
    letter-spacing: 0.1em;
}
.hero-content-new-bg-v45 .hero-cta-buttons-v2 .btn {
    border-radius: 8px;
    padding: 14px 35px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.15);
    border-width: 1.5px;
    margin: 0.5rem;
}
.hero-content-new-bg-v45 .hero-cta-buttons-v2 .btn-primary {
    background-color: var(--hero-btn-primary-bg);
    border-color: var(--hero-btn-primary-bg);
    color: var(--hero-btn-primary-text);
}
.hero-content-new-bg-v45 .hero-cta-buttons-v2 .btn-primary:hover {
    background-color: var(--secondary-color-light); /* Use light theme secondary for hover */
    border-color: var(--secondary-color-light);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 7px 18px rgba(0,0,0,0.2);
}
.hero-content-new-bg-v45 .hero-cta-buttons-v2 .btn-outline-primary {
    border-color: var(--hero-btn-outline-border);
    color: var(--hero-btn-outline-text);
}
.hero-content-new-bg-v45 .hero-cta-buttons-v2 .btn-outline-primary:hover {
    background-color: var(--hero-btn-outline-hover-bg);
    color: var(--hero-btn-outline-hover-text);
    border-color: var(--hero-btn-outline-hover-bg);
    transform: translateY(-3px) scale(1.03);
}

/* Applying gradient/solid color based on theme */
html[data-theme="light"] .hero-content-new-bg-v45 .hero-headline-v2 .hero-headline-en {
    background: linear-gradient(90deg, var(--hero-text-gradient-start-light), var(--hero-text-gradient-mid-light), var(--hero-text-gradient-end-light), var(--hero-text-gradient-mid-light), var(--hero-text-gradient-start-light));
    background-size: 400% auto;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    animation: textGradientShift 8s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 15px var(--hero-text-glow-color-light));

}
html[data-theme="dark"] .hero-content-new-bg-v45 .hero-headline-v2 .hero-headline-en {
    background: linear-gradient(90deg, var(--hero-text-gradient-start-dark), var(--hero-text-gradient-mid-dark), var(--hero-text-gradient-end-dark), var(--hero-text-gradient-mid-dark), var(--hero-text-gradient-start-dark));
    background-size: 400% auto;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    animation: textGradientShift 8s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 4px var(--hero-text-glow-color-dark)) drop-shadow(0 0 10px var(--hero-text-glow-color-dark));
}



.hero-content-new-bg-v45 .hero-subheadline-v2 {
    font-size: clamp(1.1rem, 2.8vw, 1.4rem);
    color: var(--hero-paragraph-color);
    margin-bottom: 2.2rem;
    font-weight: 500;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    line-height: 1.7;
    html[data-theme="light"] & {
        color: var(--heading-color-light);
        text-shadow: 0 1px 1px rgba(0,0,0,0.05);
    }
}


html[data-theme="light"] .hero-content-new-bg-v45 .hero-subheadline-v2 {
    color: var(--heading-color-light);
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.hero-content-new-bg-v45 .hero-subheadline-v2 .hero-text-effect.font-prompt {
    font-family: 'Prompt', sans-serif;
    font-weight: 700;
    display: inline-block; /* Required for gradient/effects */
}

html[data-theme="light"] .hero-content-new-bg-v45 .hero-subheadline-v2 .hero-text-effect.font-prompt {
    /* Use the same gradient and glow as the headline for light theme */
    background: linear-gradient(90deg, var(--hero-text-gradient-start-light), var(--hero-text-gradient-mid-light), var(--hero-text-gradient-end-light), var(--hero-text-gradient-mid-light), var(--hero-text-gradient-start-light));
    background-size: 400% auto;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    animation: textGradientShift 8s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 3px var(--hero-text-glow-color-light));

}

@keyframes textGradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
html[data-theme="dark"] .hero-content-new-bg-v45 .hero-subheadline-v2 .hero-text-effect.font-prompt {
    background: linear-gradient(90deg, var(--hero-text-gradient-start-dark), var(--hero-text-gradient-mid-dark), var(--hero-text-gradient-end-dark), var(--hero-text-gradient-mid-dark), var(--hero-text-gradient-start-dark));
    background-size: 400% auto;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    animation: textGradientShift 8s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 4px var(--hero-text-glow-color-dark)) drop-shadow(0 0 10px var(--hero-text-glow-color-dark));
}

.hero-content-new-bg-v45 .hero-cta-buttons-v2 .btn {
    border-radius: 8px;
    padding: 14px 35px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.15);
    border-width: 1.5px;
    margin: 0.5rem;
}
.hero-content-new-bg-v45 .hero-cta-buttons-v2 .btn-primary {
    background-color: var(--hero-btn-primary-bg);
    border-color: var(--hero-btn-primary-bg);
    color: var(--hero-btn-primary-text);
}
.hero-content-new-bg-v45 .hero-cta-buttons-v2 .btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 7px 18px rgba(0,0,0,0.2);
}
.hero-content-new-bg-v45 .hero-cta-buttons-v2 .btn-outline-primary {
    border-color: var(--hero-btn-outline-border);
    color: var(--hero-btn-outline-text);
}
.hero-content-new-bg-v45 .hero-cta-buttons-v2 .btn-outline-primary:hover {
    background-color: var(--hero-btn-outline-hover-bg);
    color: var(--hero-btn-outline-hover-text);
    border-color: var(--hero-btn-outline-hover-bg);
    transform: translateY(-3px) scale(1.03);
}
@keyframes textGradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
/* Hero Responsive Adjustments */
@media (max-width: 991.98px) { /* Tablet */
    .hero-section-new-bg-v45 { padding: 100px 20px; min-height: 80vh; }
    .hero-content-new-bg-v45 .hero-headline-v2 { font-size: clamp(2.4rem, 6vw, 3.8rem); }
    .hero-content-new-bg-v45 .hero-subheadline-v2 { font-size: clamp(1rem, 2.2vw, 1.2rem); }
}
@media (max-width: 767.98px) { /* Mobile */
    .hero-section-new-bg-v45 {
        min-height: auto;
        padding: 80px 15px;
    }
    .hero-content-new-bg-v45 .hero-headline-v2 { font-size: clamp(2rem, 8vw, 2.8rem); margin-bottom: 1.25rem;}
    .hero-content-new-bg-v45 .hero-subheadline-v2 { font-size: clamp(0.9rem, 4vw, 1.05rem); margin-bottom: 2rem;}
    .hero-content-new-bg-v45 .hero-cta-buttons-v2 .btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-content-new-bg-v45 .hero-cta-buttons-v2 .btn:not(:last-child) {
        margin-bottom: 1rem;
    }
}
/*Hero*/
/*Modal*/
.modal.fade .modal-dialog {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease-out;
}
.modal-backdrop {
    background-color: var(--modal-backdrop-bg-custom);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.35s ease-out !important;
}
.modal-backdrop.show {
    opacity: 1 !important;
}

/* Enhanced Modal Content Styles - สไตล์เนื้อหา Modal ที่ปรับปรุงแล้ว */
.modal-content-enhanced {
    border-radius: 1.5rem;
    box-shadow: 0 15px 50px var(--card-shadow);
    border: none;
    overflow: hidden;
    background-color: var(--bg-alt); /* ใช้ --bg-alt จาก Theme ของ User */
}

/* Modal Header Styles - สไตล์ส่วนหัวของ Modal */
.modal-header {
    background: transparent;
    color: var(--heading-color); /* ใช้ --heading-color จาก Theme ของ User */
    border-bottom: 1px solid var(--border-color); /* ใช้ --border-color จาก Theme ของ User */
    padding: 1.75rem 2.25rem;
    align-items: center;
}
.modal-header .btn-close {
    background-color: transparent;
    border: none;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.25s ease-out;
    font-size: 1rem;
}
html[data-theme="dark"] .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(150%);
}
.modal-header .btn-close:hover {
    opacity: 1;
    transform: scale(1.15) rotate(90deg);
}
.modal-title {
    color: var(--heading-color);
    font-weight: var(--heading-font-weight);
    font-size: 1.4rem; /* ลดขนาด Title เล็กน้อย */
    display: flex;
    align-items: center;
}
.modal-title i {
    margin-right: 0.9rem;
    font-size: 1.7rem;
    color: var(--primary-color);
}

/* Modal Body Styles - สไตล์ส่วนเนื้อหาของ Modal */
.modal-body {
    padding: 2.25rem 2.5rem;
    background-color: transparent;
}
.modal-body .row {
    align-items: flex-start;
}
.modal-body .img-fluid.modal-image-showcase {
    border-radius: 1rem;
    box-shadow: 0 8px 25px var(--card-shadow);
    margin-bottom: 1.75rem;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.modal-body .img-fluid.modal-image-showcase:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 35px var(--card-hover-shadow);
}
.modal-body h6 {
    font-weight: var(--heading-font-weight);
    color: var(--primary-color);
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
    font-size: 1.15rem; /* ลดขนาด h6 เล็กน้อย */
    border-left: none;
    padding-left: 0;
    display: flex;
    align-items: center;
}
.modal-body h6 i {
    margin-right: 0.6rem;
    font-size: 1.3em;
}
.modal-body p, .modal-body ul, .modal-body ol {
    color: var(--text-color); /* ใช้ --text-color จาก Theme ของ User */
    font-size: 0.95rem; /* ลดขนาดตัวอักษรเนื้อหาเล็กน้อย */
    line-height: 1.8;
    font-weight: var(--body-font-weight);
}
.modal-body .lead {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-color); /* ใช้ --text-color */
}
.modal-body .small.text-muted { /* ปรับปรุงสี text-muted ให้สอดคล้อง */
    color: var(--muted-text-color) !important; /* ใช้ !important เพื่อ override Bootstrap ถ้าจำเป็น */
    font-size: 0.8rem; /* ลดขนาด text-muted */
}
.modal-body ul {
    list-style: none;
    padding-left: 0.5rem;
}
.modal-body ol {
    list-style: none;
    padding-left: 0.5rem;
    counter-reset: list-item;
}
.modal-body ul li, .modal-body ol li {
    margin-bottom: 0.8rem;
    padding-left: 2.5rem;
    position: relative;
    transition: color 0.25s ease-out;
}
.modal-body ul li:hover, .modal-body ol li:hover {
    color: var(--primary-color);
}
.modal-body ul li::before {
    content: '\ea4a';
    font-family: 'Boxicons';
    color: var(--primary-color);
    display: inline-block;
    position: absolute;
    left: 0;
    top: -1px;
    font-size: 1.4em;
    width: 1.8em;
    text-align: center;
    transition: transform 0.25s ease-out, color 0.25s ease-out;
}
.modal-body ol li {
    counter-increment: list-item;
}
.modal-body ol li::before {
    content: counter(list-item) ".";
    background-color: var(--primary-color);
    color: #ffffff; /* สีตัวเลขบนพื้นหลัง Primary */
    font-weight: 600;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    min-width: 2.1em;
    height: 2.1em;
    padding: 0 0.4em;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
    transition: background-color 0.25s ease-out, color 0.25s ease-out, transform 0.25s ease-out;
}
html[data-theme="dark"] .modal-body ol li::before {
    color: var(--bg-main); /* สีตัวเลขใน Dark Mode */
}


.modal-body ul li:hover::before {
    transform: scale(1.15);
    color: var(--secondary-color);
}
.modal-body ol li:hover::before {
    transform: translateY(-50%) scale(1.15);
    background-color: var(--secondary-color);
}

/* Service Guarantee Styling - สไตล์สำหรับประโยคการันตีบริการ */
.service-guarantee {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--modal-service-guarantee-text-color);
    text-align: center;
    padding: 1.25rem 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: none;
    background: var(--modal-service-guarantee-bg);
    border-radius: 0.85rem;
    box-shadow: 0 6px 15px var(--modal-service-guarantee-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.25px;
}
.service-guarantee i {
    font-size: 1.8em;
    margin-left: 0.6rem;
    margin-right: 0.6rem;
    vertical-align: middle;
}


/* Brand List Styling - สไตล์สำหรับรายการแบรนด์ */
.brand-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    padding: 1.25rem;
    background-color: var(--modal-brand-list-bg);
    border-radius: 0.85rem;
    border: 1px solid var(--modal-brand-list-border);
    margin-top: 1.5rem;
}
.brand-list .badge {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6em 1em;
    background-color: var(--modal-brand-badge-bg);
    color: var(--modal-brand-badge-text);
    border: 1px solid var(--modal-brand-badge-border);
    border-radius: 0.6rem;
    transition: all 0.25s ease-in-out;
}
.brand-list .badge:hover {
    background-color: var(--modal-brand-badge-hover-bg);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


/* Contact Info Box Styles - สไตล์กล่องข้อมูลติดต่อ */
.modal-title {
    color: var(--heading-color);
    font-weight: var(--heading-font-weight);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}
.modal-title i {
    margin-right: 0.8rem;
    font-size: 1.6rem;
    color: var(--primary-color);
}

/* Modal Body Styles - สไตล์ส่วนเนื้อหาของ Modal */
.modal-body {
    padding: 2rem 2.25rem;
    background-color: transparent;
    overflow-y: auto;
    flex-grow: 1;
}
.modal-body .row {
    align-items: flex-start;
}
.modal-body .img-fluid.modal-image-showcase {
    border-radius: 0.75rem;
    box-shadow: 0 8px 25px var(--card-shadow);
    margin-bottom: 1.5rem;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.modal-body .img-fluid.modal-image-showcase:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 35px var(--card-hover-shadow);
}
.modal-body h6 {
    font-weight: var(--heading-font-weight);
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    border-left: none;
    padding-left: 0;
    display: flex;
    align-items: center;
}
.modal-body h6 i {
    margin-right: 0.5rem;
    font-size: 1.2em;
}
.modal-body p, .modal-body ul, .modal-body ol {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.7;
    font-weight: var(--body-font-weight);
}
.modal-body .lead {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
}
.modal-body .small.text-muted {
    color: var(--muted-text-color) !important;
    font-size: 0.75rem;
}
.modal-body ul {
    list-style: none;
    padding-left: 0.4rem;
}
.modal-body ol {
    list-style: none;
    padding-left: 0.4rem;
    counter-reset: list-item;
}
.modal-body ul li, .modal-body ol li {
    margin-bottom: 0.7rem;
    padding-left: 2.25rem;
    position: relative;
    transition: color 0.25s ease-out;
}
.modal-body ul li:hover, .modal-body ol li:hover {
    color: var(--primary-color);
}
.modal-body ul li::before {
    content: '\ea4a';
    font-family: 'Boxicons';
    color: var(--primary-color);
    display: inline-block;
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.3em;
    width: 1.7em;
    text-align: center;
    transition: transform 0.25s ease-out, color 0.25s ease-out;
}
.modal-body ol li {
    counter-increment: list-item;
}
.modal-body ol li::before {
    content: counter(list-item) ".";
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75em;
    min-width: 2em;
    height: 2em;
    padding: 0 0.35em;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
    transition: background-color 0.25s ease-out, color 0.25s ease-out, transform 0.25s ease-out;
}
html[data-theme="dark"] .modal-body ol li::before {
    color: var(--bg-main);
}


.modal-body ul li:hover::before {
    transform: scale(1.15);
    color: var(--secondary-color);
}
.modal-body ol li:hover::before {
    transform: translateY(-50%) scale(1.15);
    background-color: var(--secondary-color);
}

/* Service Guarantee Styling - สไตล์สำหรับประโยคการันตีบริการ */
.service-guarantee {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--modal-service-guarantee-text-color);
    text-align: center;
    padding: 1rem 0.75rem;
    margin-top: 1.75rem;
    margin-bottom: 1.75rem;
    border: none;
    background: var(--modal-service-guarantee-bg);
    border-radius: 0.75rem;
    box-shadow: 0 5px 12px var(--modal-service-guarantee-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.2px;
}
.service-guarantee i {
    font-size: 1.7em;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}


/* Brand List Styling - สไตล์สำหรับรายการแบรนด์ */
.brand-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 1rem;
    background-color: var(--modal-brand-list-bg);
    border-radius: 0.75rem;
    border: 1px solid var(--modal-brand-list-border);
    margin-top: 1.25rem;
}
.brand-list .badge {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.55em 0.9em;
    background-color: var(--modal-brand-badge-bg);
    color: var(--modal-brand-badge-text);
    border: 1px solid var(--modal-brand-badge-border);
    border-radius: 0.5rem;
    transition: all 0.25s ease-in-out;
}
.brand-list .badge:hover {
    background-color: var(--modal-brand-badge-hover-bg);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


/* Contact Info Box Styles - สไตล์กล่องข้อมูลติดต่อ */
.modal-body .contact-info {
    margin-top: 1.75rem;
    padding: 1.25rem;
    background-color: var(--modal-contact-info-bg);
    border-radius: 0.85rem;
    border: 1px solid var(--modal-contact-info-border);
}
.modal-body .contact-info p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}
.modal-body .contact-info i {
    font-size: 1.3rem;
    margin-right: 0.8rem;
    width: 20px;
    text-align: center;
    color: var(--modal-icon-color);
}

/* Modal Footer Styles - สไตล์ส่วนท้ายของ Modal */
.modal-footer {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 1.75rem;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}
.modal-footer .btn {
    padding: 0.65rem 1.5rem;
    font-weight: var(--button-font-weight);
    border-radius: 0.65rem;
    transition: all 0.25s ease-out;
    font-size: 0.9rem;
    border-width: 1px;
    text-transform: none;
    letter-spacing: 0;
}
.modal-footer .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(var(--primary-color-rgb), 0.2);
}
.modal-footer .btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}
html[data-theme="dark"] .modal-footer .btn-primary {
    color: var(--bg-main);
}
/* ปุ่ม "ปิดหน้าต่าง" (btn-secondary ที่มี data-bs-dismiss) - สไตล์เริ่มต้น */
.modal-footer button.btn-secondary[data-bs-dismiss="modal"] {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transition: all 0.25s ease-out;
}
/* ปุ่ม "ปิดหน้าต่าง" - สถานะ Hover (สีแดงแบบ Outline) */
.modal-footer button.btn-secondary[data-bs-dismiss="modal"]:hover {
    background-color: transparent;
    border-color: var(--modal-btn-close-window-hover-border-color);
    color: var(--modal-btn-close-window-hover-text-color);
    transform: translateY(-2px) scale(1.02);
}

/* Horizontal Rule Style - สไตล์เส้นคั่น */
.modal-body hr {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Adjustments for Modals - การปรับปรุง Responsive สำหรับ Modal */
@media (max-width: 991.98px) {
    .modal-body .row > .col-lg-4, .modal-body .row > .col-lg-8 {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .hero-section-new-bg-v45 {
        min-height: auto;
        padding: 80px 15px;
    }
    .hero-content-new-bg-v45 .hero-headline-v2 { font-size: clamp(2rem, 8vw, 2.8rem); margin-bottom: 1.25rem;}
    .hero-content-new-bg-v45 .hero-subheadline-v2 { font-size: clamp(0.9rem, 4vw, 1.05rem); margin-bottom: 2rem;}
    .hero-content-new-bg-v45 .hero-cta-buttons-v2 .btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-content-new-bg-v45 .hero-cta-buttons-v2 .btn:not(:last-child) {
        margin-bottom: 1rem;
    }

    .modal-header {
        padding: 1.25rem 1.5rem;
    }
    .modal-title {
        font-size: 1.15rem;
    }
    .modal-body {
        padding: 1.5rem 1.25rem;
    }
    .modal-body p, .modal-body ul, .modal-body ol {
        font-size: 0.85rem;
    }
    .modal-body .lead {
        font-size: 0.95rem;
    }
    .modal-body h6 {
        font-size: 1.05rem;
    }
    .service-guarantee {
        font-size: 1.05rem;
        padding: 0.85rem 0.6rem;
    }
    .service-guarantee i {
        font-size: 1.4em;
    }
    .brand-list {
        gap: 0.6rem;
        padding: 0.85rem;
    }
    .brand-list .badge {
        font-size: 0.8rem;
        padding: 0.4em 0.7em;
    }
    .modal-footer {
        padding: 1rem 1.25rem;
        flex-direction: column-reverse;
    }
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 0.65rem;
        font-size: 0.85rem;
    }
    .modal-footer .btn:last-child {
        margin-bottom: 0;
    }
}
/*Modal*/
