/* ===============================
   Reset & Base
================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f4f6f9;
}

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

/* ===============================
   Header & Navigation
================================= */
header {
    background: linear-gradient(rgba(30,60,114,0.85), #1e3c72),
                url('../images/industrial-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 50px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Responsive Logo (Modern Solution) */
.logo img {
    width: clamp(140px, 20vw, 250px);
    height: auto;
}

/* Navigation Links */
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    color: white;
    font-weight: 500;
    font-size: 20px;
}

nav a:hover {
    opacity: 0.7;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
}

/* ===============================
   Hero Section
================================= */
.hero {
    text-align: center;
    padding: 30px 20px 20px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: auto;
}

/* ===============================
   Features / Services Section
================================= */
section.features {
    padding: 70px 20px;
    background: white;
}

section.features h2 {
    font-size: 2rem;
    margin-bottom: 50px;
    text-align: center;
    color: #1e3c72;
}

.feature-grid {
    display: grid;
    gap: 30px;
}

/* 4 columns (Index page) */
.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 3 columns (Contact page) */
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ===============================
   Feature Cards
================================= */
.feature {
    background: #f4f6f9;
    padding: 30px 25px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature h3 {
    margin-bottom: 15px;
    color: #1e3c72;
}

.feature p {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.feature a {
    color: #1e3c72;
    font-weight: 500;
}

.feature a:hover {
    text-decoration: underline;
}

/* ===============================
   Footer
================================= */
footer {
    background: #1e3c72;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

footer p {
    margin: 6px 0;
    font-size: 0.9rem;
}

/* ===============================
   Responsive Design
================================= */

/* Tablet */
@media(max-width: 992px) {

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h2 {
        font-size: 2rem;
    }

    nav a {
        font-size: 18px;
    }
}

/* Mobile */
@media(max-width: 576px) {

    /* Show hamburger */
    .menu-toggle {
        display: block;
    }

    /* Hide menu by default */
    nav ul {
        display: none;
        flex-direction: column;
        gap: 15px;
        background: #1e3c72;
        padding: 15px;
        border-radius: 5px;
        margin-top: 10px;
        width: 100%;
    }

    /* Show menu when active */
    nav ul.active {
        display: flex;
    }

    /* Single column grids */
    .grid-4,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 1rem;
    }

    nav a {
        font-size: 16px;
    }
}
