/* --- Variables & Reset --- */
:root {
    --uec-green: #7BC043; /* Similar to reference image header */
    --uec-dark-green: #5a962f;
    --uec-blue: #00A8E8; /* Electric Blue */
    --uec-yellow: #FFD700; /* Spark/Warning */
    --dark-bg: #0b1120; /* Deep circuit blue/black */
    --dark-card: #151e32;
    --text-color: #333;
    --text-light: #f4f4f4;
    
    --font-heading: 'Chakra Petch', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

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

/* --- Typography Utilities --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
}

.text-yellow { color: var(--uec-yellow); }
.text-green { color: var(--uec-green); }
.text-white { color: #fff; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 80px 0; }
.bg-dark { background-color: var(--dark-bg); }

/* --- Top Bar --- */
.top-bar {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #555;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span { margin-right: 20px; }
.contact-info i { color: var(--uec-green); margin-right: 5px; }

.social-icons a {
    color: #555;
    margin-left: 15px;
    font-size: 1rem;
}
.social-icons a:hover { color: var(--uec-green); }

/* --- Navbar (Sticky) --- */
.navbar {
    background-color: var(--uec-green);
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
}
.nav-links a:hover { color: var(--dark-bg); }

.btn-quote {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
}
.btn-quote:hover { background-color: #000; }

.mobile-menu-icon { display: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* --- Hero Section --- */
.hero {
    height: 90vh;
    background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
}

/* Dark Blue Gradient Overlay */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.9) 0%, rgba(0, 168, 232, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h4 {
    color: var(--uec-yellow);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.text-outline {
    /* Optional outline effect if desired, or simple bold */
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    color: #ddd;
}

.btn-primary {
    display: inline-block;
    background-color: var(--uec-blue);
    color: #fff;
    padding: 15px 35px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-right: 15px;
    border: none;
    cursor: pointer;
}

/* Electric Glow Effect */
.glow-effect {
    box-shadow: 0 0 15px var(--uec-blue);
    animation: pulse 2s infinite;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 13px 35px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}
.btn-secondary:hover { background-color: #fff; color: #333; }

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

/* --- About Section --- */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.divider { width: 60px; height: 4px; background-color: var(--uec-green); margin: 0 auto 20px; }
.bg-blue { background-color: var(--uec-blue); }

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

.feature-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.about-highlight {
    display: flex;
    gap: 20px;
}
.stat-box {
    background: #f9f9f9;
    padding: 30px;
    text-align: center;
    border-top: 4px solid var(--uec-green);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex: 1;
}
.stat-box i { font-size: 2rem; color: var(--uec-blue); margin-bottom: 10px; }

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--dark-card);
    padding: 40px 30px;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--uec-blue);
    box-shadow: 0 10px 30px rgba(0, 168, 232, 0.2);
}

.service-card .icon-wrapper {
    width: 60px; height: 60px;
    background-color: rgba(0, 168, 232, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    color: var(--uec-blue);
    font-size: 1.5rem;
}

.service-card h3 { margin-bottom: 15px; font-size: 1.4rem; }
.service-card p { color: #aaa; font-size: 0.95rem; }

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.info-item {
    display: flex;
    margin-top: 30px;
    align-items: flex-start;
}
.info-item i {
    width: 40px; height: 40px;
    background-color: var(--uec-green);
    color: #fff;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-form-container form {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    border-top: 5px solid var(--uec-yellow);
}

.form-group { margin-bottom: 20px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
}
.full-width { width: 100%; }

/* --- Footer --- */
footer {
    background-color: #000;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}
.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .address-hide-mobile { display: none; }
    .hero h1 { font-size: 2.5rem; }
    
    .nav-links { display: none; } /* Simple hiding for this demo */
    .mobile-menu-icon { display: block; }
    .btn-quote { display: none; }
    
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }

/* --- ส่วนที่เพิ่มใหม่สำหรับ Mobile Menu --- */
@media (max-width: 768px) {
    /* ซ่อนปุ่ม GET A QUOTE บนมือถือเพื่อประหยัดพื้นที่ */
    .btn-quote { display: none; }
    
    /* ปรับ Hero Section ให้ข้อความไม่ชิดขอบเกินไป */
    .hero {
        height: auto; /* ให้ความสูงยืดตามเนื้อหา */
        min-height: 80vh;
        padding: 120px 0 60px 0; /* เพิ่ม space ด้านบนเผื่อติด navbar */
        text-align: center;
    }
    
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-btns a { margin-right: 0; width: 100%; max-width: 300px; text-align: center; }

    /* ปรับแต่ง Navbar สำหรับมือถือ */
    .nav-links {
        position: absolute;
        top: 70px; /* ความสูงเดียวกับ Navbar */
        left: 0;
        width: 100%;
        background-color: var(--uec-green);
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0; /* ซ่อนเมนูโดยเริ่มจากความสูง 0 */
        overflow: hidden;
        transition: max-height 0.4s ease-out; /* Animation เลื่อนลง */
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    /* Class นี้จะถูกเติมโดย JavaScript เมื่อกดปุ่ม */
    .nav-links.active {
        display: flex;
        max-height: 300px; /* ความสูงเมื่อกางออก */
        padding-bottom: 20px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .mobile-menu-icon {
        display: block;
        font-size: 1.8rem;
    }
}
}