﻿/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    font-family: "Poppins", sans-serif;
}

/* ===== HEADER BASE ===== */
.nifco-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 3000;
    background: #c62828;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

/* ===== TOP SECTION (LOGO + NAME) ===== */
.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 8px; /* reduced from 28px */
    background: #e53935;
    border-bottom: 3px solid #ffd700;
}

.brand-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.nifco-logo {
    height: 120px; /* reduced from 180px */
    width: auto;
}

/* ===== COMPANY TEXT ===== */
.brand-text {
    text-align: center;
}

.company-name {
    font-size: 56px; /* reduced from 74px */
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.company-tagline {
    font-size: 22px; /* reduced from 32px */
    color: #ffd700;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

/* ===== NAVIGATION SECTION ===== */
.header-bottom {
    background: #c62828;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nifco-nav {
    width: 100%;
    max-width: 1300px;
    padding: 10px 24px; /* reduced from 14px */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px; /* reduced spacing */
    flex-wrap: wrap;
}

    .menu li a {
        color: #fff;
        font-size: 20px;
        font-weight: 700;
        text-decoration: none;
        position: relative;
        transition: all 0.3s ease;
    }

        .menu li a:hover,
        .menu li a.active {
            color: #ffd700;
        }

        .menu li a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -5px;
            height: 3px;
            width: 0;
            background: #ffd700;
            transition: width 0.3s ease;
        }

        .menu li a:hover::after,
        .menu li a.active::after {
            width: 100%;
        }

/* ===== MOBILE MENU TOGGLE ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: none;
    background: transparent;
    cursor: pointer;
}

    .nav-toggle .bar {
        width: 30px;
        height: 3px;
        background: #fff;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .brand-container {
        flex-direction: column;
        gap: 10px;
    }

    .nifco-logo {
        height: 70px;
    }

    .company-name {
        font-size: 38px;
    }

    .company-tagline {
        font-size: 16px;
    }

    .menu {
        position: fixed;
        top: 120px;
        left: 0;
        width: 100%;
        height: calc(100vh - 120px);
        background: #c62828;
        flex-direction: column;
        gap: 25px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .nifco-nav.open .menu {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }
}

/* ===== HEADER SCROLL EFFECT ===== */
header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background 0.3s, box-shadow 0.3s;
}
