/* Modern Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #FFE01F;
    /* Industrial Yellow */
    --accent-color: #0056b3;
    /* Professional Blue */
    --hazard-red: #d32f2f;
    --text-dark: #222;
    --text-light: #555;
    --bg-white: #ffffff;
    --bg-light: #f4f6f8;
    --font-heading: 'Sarabun', sans-serif;
    --font-body: 'Sarabun', sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--accent-color);
}

.text-hazard {
    color: var(--hazard-red);
}

/* Header */
header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    color: var(--text-dark);
}

nav a:hover {
    color: var(--accent-color);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 50, 100, 0.7), rgba(0, 0, 0, 0.8)), url('../picture/hero_new.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    margin-top: var(--header-height);
    position: relative;
    padding: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: repeating-linear-gradient(45deg,
            #FFE01F,
            #FFE01F 20px,
            #000 20px,
            #000 40px);
    border-top: 2px solid white;
}

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

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--text-dark);
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #d4c510;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: white;
    color: var(--text-dark);
}

/* Features Section */
.features {
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Product Options */
.products {
    background: var(--bg-light);
}

.product-colors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.color-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    width: 200px;
    flex-grow: 0;
}

.color-swatch {
    height: 100px;
    width: 100%;
}

.color-info {
    padding: 1rem;
}

.color-info span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Application Section */
.applications {
    background: var(--bg-white);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.app-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: filter 0.3s;
}

/* Enhancing sharpness/clarity for first 3 images */
.app-item:nth-child(-n+3) img {
    filter: contrast(115%) brightness(105%) saturate(110%);
}

.app-item h3 {
    color: var(--accent-color);
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 4rem 0 1rem;
    text-align: center;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.contact-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    margin-top: 2rem;
}

.copyright {
    margin-top: 4rem;
    padding-top: 1rem;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-container nav.active {
        display: flex;
    }

    .nav-container nav ul {
        flex-direction: column;
        gap: 0;
    }

    .nav-container nav li {
        text-align: center;
    }

    .nav-container nav a {
        display: block;
        padding: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
        width: 100%;
    }
}