/* =============================================
   SHARED STYLES — Prove Fortech Sdn Bhd
   Used by: index, service, story, contact
   ============================================= */

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Header ─────────────────────────────────── */
header {
    background-color: #004085;
    padding: 15px 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

.logo img {
    width: 150px;
    height: auto;
    transition: width 0.3s ease;
}

.company-name {
    font-size: 2.1rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    transition: font-size 0.3s ease;
}

/* ── Mobile Menu Toggle ──────────────────────── */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 25px;
    justify-content: space-between;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ── Nav ─────────────────────────────────────── */
nav {
    display: flex;
    transition: all 0.3s ease;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 15px;
    transition: background 0.3s, color 0.3s;
    display: inline-block;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #0056b3;
    color: white;
}

/* ── Shared Button ───────────────────────────── */
.btn {
    background-color: #0056b3;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: inline-block;
    position: relative;
}

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

/* ── Footer ──────────────────────────────────── */
footer {
    background-color: #004085;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.9em;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 5px 0;
}

/* =============================================
   SHARED MEDIA QUERIES
   ============================================= */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
        gap: 15px;
    }

    .logo img {
        width: 120px;
    }

    .company-name {
        font-size: 1.6rem;
        white-space: normal;
        line-height: 1.2;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 260px;
        height: calc(100vh - 70px);
        background-color: #004085;
        flex-direction: column;
        z-index: 9999;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    nav ul li a {
        display: block;
        padding: 15px 20px;
        text-align: left;
        font-size: 1rem;
        border-radius: 0;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    header {
        height: 80px;
        padding: 0;
    }

    .header-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 10px;
        height: 100%;
        padding: 0 15px;
    }

    .logo img {
        width: 120px;
    }

    .company-name {
        font-size: 1.1rem;
        line-height: 1.2;
        white-space: normal;
        text-align: left;
    }

    nav {
        top: 70px;
        height: calc(100vh - 70px);
    }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
    .company-name {
        font-size: 1rem;
    }

    .menu-toggle {
        width: 26px;
        height: 22px;
    }
}
