/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* NAVBAR STYLING */

/* Navbar container */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #1e3d59; /* Dark blue */
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .logo img {
    max-width: 200px; /* Adjust the size of the logo */
    height: auto;
    display: block;
    margin: auto 0; /* Center vertically */
}

/* Logo */
nav .logo a {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav .logo a:hover {
    color: #ff6f61; /* Soft red on hover */
}

/* Navigation links */
@media (width > 768px) {
    nav .nav-links {
        list-style: none;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
    }
}

nav .nav-links li {
    margin-left: 30px; /* Space between links */
}

nav .nav-links li a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    font-weight: 400;
    border-bottom: 2px solid transparent; /* No borders initially */
    transition: all 0.3s ease;
}

/* Hover effect: subtle border bottom */
nav .nav-links li a:hover {
    border-bottom: 2px solid #ff6f61;
    color: #ff6f61;
}

/* Hamburger Menu for Mobile */
.hamburger {
    display: none; /* Hidden by default */
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    height: 3px;
    width: 25px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Media Queries for responsiveness */
@media (width <= 768px) {
    /* Hide the links by default */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background-color: #1e3d59;
        text-align: center;
    }

    /* Show the links when navbar is active */
    .nav-links.active {
        display: flex;
    }

    nav .nav-links li {
        margin: 20px 0;
    }

    /* Show the hamburger menu on mobile */
    .hamburger {
        display: flex;
    }
}

/* Toggle hamburger to an "X" when active */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-10px, 8px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-10px, -8px);
}

/* Footer */
footer {
    background-color: #1e3d59;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

footer p {
    margin: 0;
}

/* Hero section styling */
.hero {
    text-align: center;
    padding: 100px 20px;
    background-color: #ececec;
    background: linear-gradient(rgba(30, 61, 89, 0.9), rgba(30, 61, 89, 0.9)), url('../images/metal_bg.jpg') no-repeat center center/cover; /* Background image */
}

.hero h1 {
    font-size: 48px;
    color: #ffffff;
}

.hero p {
    font-size: 20px;
    color: #ffffff;
    margin-top: 20px;
}

/* Main container */
.container {
    padding: 50px 20px;
    text-align: center;
}

.container h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.container p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

.materials-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.material-card {
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.material-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.material-info {
    padding: 15px;
    text-align: center;
}

.material-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1e3d59; /* Matches navy blue theme */
}

.material-info p {
    font-size: 14px;
    color: rgb(89, 89, 89);
}

.contact-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-header h2 {
    color: #1e3d59;
    font-size: 24px;
    margin-bottom: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin: 20px 0;
    padding: 10px;
    transition: background 0.2s;
}

.contact-item:hover {
    background: #f5f5f5;
    border-radius: 4px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    color: #1e3d59;
}

.contact-info a {
    color: #1e3d59;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: #324a8c;
}