/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 350px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('../images/important/machine6.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    text-align: center;
}

.hero-title {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Filter Section */
.filter-section {
    background-color: #f5f5f5;
    padding: 30px 0;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.btn-filter {
    background-color: #0099cc;
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 3px;
    white-space: nowrap;
    transition: all 0.3s ease;
    text-transform: capitalize;

}

.btn-filter:hover {
    background-color: #0077aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-filter:active {
    transform: translateY(0);
}

/* Clients Section */
.clients-section {
    background-color: #ffffff;
    padding: 50px 0;
}

.category-section {
    margin-bottom: 60px;
}

.category-title {
    color: #333333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0099cc;
    display: inline-block;
}

/* Client Cards */
.client-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    border-color: #0099cc;
}

.client-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive Design */

/* Tablets */
@media (max-width: 991px) {
    .hero-title {
        font-size: 36px;
        letter-spacing: 3px;
    }

    .hero-section {
        height: 200px;
    }

    .btn-filter {
        font-size: 12px;
        padding: 7px 16px;
    }

    .category-title {
        font-size: 18px;
    }

    .client-card {
        height: 100px;
        padding: 15px;
    }
}

/* Mobile Devices */
@media (max-width: 767px) {
    .hero-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .hero-section {
        height: 180px;
    }

    .filter-section {
        padding: 20px 0;
    }

    .btn-filter {
        font-size: 11px;
        padding: 6px 14px;
    }

    .clients-section {
        padding: 30px 0;
    }

    .category-section {
        margin-bottom: 40px;
    }

    .category-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .client-card {
        height: 90px;
        padding: 10px;
    }
}

/* Small Mobile Devices */
@media (max-width: 575px) {
    .hero-title {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .hero-section {
        height: 150px;
    }

    .filter-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        /* padding-bottom: 10px; */
        padding: 40px 30px;
        gap: 8px;
    }

    .btn-filter {
        font-size: 10px;
        padding: 6px 12px;
    }

    .client-card {
        height: 80px;
        padding: 8px;
    }
}

/* Extra Small Devices */
@media (max-width: 380px) {
    .hero-title {
        font-size: 20px;
    }

    .hero-section {
        height: 250px;
    }

    .filter-buttons {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        padding: 10px 20px;
        box-sizing: border-box;
    }

    .btn-filter {
        font-size: 9px;
        padding: 5px 10px;
    }

    .client-card {
        height: 70px;
    }
}

/* Container adjustments */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Grid spacing adjustments */
.row.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

@media (max-width: 575px) {
    .row.g-3 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
}