/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Sarabun:wght@300;400;600&display=swap');

:root {
    --primary: #0a192f;   /* Navy Blue เข้มหรู */
    --accent: #ff6b00;    /* สีส้มก่อสร้าง */
    --light: #ffffff;
    --gray: #f4f4f4;
    --text: #333333;
}

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

body {
    font-family: 'Poppins', 'Sarabun', sans-serif; /* Poppins สำหรับอังกฤษ, Sarabun สำหรับไทย */
    background-color: var(--gray);
    color: var(--text);
    padding-top: 80px; /* เว้นที่ให้ Header */
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* --- Header Styling --- */
header {
    background: var(--primary);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    height: 80px;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo */
.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--light);
    letter-spacing: 1px;
}
.logo span { color: var(--accent); }

/* Menu Desktop */
.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-links li a:hover, 
.nav-links li a.active {
    color: var(--accent);
}

/* เส้นขีดใต้เวลา Hover */
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent);
    bottom: 0;
    left: 0;
    transition: 0.3s;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 10px;
    margin-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 20px;
}
.lang-btn {
    color: var(--light);
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.5;
    cursor: pointer;
}
.lang-btn.active-lang {
    opacity: 1;
    color: var(--accent);
    text-decoration: underline;
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--light);
    transition: 0.3s;
}

/* --- Responsive (Mobile/Tablet) --- */
@media (max-width: 1024px) {
    .hamburger { display: flex; }
    
    .nav-links {
        position: absolute;
        top: 80px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 80px);
        background: var(--primary);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li { margin: 15px 0; }
    
    .lang-switch {
        margin: 20px 0 0 0;
        border-left: none;
        padding-left: 0;
        justify-content: center;
    }
	
	
}
/* ===========================
   Footer Styling
   =========================== */
footer {
    background-color: #050d1a; /* สีน้ำเงินเข้มเกือบดำ (Darker Navy) */
    color: #ffffff;
    padding: 60px 0 20px 0;
    margin-top: auto; /* ดัน Footer ลงล่างสุดเสมอ */
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    color: var(--accent); /* สีส้ม */
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* เส้นขีดใต้หัวข้อ */
.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #cccccc;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px; /* ขยับเล็กน้อยตอน Hover */
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    color: #777;
    font-size: 0.8rem;
}

/* ===========================
   Floating Contact Buttons (ปุ่มลอย)
   =========================== */
.floating-contacts {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.float-btn:hover {
    transform: scale(1.1); /* ขยายใหญ่ขึ้นตอนเอาเมาส์ชี้ */
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* สีเฉพาะของแต่ละปุ่ม */
.btn-line { background-color: #06C755; } /* สีเขียว Line */
.btn-fb { background-color: #1877F2; }   /* สีฟ้า Facebook */
.btn-call { background-color: #ff6b00; } /* สีส้ม โทรศัพท์ */

/* Tooltip (ข้อความบอกตอนชี้) */
.float-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.float-btn:hover::before {
    opacity: 1;
    visibility: visible;
    right: 65px; /* เลื่อนเข้ามานิดนึง */
}

/* Animation ให้ปุ่มโทรดุ๊กดิ๊ก เรียกร้องความสนใจ */
@keyframes shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(-10deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}

.btn-call {
    animation: shake 3s infinite;
}
/* ================= Index Page Styling ================= */

/* Hero Section */
.hero-section {
    height: 90vh; /* ความสูงเกือบเต็มจอ */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 5px;
}
.btn-primary { background: var(--accent); color: white; border: 2px solid var(--accent); }
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-outline { background: transparent; color: white; border: 2px solid white; }
.btn-outline:hover { background: white; color: var(--primary); }

/* Section General */
.section-padding { padding: 80px 0; }
.bg-light { background-color: #f9f9f9; }
.sub-heading { color: var(--accent); font-weight: 600; letter-spacing: 2px; margin-bottom: 10px; font-size: 0.9rem; }
.text-center { text-align: center; }

/* Flex Layout (Image + Text) */
.row-flex { display: flex; align-items: center; gap: 50px; }
.col-half { flex: 1; }
.img-responsive { width: 100%; height: auto; object-fit: cover; }
.rounded { border-radius: 8px; }
.shadow { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* Feature List */
.feature-list li { margin-bottom: 10px; font-size: 1.1rem; }
.feature-list i { color: var(--accent); margin-right: 10px; }

/* Service Cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.service-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.service-card:hover { transform: translateY(-10px); }
.img-wrapper { height: 200px; overflow: hidden; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.service-card:hover img { transform: scale(1.1); }
.card-body { padding: 25px; text-align: left; }

/* Stats / Dark Section */
.dark-bg { background-color: var(--primary); color: white; }
.stats-grid { text-align: center; }
.stat-item i { font-size: 3rem; color: var(--accent); margin-bottom: 15px; }
.stat-item h3 { font-size: 2.5rem; font-weight: 700; margin-bottom: 5px; }
.text-white { color: white; margin-bottom: 40px; }

/* CTA Section */
.cta-section { background: var(--accent); padding: 60px 0; color: white; }
.cta-section h2 { margin-bottom: 20px; }
.cta-section .btn-primary { background: white; color: var(--accent); border-color: white; }

/* Responsive */
@media (max-width: 768px) {
    .row-flex { flex-direction: column; }
    .hero-content h1 { font-size: 2.5rem; }
}