:root {
    --primary-dark: #000000;
    --secondary-dark: #00222b;
    --accent-red: #ff0015;
    --text-light: #ffffff;
    --text-dark: #333333;
}

body {
    font-family: 'Kanit', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

/* ================= Header & Navigation ================= */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}

/* Top Contact Bar */
.top-contact-bar {
    background-color: #1a1a1a;
    color: #ccc;
    font-size: 14px;
    padding: 8px 0;
    display: none;
    transition: all 0.3s ease;
}
.header-wrapper.is-sticky .top-contact-bar { display: block; }
.top-contact-bar a { color: #ccc; text-decoration: none; margin-right: 15px; transition: color 0.3s; }
.top-contact-bar a:hover { color: #fff; }
.social-icons a { margin-left: 15px; margin-right: 0; font-size: 16px; }

/* Main Navbar */
.main-navbar {
    padding: 15px 0;
    transition: all 0.4s ease;
}
.header-wrapper:not(.is-sticky) .main-navbar {
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 50px;
    margin-top: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.header-wrapper.is-sticky .main-navbar {
    background-color: #ffffff;
    margin-top: 0;
    border-radius: 0;
    max-width: 100%;
    padding: 15px 5%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.navbar-brand img { height: 40px; transition: all 0.3s ease; }

.nav-link {
    font-weight: 500;
    font-size: 16px;
    padding: 10px 15px !important;
    transition: all 0.3s ease;
}
.header-wrapper:not(.is-sticky) .nav-link { color: #ffffff !important; }
.header-wrapper.is-sticky .nav-link { color: #00222b !important; }
.nav-link:hover { color: var(--accent-red) !important; }

.dropdown-menu {
    background-color: var(--secondary-dark);
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    display: block;
    transform: translateY(15px);
    transition: all 0.3s ease;
    min-width: 220px;
}
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1; visibility: visible; transform: translateY(0);
    }
}
.dropdown-item {
    color: #ffffff; font-weight: 400; padding: 12px 20px; transition: all 0.3s ease; position: relative;
}
.dropdown-item:hover {
    background-color: rgba(255,255,255,0.1); color: var(--accent-red); padding-left: 25px;
}
.dropdown-toggle::after { display: none; }

.btn-quote {
    background: linear-gradient(90deg, #ff0015, #ff4d5a);
    color: white !important; border-radius: 50px; padding: 10px 25px; font-weight: 600; border: none; box-shadow: 0 4px 15px rgba(255, 0, 21, 0.4); transition: all 0.3s ease;
}
.btn-quote:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 0, 21, 0.6); }

.btn-lang {
    background-color: #555; border-radius: 30px; padding: 5px 15px; color: white; display: flex; align-items: center; gap: 10px;
}
.btn-lang span { cursor: pointer; }
.btn-lang span.active {
    background-color: #ddd; color: #333; border-radius: 20px; padding: 2px 10px;
}

/* Mobile Menu */
.navbar-toggler { border: none; outline: none !important; }
.hamburger-icon { color: white; font-size: 24px; }
.header-wrapper.is-sticky .hamburger-icon { color: #00222b; }
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: var(--secondary-dark); z-index: 1050; display: flex; flex-direction: column; padding: 30px; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
}
.mobile-menu-overlay.active { transform: translateX(0); }
.mobile-menu-close { position: absolute; top: 30px; right: 30px; color: white; font-size: 30px; cursor: pointer; }
.mobile-menu-content { margin-top: 60px; overflow-y: auto; }
.mobile-nav-link { color: white; font-size: 22px; display: block; padding: 15px 0; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-dropdown { background-color: rgba(0,0,0,0.2); padding-left: 20px; display: none; }
.mobile-dropdown.open { display: block; }

/* Hero Slider */
.hero-section { position: relative; width: 100%; height: 730px; background-color: #111; overflow: hidden; }
.slide-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease-in-out; z-index: 1; }
.slide-item.active { opacity: 1; z-index: 2; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(80,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%); z-index: 3; }
.slider-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; background-color: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; transition: all 0.3s; }
.dot.active { background-color: white; transform: scale(1.2); }
.hero-mock-content { position: absolute; top: 50%; left: 10%; transform: translateY(-50%); z-index: 4; color: white; }
.hero-title { font-size: 4rem; font-weight: 700; line-height: 1.2; }
.hero-title span { color: var(--accent-red); }
.hero-subtitle { font-size: 1.2rem; margin-top: 20px; font-weight: 300; opacity: 0.9; }

@media (max-width: 768px) {
    .hero-section { height: 250px; }
    .hero-mock-content { display: none; }
    .header-wrapper:not(.is-sticky) .main-navbar { border-radius: 0; margin-top: 0; padding: 10px 20px; }
}

/* About Us Section */
.about-section { padding: 80px 0; background-color: #ffffff; position: relative; overflow: hidden; }
.about-image-wrapper { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.about-image-wrapper::before { content: ''; position: absolute; top: -20px; left: -20px; width: 150px; height: 150px; background-color: #ffffff; border-radius: 50%; z-index: 2; }
.about-image-wrapper img { width: 100%; height: auto; display: block; position: relative; z-index: 1; }
.about-content { padding-left: 30px; }
.about-label { font-size: 14px; color: #777; letter-spacing: 2px; text-transform: uppercase; font-weight: 500; margin-bottom: 10px; display: block; }
.about-heading { font-size: 38px; font-weight: 700; color: var(--primary-dark); margin-bottom: 20px; position: relative; padding-bottom: 15px; }
.about-heading span { color: var(--accent-red); }
.about-heading::after { content: ''; position: absolute; left: 0; bottom: 0; width: 50px; height: 3px; background-color: var(--accent-red); }
.about-description { color: #555; font-size: 16px; line-height: 1.8; margin-bottom: 30px; }
.about-features { list-style: none; padding: 0; margin-bottom: 40px; }
.about-features li { position: relative; padding-left: 30px; margin-bottom: 15px; font-weight: 500; color: #333; }
.about-features li i { position: absolute; left: 0; top: 4px; color: var(--accent-red); font-size: 18px; }
.btn-about { background-color: var(--secondary-dark); color: white !important; border-radius: 50px; padding: 12px 30px; font-weight: 500; border: none; display: inline-flex; align-items: center; transition: all 0.3s ease; }
.btn-about:hover { background-color: #000000; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 34, 43, 0.4); text-decoration: none; }
.btn-about i { margin-right: 10px; }
@media (max-width: 991px) { .about-content { padding-left: 0; margin-top: 40px; } .about-image-wrapper::before { display: none; } }

/* Services Section */
.services-section { padding: 100px 0; background: linear-gradient(180deg, #1f0505 0%, #3f1010 100%); position: relative; overflow: hidden; text-align: center; }
.services-glow-bg { position: absolute; top: -50px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 1200px; height: 400px; background: radial-gradient(ellipse at center, #ff4500 0%, transparent 65%); opacity: 0.5; z-index: 1; pointer-events: none; border-radius: 50%; filter: blur(40px); }
.services-subtitle { color: #ddd; font-size: 14px; letter-spacing: 3px; text-transform: uppercase; display: block; margin-bottom: 15px; position: relative; z-index: 2; }
.services-title { color: white; font-size: 42px; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,0.3); margin-bottom: 50px; position: relative; z-index: 2; }

.service-card { margin-bottom: 30px; position: relative; z-index: 2; transition: transform 0.3s ease; text-align: left; }
.service-card:hover { transform: translateY(-10px); }
.service-img-wrapper { position: relative; border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 20px rgba(255, 0, 0, 0.1); }
.service-img-wrapper img { width: 100%; height: 250px; object-fit: cover; border-radius: 20px; display: block; }
.service-icon-badge { position: absolute; top: -20px; left: -15px; width: 65px; height: 65px; background-color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #3f1010; box-shadow: 0 5px 15px rgba(0,0,0,0.3); z-index: 3; border: 3px solid #1f0505; }
.service-info { padding: 25px 10px 10px 10px; }
.service-name { color: white; font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.service-link { color: #bbbbbb; font-size: 15px; text-decoration: none; transition: color 0.3s; display: inline-flex; align-items: center; }
.service-link:hover { color: #ffffff; text-decoration: none; }
.btn-all-services { background-color: var(--secondary-dark); color: white !important; border-radius: 50px; padding: 15px 40px; font-size: 18px; font-weight: 500; border: none; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4); transition: all 0.3s ease; position: relative; z-index: 2; }
.btn-all-services:hover { background-color: #000000; transform: translateY(-2px); }

/* Project Section & Feature Grid */
.project-section { padding: 100px 0; background-color: #fbfbfb; position: relative; overflow: hidden; }
.project-bg-pattern { position: absolute; top: 0; right: -5%; width: 40%; height: 100%; background-image: radial-gradient(circle, #e0e0e0 2px, transparent 2px); background-size: 30px 30px; opacity: 0.3; z-index: 0; }
.project-section .container { position: relative; z-index: 1; }
.project-image { width: 100%; border-radius: 30px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.project-label { font-size: 14px; color: #777; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; display: block; }
.project-heading { font-size: 40px; font-weight: 700; color: var(--primary-dark); margin-bottom: 25px; line-height: 1.2; }
.project-heading span { color: var(--accent-red); }
.project-btn-group { margin-bottom: 40px; display: flex; gap: 15px; flex-wrap: wrap; }
.btn-contact-service { background: linear-gradient(90deg, #ff0015, #ff4d5a); color: white !important; border-radius: 50px; padding: 12px 30px; font-weight: 500; border: none; box-shadow: 0 5px 15px rgba(255, 0, 21, 0.3); transition: all 0.3s ease; }
.btn-contact-service:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 0, 21, 0.4); }
.btn-view-systems { background-color: var(--secondary-dark); color: white !important; border-radius: 50px; padding: 12px 30px; font-weight: 500; border: none; box-shadow: 0 5px 15px rgba(0, 34, 43, 0.3); transition: all 0.3s ease; }
.btn-view-systems:hover { background-color: #000000; transform: translateY(-2px); }

.system-feature-item { margin-bottom: 30px; }
.system-icon { width: 55px; height: 55px; background-color: #fce4e4; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--accent-red); margin-right: 15px; transition: all 0.3s; flex-shrink: 0; }
.system-feature-item:hover .system-icon { background-color: var(--accent-red); color: white; transform: scale(1.1); }
.system-title { font-size: 20px; font-weight: 700; color: var(--primary-dark); margin-bottom: 0; }
.system-desc { font-size: 14px; color: #666; margin-bottom: 10px; line-height: 1.6; }
.system-link { font-size: 14px; font-weight: 600; color: var(--accent-red); text-decoration: none; transition: color 0.3s; }
.system-link:hover { color: #cc0011; text-decoration: none; }

/* ================= Contact Section ================= */
.contact-section { padding-top: 20px; padding-bottom: 80px; background-color: #f8f9fa; position: relative; }
.contact-main-title { font-size: 36px; font-weight: 700; color: var(--primary-dark); margin-bottom: 40px; text-align: center; }
.contact-sub-title { font-size: 24px; font-weight: 700; margin-bottom: 15px; }
.contact-desc { font-size: 16px; color: #333; margin-bottom: 30px; }

/* Contact Buttons & Info UI */
.contact-info-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.contact-phone-text { font-size: 20px; font-weight: 500; font-style: italic; }
.btn-location { background-color: #ffffff; color: #000; border-radius: 50px; padding: 10px 25px; font-weight: 500; border: none; box-shadow: 0 4px 10px rgba(0,0,0,0.05); display: inline-flex; align-items: center; justify-content: center; width: 100%; transition: all 0.3s; }

.btn-social { border-radius: 50px; padding: 12px 20px; font-weight: 500; border: none; color: white !important; display: inline-flex; align-items: center; justify-content: center; width: 100%; transition: all 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.1); text-decoration: none !important; }
.btn-social:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.2); }
.btn-social i { margin-right: 8px; font-size: 18px; }
.btn-line { background-color: #00B900; }
.btn-fb { background-color: #1877F2; }
.btn-yt { background-color: #FF0000; }
.btn-tiktok { background-color: #000000; }

/* Forms */
.contact-form-title { font-size: 24px; font-weight: 700; margin-bottom: 30px; text-align: center; }
.form-label-custom { font-size: 14px; font-weight: 500; color: #555; margin-bottom: 8px; margin-left: 15px; }
.form-control-pill { border-radius: 50px; padding: 12px 25px; border: 1px solid #e0e0e0; background-color: #ffffff; box-shadow: inset 0 2px 5px rgba(0,0,0,0.02); transition: all 0.3s; height: auto; }
.form-control-pill:focus { border-color: var(--accent-red); box-shadow: 0 0 0 0.2rem rgba(255, 0, 21, 0.25); outline: 0; }
.form-control-textarea { border-radius: 25px; padding: 15px 25px; border: 1px solid #e0e0e0; background-color: #ffffff; box-shadow: inset 0 2px 5px rgba(0,0,0,0.02); resize: none; transition: all 0.3s; }
.form-control-textarea:focus { border-color: var(--accent-red); box-shadow: 0 0 0 0.2rem rgba(255, 0, 21, 0.25); outline: 0; }

/* Fake reCAPTCHA UI */
.recaptcha-mock { display: inline-flex; align-items: center; background: white; border: 1px solid #ccc; border-radius: 3px; box-shadow: 0 0 4px rgba(0,0,0,0.1); height: 74px; width: 300px; margin-bottom: 20px; overflow: hidden; }
.recaptcha-mock-blue { background: #1a73e8; color: white; width: 150px; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; }
.recaptcha-mock-logo { flex: 1; display: flex; align-items: center; justify-content: center; }
.recaptcha-mock-logo i { font-size: 30px; color: #555; }

.btn-submit-main { background-color: #cc0000; color: white !important; border-radius: 50px; padding: 12px 40px; font-weight: 600; font-size: 16px; border: none; transition: all 0.3s; box-shadow: 0 5px 15px rgba(204, 0, 0, 0.3); }
.btn-submit-main:hover { background-color: #990000; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(204, 0, 0, 0.4); }

/* ================= Footer Section ================= */
.site-footer-wrapper {
    padding: 40px 20px 80px 20px;
    background-color: #f8f9fa;
}
.site-footer {
    background: linear-gradient(135deg, #100b21 0%, #201a3d 40%, #00222b 100%);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    padding: 60px 80px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

/* Footer Floating Animations */
.footer-bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    z-index: -1;
    animation: floatShape 20s infinite linear;
}
.shape1 { width: 400px; height: 400px; top: -150px; left: -150px; }
.shape2 { width: 500px; height: 500px; bottom: -200px; right: -100px; animation-direction: reverse; animation-duration: 30s; }
.shape3 { width: 300px; height: 300px; top: 30%; left: 40%; animation-duration: 25s; }

@keyframes floatShape {
    0% { transform: rotate(0deg) translate(0, 0); }
    50% { transform: rotate(180deg) translate(50px, 30px); }
    100% { transform: rotate(360deg) translate(0, 0); }
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-logo img { height: 45px; }
.footer-slogan { font-size: 20px; font-weight: 500; color: #e0e0e0; }

.footer-about-text { font-size: 15px; color: #aaaaaa; line-height: 1.8; margin-bottom: 25px; max-width: 90%; }
.footer-phone { font-size: 26px; font-weight: 600; font-style: italic; color: #ffffff; margin-bottom: 30px; display: block; }

.footer-socials { d-flex: flex; gap: 15px; margin-bottom: 60px; }
.footer-social-btn {
    width: 45px; height: 45px; border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: #ffffff; display: flex; justify-content: center; align-items: center;
    font-size: 20px; transition: all 0.3s; text-decoration: none !important;
}
.footer-social-btn:hover { background-color: var(--accent-red); color: #ffffff; transform: translateY(-3px); }

.footer-copyright { font-size: 14px; color: #777777; }
.footer-title { font-size: 20px; font-weight: 600; margin-bottom: 30px; color: #ffffff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: #cccccc; font-size: 16px; text-decoration: none; transition: color 0.3s; display: inline-block; }
.footer-links a:hover { color: #ffffff; transform: translateX(5px); }

.footer-qr-container { text-align: center; background-color: rgba(0,0,0,0.2); padding: 30px 20px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); }
.footer-qr-title { font-size: 20px; font-weight: 600; margin-bottom: 20px; color: #ffffff; }
.footer-qr-container img { max-width: 160px; border-radius: 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.3); margin-bottom: 15px; background: #fff; padding: 5px; }
.footer-qr-text { font-size: 15px; color: #aaaaaa; }

@media (max-width: 991px) {
    .site-footer { padding: 40px 30px; }
    .footer-socials { margin-bottom: 40px; }
    .footer-qr-container { margin-top: 40px; }
}
@media (max-width: 768px) {
    .footer-top { flex-direction: column; align-items: flex-start; }
    .footer-slogan { margin-top: 15px; }
}

/* Bootstrap Modal Customized Styles */
.modal-content { background-color: var(--secondary-dark); color: white; border-radius: 15px; border: 1px solid rgba(255,255,255,0.1); }
.modal-header { border-bottom: 1px solid rgba(255,255,255,0.1); position: relative; }
.modal-title { font-weight: 600; }
.btn-close-modal { background: none; border: none; color: white; font-size: 24px; position: absolute; right: 20px; top: 15px; cursor: pointer; }
.form-control-dark { background-color: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 8px; }
.form-control-dark:focus { background-color: rgba(255,255,255,0.1); border-color: var(--accent-red); color: white; box-shadow: none; }
.form-control-dark::placeholder { color: rgba(255,255,255,0.5); }
.btn-submit-form { background: var(--accent-red); color: white; border: none; border-radius: 8px; padding: 12px; font-size: 18px; font-weight: 500; width: 100%; transition: all 0.3s; }
.btn-submit-form:hover { background: #cc0011; }

/* ================= Button Banner ================= */
.btn-banner-more {
    background: linear-gradient(90deg, #ff0015, #ff4d5a);
    color: #ffffff !important;
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 500;
    font-size: 16px;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 0, 21, 0.4);
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
    margin-top: 25px;
}
.btn-banner-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 0, 21, 0.6);
    color: #ffffff !important;
}
