/* ==================================
   Automotive Theme - ช่างบูลย์ แบตไฮบริด
   ================================== */
   :root {
    /* โทนสีใหม่: ดุดัน ทันสมัย (น้ำเงินเข้มขรึม ตัดด้วยเหลือง/ทอง แฝงแดงนิดๆ) */
    --primary-dark: #0a192f; 
    --primary-blue: #112240; 
    --accent-gold: #f5d020; /* สีเหลืองพลังงาน */
    --accent-red: #e50914; /* สีแดงจุดเด่นตามภาพนามบัตร */
    --light-blue: #64ffda; 
    --bg-main: #f4f7f6; 
    --bg-card: #ffffff; 
    --text-dark: #1e293b; 
    --text-gray: #475569; 
    --border: #cbd5e1; 
    --font-primary: 'Prompt', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-gray); }
.text-sm { font-size: 0.975rem; }
.text-xs { font-size: 0.85rem; }
.font-bold { font-weight: 700; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2.5rem; }
.mt-section { margin-top: 5rem; }
.mb-section { margin-bottom: 5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-100 { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.shadow-lg { box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); }
.rounded-image { border-radius: 12px; width: 100%; object-fit: cover; }
.bg-dark { background-color: var(--primary-dark); }
.bg-light-gray { background-color: #e2e8f0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-divider { height: 1px; width: 100%; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 4rem 0; }

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--primary-dark);
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo-wrapper { display: flex; align-items: center; text-decoration: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-title { font-size: 2.5rem; font-weight: 800; color: #fff; text-transform: uppercase;}
.logo-subtitle { font-size: 0.8rem; font-weight: 600; color: var(--accent-gold); letter-spacing: 0.1em; }

.desktop-nav .nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { text-decoration: none; color: #cbd5e1; font-weight: 500; font-size: 1rem; transition: color 0.2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-gold); }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background-color: var(--accent-gold); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.btn-primary { background-color: var(--accent-gold); color: #000; padding: 10px 24px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: all 0.2s; border: none; display: inline-block; cursor: pointer; }
.btn-primary:hover { background-color: #dfbc18; transform: translateY(-2px); }
.btn-outline { background-color: transparent; border: 2px solid var(--accent-gold); color: var(--accent-gold); padding: 10px 24px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: all 0.2s; display: inline-block;}
.btn-outline:hover { background-color: var(--accent-gold); color: #000; }
.btn-large { padding: 14px 32px; font-size: 1.1rem; }

/* Hero */
.hero-section { position: relative; padding: 8rem 0 6rem; min-height: 70vh; display: flex; align-items: center; justify-content: center; overflow: hidden; background-color: #050b14; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; background: radial-gradient(circle at center, #112240 0%, #050b14 100%); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.05)"/></svg>'); z-index: -1; }
.hero-content { position: relative; z-index: 1; color: white; max-width: 800px; }
.badge { display: inline-block; padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; }
.badge-primary { background: rgba(245, 208, 32, 0.15); color: var(--accent-gold); border: 1px solid var(--accent-gold); }
.badge-hot { background: var(--accent-red); color: white; border: none; animation: pulse 2s infinite; }
.hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; color: #fff; }
.text-gradient-gold { background: linear-gradient(90deg, #f5d020, #f9a826); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.25rem; color: #cbd5e1; font-weight: 300; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(229, 9, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

/* Sections */
.section-title { font-size: 2.2rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 0.5rem; }
.accent-line { width: 60px; height: 4px; background: var(--accent-gold); border-radius: 2px; }
.desc { font-size: 1.05rem; color: var(--text-gray); line-height: 1.8; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; margin-top: 3rem; }
.service-card { background: var(--bg-card); padding: 2rem; border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); border-top: 4px solid var(--primary-blue); transition: transform 0.3s; }
.service-card:hover { transform: translateY(-5px); border-top-color: var(--accent-gold); }
.icon-light { width: 50px; height: 50px; background: #f1f5f9; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 1.5rem; }
.fact-box { background-color: #f8fafc; padding: 12px; border-radius: 8px; border-left: 3px solid var(--accent-gold); color: #334155; line-height: 1.5; }

/* Upgrade Section (NMC Battery) */
.upgrade-section { padding: 0 24px; }
.upgrade-card { background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue)); border-radius: 20px; overflow: hidden; position: relative; display: flex; flex-direction: column; align-items: center; padding: 4rem 2rem; text-align: center; }
.upgrade-title { color: #fff; font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.specs-box { display: inline-flex; gap: 1.5rem; background: rgba(255,255,255,0.1); padding: 10px 20px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.2); }
.spec-item { color: var(--accent-gold); font-size: 1.1rem; }
.benefit-list { list-style: none; text-align: left; max-width: 800px; margin: 0 auto; color: #cbd5e1; }
.benefit-list li { margin-bottom: 1rem; background: rgba(0,0,0,0.2); padding: 1rem 1.5rem; border-radius: 10px; display: flex; align-items: flex-start; gap: 1rem;}
.benefit-list .icon { font-size: 1.5rem; }
.benefit-list .fact { font-size: 0.95rem; line-height: 1.5; display: block; margin-top: 4px; color: #94a3b8; }
.benefit-list strong { color: #fff; font-size: 1.1rem; }

/* Contact Section */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-info-card { background: var(--bg-card); padding: 2.5rem; border-radius: 12px; border-top: 4px solid var(--primary-dark); }
.contact-methods { display: flex; flex-direction: column; gap: 1.5rem; }
.method-item { display: flex; align-items: flex-start; gap: 1rem; }
.method-item .icon { font-size: 1.8rem; }
.method-item .label { display: block; font-size: 0.9rem; color: var(--text-gray); margin-bottom: 0.2rem; font-weight: 600;}
.method-item .value { font-weight: 700; color: var(--primary-dark); text-decoration: none; }
.method-item a.value:hover { color: var(--accent-red); }

/* Footer */
.footer { background: #050b14; color: #94a3b8; padding: 3rem 24px; border-top: 1px solid #1e293b; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-gold); }

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hero-title { font-size: 2.2rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .specs-box { flex-direction: column; border-radius: 12px; gap: 0.5rem; }
    .footer-content { flex-direction: column; gap: 2rem; align-items: flex-start; }
    .btn-large { padding: 12px 20px; font-size: 1rem; display: block; width: 100%; margin: 10px 0 !important;}
}

/* ==================================
   Image Integration Styles (เพิ่มใหม่)
   ================================== */

/* รูปภาพในส่วนอัปเกรด (Upgrade Section) */
.upgrade-image {
    width: 100%;
    max-width: 500px; /* จำกัดขนาดไม่ให้ใหญ่เกินไปบนจอคอม */
    height: auto;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.2); /* ใส่ขอบจางๆ ให้ดูมีมิติ */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.upgrade-image:hover {
    transform: scale(1.02); /* เวลาเอาเมาส์ชี้ รูปจะขยายขึ้นนิดนึง */
}

/* รูปภาพ QR Code ในส่วนติดต่อ (Contact Section) */
.qr-container {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    border: 2px dashed var(--border);
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: border-color 0.3s;
}

.qr-container:hover {
    border-color: var(--accent-gold);
}

.qr-image {
    width: 200px;
    height: 200px;
    object-fit: contain; /* ให้รูป QR Code ไม่เบี้ยว */
    display: block;
    margin: 0 auto;
}

/* ==================================
   ตัวเลือกเสริม: หากต้องการใส่รูป Background ตรง Hero (หน้าแรกบนสุด)
   ================================== */
/* 
หากคุณมีรูปหน้าร้าน หรือรูปรถไฮบริดสวยๆ สามารถเปลี่ยนโค้ด .hero-bg ด้านบนเป็นแบบนี้ได้:
.hero-bg { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; 
    background-image: url('assets/hero-bg.jpg');  <-- เปลี่ยนชื่อรูปตรงนี้
    background-size: cover;
    background-position: center;
}
*/