﻿


@font-face {
    font-family: 'Sarabun';
    src: url('/fonts/Sarabun-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sarabun';
    src: url('/fonts/Sarabun-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sarabun';
    src: url('/fonts/Sarabun-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


body {
    font-family: 'Sarabun', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Sarabun', sans-serif;
    font-weight: 600;
    letter-spacing: -0.5px;
}


html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}




.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}



@media (max-width: 991px) {
    .hide-mobile {
        display: none !important;
    }
}



.offcanvas {
    width: 280px;
}

.offcanvas-body a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

    .offcanvas-body a:hover {
        color: #0d6efd;
    }

/* ==========================
Fade IN
========================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================
FACEBOOK STYLE LOGO
========================== */

.logo-facebook {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: .25s ease;
}

/* finger = Facebook Blue */
.logo-finger {
    font-family: 'Sarabun', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -1.6px;
    color: #1877F2; /* Facebook Blue */
}

/* thailand = dark enterprise */
.logo-thailand {
    font-family: 'Sarabun', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -1.4px;
    color: #111827;
}

/* hover */
.logo-facebook:hover {
    transform: translateY(-1px);
    opacity: .92;
}

/* mobile */
@media(max-width:768px) {

    .logo-finger,
    .logo-thailand {
        font-size: 28px;
    }
}







/* ==========================================
   FOOTER - FingerThailand
   Theme: Security Tech + Enterprise
========================================== */

.site-footer {
    background: linear-gradient( 180deg, #0f172a 0%, #111827 100% );
    padding: 60px 0 25px;
    border-top: 1px solid rgba(255,255,255,.08);
    position: relative;
    overflow: hidden;
}

    /* subtle tech glow */
    .site-footer::before {
        content: '';
        position: absolute;
        top: -140px;
        right: -120px;
        width: 320px;
        height: 320px;
        background: rgba(59,130,246,.08);
        border-radius: 50%;
        filter: blur(90px);
        pointer-events: none;
    }

    /* ==========================================
   LOGO
========================================== */

    .site-footer .navbar-brand {
        display: inline-flex;
        align-items: center;
        text-decoration: none;
        margin-bottom: 16px;
    }

    .site-footer .logo-finger {
        color: #ffffff !important;
        font-size: 28px;
        font-weight: 700;
        letter-spacing: -0.8px;
    }

    .site-footer .logo-thailand {
        color: #60a5fa !important;
        font-size: 28px;
        font-weight: 700;
        margin-left: 2px;
        letter-spacing: -0.8px;
    }

    .site-footer .navbar-brand:hover {
        opacity: .95;
    }

    /* ==========================================
   HEADINGS
========================================== */

    .site-footer h4 {
        color: #ffffff;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 14px;
        letter-spacing: .3px;
    }

    .site-footer h2f {
        color: #ffffff;
        font-size: 30px;
        font-weight: 600;
        margin-bottom: 5px;
        letter-spacing: .3px;
    }
    /* ==========================================
   FOOTER ABOUT / SEO TEXT
========================================== */

    .site-footer p {
        color: #94a3b8;
        font-size: 14px;
        line-height: 1.75;
        margin-bottom: 0;
    }

/* ==========================================
   FOOTER LINKS
========================================== */

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 4px;
        line-height: 1.4;
        color: #cbd5e1;
    }

    /* links */
    .footer-links a {
        color: #cbd5e1;
        text-decoration: none;
        position: relative;
        display: inline-block;
        transition: color .25s ease, transform .25s ease;
    }

        /* hover animation */
        .footer-links a:hover {
            color: #60a5fa;
            transform: translateX(4px);
        }

        /* animated underline */
        .footer-links a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -3px;
            width: 0;
            height: 2px;
            background: #3b82f6;
            transition: width .25s ease;
        }

        .footer-links a:hover::after {
            width: 100%;
        }

    /* ==========================================
   CONTACT
========================================== */

    .footer-links li {
        color: #cbd5e1;
    }

/* ==========================================
   LINE BUTTON
========================================== */

.site-footer .btn-success {
    background: linear-gradient( 135deg, #06c755 0%, #00b94d 100% );
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    transition: all .25s ease;
    box-shadow: 0 8px 20px rgba(6,199,85,.25);
}

    .site-footer .btn-success:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(6,199,85,.35);
    }

/* ==========================================
   COPYRIGHT
========================================== */

.site-footer .border-top {
    border-color: rgba(255,255,255,.08) !important;
}

.site-footer small {
    color: #64748b;
    font-size: 13px;
}

/* bottom links */
.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 16px;
    font-size: 14px;
    transition: color .2s ease;
}

    .footer-bottom a:hover {
        color: #60a5fa;
    }

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 768px) {

    .site-footer {
        padding: 50px 0 20px;
    }

        .site-footer h4 {
            margin-top: 10px;
        }

        .site-footer .logo-finger,
        .site-footer .logo-thailand {
            font-size: 24px;
        }

    .footer-bottom a {
        display: block;
        margin: 8px 0 0;
    }
}


/* BUTTON */
.site-footer .btn-light {
    border-radius: 8px;
}

/* FOOTER BOTTOM */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    margin-top: 30px;
}

/* SOCIAL */
.social-links a {
    color: rgba(255,255,255,0.85);
    margin: 0 5px;
}

    .social-links a:hover {
        color: #fff;
    }


.hero-img {
    max-width: 100%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero {
    background: linear-gradient(135deg, #f5f7fa, #e4e8ee);
    color: #1a1a1a;
    padding: 120px 0;
    overflow: hidden;
}

.hero-content {
    animation: fadeIn 1s ease forwards;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    border: 1px solid #e6eef8;
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s ease;
    background: #fff;
}

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    }


/*Animation ตอน Scall*/

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s ease;
    will-change: transform, opacity;
}

    /* ACTIVE STATE (IMPORTANT FIX) */
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

/* LEFT VARIANT */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.7s ease;
}

    .reveal-left.active {
        opacity: 1;
        transform: translateX(0);
    }

/* RIGHT VARIANT */
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.7s ease;
}

    .reveal-right.active {
        opacity: 1;
        transform: translateX(0);
    }

.why-us {
    background: #f5f7fa;
    border-radius: 24px;
    margin: 20px 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid #e6eef8;
}

    /* smooth spacing like SaaS */
    .why-us h2 {
        font-weight: 700;
        letter-spacing: -0.5px;
    }

/* TRUST CARD (premium SaaS style) */
.trust-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    border: 1px solid #e6eef8;
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

    .trust-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 50px rgba(0,0,0,0.08);
    }


   


/* Line Botton Pro */

.line-pro-btn {
    position: fixed;
    right: 40px;
    bottom: 50px;
    background: #06c755;
    color: #fff;
    padding: 12px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    /* ✅ เพิ่ม: ให้ขึ้นมาทันทีแบบ smooth */
    opacity: 0;
    transform: translateY(20px);
    animation: softBounce 3s infinite, fadeInUp 0.6s ease forwards;
}

    /* hover = stop animation */
    .line-pro-btn:hover {
        transform: scale(1.08);
        animation: none;
        color: #fff;
    }

/* fade in ตอนโหลดหน้า */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* icon */
.line-icon {
    font-size: 18px;
}

/* text */
.line-text {
    font-weight: 600;
    font-size: 14px;
}

/* badge */
.line-badge {
    background: rgba(255,255,255,0.25);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
}

/* bounce */
@keyframes softBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* glow */
.line-pro-btn::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50px;
    background: rgba(6,199,85,0.4);
    z-index: -1;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}








.category-mega-menu {
    position: absolute;
    z-index: 9999;
    min-width: 650px;
    max-width: 700px;
    background: #fff;
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .15);
}

    /* dropdown item */
    .category-mega-menu .dropdown-item {
        border-radius: 10px;
        padding: 10px 14px;
        white-space: normal;
        color: #1f2937;
        font-weight: 500;
        transition: all 0.2s ease;
    }

        /* hover */
        .category-mega-menu .dropdown-item:hover {
            background: rgba(59, 130, 246, 0.10);
            color: #2563eb;
            transform: translateX(4px);
        }

        /* active */
        .category-mega-menu .dropdown-item.active {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            color: #fff;
        }

.category-menu {
    border-radius: 30px;
    overflow: visible;
    background: #ffffff;
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.08);
    position: sticky;
    top: 90px;
    z-index: 100;
}

    /* HEADER */
    .category-menu .card-header {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        font-size: 1rem;
        font-weight: 600;
        padding: 14px 18px;
        border: none;
        color: #fff;
        border-radius: 30px 30px 0 0;
    }

    /* LIST */
    .category-menu .list-group-item {
        border: none;
        padding: 0;
    }

        /* LINK */
        .category-menu .list-group-item a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 18px;
            color: #1f2937;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.25s ease;
            position: relative;
        }

            /* LEFT INDICATOR */
            .category-menu .list-group-item a::before {
                content: "";
                position: absolute;
                left: 0;
                top: 50%;
                transform: translateY(-50%);
                width: 0;
                height: 60%;
                background: #2563eb;
                border-radius: 0 6px 6px 0;
                transition: all 0.25s ease;
            }

            /* HOVER */
            .category-menu .list-group-item a:hover {
                background: rgba(59, 130, 246, 0.08);
                color: #2563eb;
                padding-left: 26px;
            }

                /* SHOW LEFT BAR */
                .category-menu .list-group-item a:hover::before {
                    width: 4px;
                }

            /* ACTIVE */
            .category-menu .list-group-item a.active {
                background: rgba(59, 130, 246, 0.12);
                color: #2563eb;
                font-weight: 600;
                padding-left: 26px;
            }

                /* ACTIVE BAR */
                .category-menu .list-group-item a.active::before {
                    width: 4px;
                }

            /* RIGHT ICON */
            .category-menu .list-group-item a::after {
                content: "›";
                color: #94a3b8;
                font-size: 18px;
                transition: all 0.2s ease;
            }

            .category-menu .list-group-item a:hover::after {
                color: #2563eb;
                transform: translateX(3px);
            }










/* mobile */
@media (max-width: 768px) {
    .line-text {
        display: none;
    }
}



.project-card {
    border-radius: 22px;
    overflow: hidden;
    transition: .3s ease;
}

    .project-card:hover {
        transform: translateY(-6px);
    }

.project-image {
    height: 240px;
    object-fit: cover;
}

.project-box {
    background: #f8fafc;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #edf2f7;
}




/* LOGIN CENTER */
.login-page {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /*background: #f5f7fa;*/
}

/* Card Style SaaS */
.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 22px;
    padding: 40px;
    border: 1px solid #e8eef5;
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
    transition: .25s ease;
}

    .login-card:hover {
        transform: translateY(-2px);
    }

    .login-card h3 {
        font-weight: 700;
    }

    .login-card .form-control {
        border-radius: 12px;
        height: 48px;
        border: 1px solid #dbe4f0;
    }

        .login-card .form-control:focus {
            box-shadow: none;
            border-color: #1877f2;
        }

    .login-card .btn-primary {
        height: 48px;
        border-radius: 12px;
        font-weight: 600;
        /*background: #1877f2;*/
        border: none;
    }

        .login-card .btn-primary:hover {
            transform: translateY(-1px);
        }




.trust-box {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 35px rgba(0,0,0,.06);
}

.trust-list li {
    margin-bottom: 8px;
    color: #334155;
    font-size: 0.9rem;
}

.stat-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 18px 10px;
    transition: .3s;
    height: 100%;
}

    .stat-card:hover {
        transform: translateY(-3px);
    }

    .stat-card h2 {
        font-size: 1.8rem;
    }


/* ===================================
   PRODUCT CONTENT
=================================== */

.product-content {
    max-width: 100%;
    color: #2c3e50;
    font-size: 17px;
    line-height: 1.9;
}

/* Paragraph */
.product-content p {
    margin-bottom: 18px;
}

/* Heading */
.product-content h2 {
    position: relative;
    margin: 50px 0 20px;
    padding-left: 18px;
    font-size: 2rem;
    font-weight: 700;
    color: #0d6efd;
}

.product-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 6px;
    height: calc(100% - 10px);
    border-radius: 10px;
    background: #0d6efd;
}

.product-content h3 {
    margin: 35px 0 15px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #34495e;
}

.product-content h4 {
    margin: 25px 0 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Images */
.product-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
}

/* List */
.product-content ul,
.product-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.product-content li {
    margin-bottom: 10px;
}

/* Strong */
.product-content strong {
    color: #0d6efd;
    font-weight: 700;
}

/* Table */
.product-content table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,.05);
}

.product-content table thead {
    background: #0d6efd;
    color: #fff;
}

.product-content table th,
.product-content table td {
    padding: 14px 18px;
    border: 1px solid #edf2f7;
}

.product-content table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.product-content table tbody tr:hover {
    background: #eef6ff;
}

/* Blockquote */
.product-content blockquote {
    margin: 25px 0;
    padding: 20px 25px;
    background: #f8f9fa;
    border-left: 5px solid #0d6efd;
    border-radius: 10px;
}

/* FAQ Section */
.product-content .faq-item {
    margin-bottom: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}

.product-content .faq-question {
    padding: 18px 20px;
    font-weight: 600;
    cursor: pointer;
    background: #f8fafc;
}

.product-content .faq-answer {
    padding: 20px;
    background: #fff;
}

/* Highlight Box */
.product-content .highlight-box {
    background: linear-gradient(
        135deg,
        #0d6efd,
        #4f8cff
    );
    color: white;
    padding: 30px;
    border-radius: 18px;
    margin: 30px 0;
}

.product-content .highlight-box h3 {
    color: white;
    margin-top: 0;
}

/* Spec Card */
.product-content .spec-card {
    padding: 25px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,.05);
    margin-bottom: 20px;
}

/* Mobile */
@media (max-width: 768px) {

    .product-content {
        font-size: 16px;
    }

    .product-content h2 {
        font-size: 1.5rem;
    }

    .product-content h3 {
        font-size: 1.2rem;
    }

    .product-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

}

/* ==========================
   PRODUCT GRID WRAPPER
========================== */
.product-grid {
    margin-top: 10px;
}

/* ==========================
   CARD STYLE
========================== */
.product-card {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(59, 130, 246, 0.12);
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
}

    /* hover effect */
    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(37, 99, 235, 0.15);
        border-color: rgba(59, 130, 246, 0.25);
    }

/* ==========================
   IMAGE
========================== */
.product-img {
    display: block;
    background: #ffffff;
    padding: 18px;
    text-align: center;
}

    .product-img img {
        width: 100%;
        height: 220px;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

.product-card:hover .product-img img {
    transform: scale(1.05);
}

/* ==========================
   TITLE
========================== */
.product-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 8px;
    margin-bottom: 12px;
    line-height: 1.4;
    /* กันชื่อยาว */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* hover title */
.product-card:hover .product-title {
    color: #2563eb;
}

/* ==========================
   BUTTON
========================== */
.product-card .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 12px;
    transition: all 0.2s ease;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.2);
}

    /* hover button */
    .product-card .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    }

    /* active click */
    .product-card .btn-primary:active {
        transform: scale(0.98);
    }


/* ==========================
   Home Project slide
========================== */

.home-projects {
    background: #fff;
}

.project-main-image {
    width: 100%;
    height: 540px;
    object-fit: cover;
}

.project-grid-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: .4s;
}

.project-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

    .project-card:hover .project-grid-image {
        transform: scale(1.05);
    }

.project-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 15px;
    color: #fff;
    background: linear-gradient( to top, rgba(0,0,0,.8), rgba(0,0,0,0) );
}

.project-title{
    color:#fff;
    font-weight:700;
    font-size:1rem;
}

.project-customer{
    color:#fff;
    font-size:.85rem;
    opacity:.9;
    margin-top:4px;
}

.project-location{
    color:#fff;
    font-size:.8rem;
    opacity:.8;
    margin-top:2px;
}


.custom-caption {
    text-align: left;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px;
    background: linear-gradient( to top, rgba(0,0,0,.85), rgba(0,0,0,0) );
}

    .custom-caption h3 {
        color: #fff;
        margin: 0;
    }

@media (max-width: 991px) {

    .project-main-image {
        height: 350px;
    }

    .project-grid-image {
        height: 180px;
    }
}

