/* ============================================
   MARKPULSE ENERGY SOLUTIONS - UNIFIED STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* ============================================
   HEADER STYLES
   ============================================ */

header {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: linear-gradient(135deg, #003D82 0%, #004a9e 100%);
    padding: 0.5rem 5%;
    border-bottom: 3px solid #FF8C42;
}

.top-bar-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2.5rem;
}

.top-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.85rem;
}

.top-contact-item svg {
    color: #FF8C42;
    flex-shrink: 0;
}

.top-contact-item span {
    font-weight: 500;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.7rem 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.logo img {
    height: 42px;
    width: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    padding: 0.4rem 0;
    position: relative;
    white-space: nowrap;
    display: inline-block;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #FF8C42, #FFA85A);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #FF8C42;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============================================
   FOOTER STYLES - UNIFORM FOR ALL PAGES
   ============================================ */

footer {
    background: linear-gradient(135deg, #0a1628 0%, #1a2938 100%);
    color: #e0e0e0;
    padding: 2rem 5% 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 0.6rem;
}

.footer-about {
    color: #b8c2cc;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

.footer-badge {
    height: 55px;
    width: auto;
    margin-top: 0.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #b8c2cc;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: #FF8C42;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    color: #b8c2cc;
    font-size: 0.85rem;
    line-height: 1.4;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: #FF8C42;
    width: 14px;
    height: 14px;
}

.footer-contact span {
    color: #b8c2cc;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.social-links a {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background: linear-gradient(135deg, #FF8C42, #FFA85A);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 0;
    text-align: center;
}

.footer-bottom p {
    color: #8b96a1;
    font-size: 0.8rem;
}

/* ============================================
   PAGE HEADER SECTIONS (for Products, Refer, Quote, Contact)
   ============================================ */

.page-header {
    background: linear-gradient(135deg, #003D82, #004a9e);
    color: white;
    padding: 4rem 5%;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.15rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Mobile Menu Toggle Button (Hidden on desktop) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: #003D82;
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-origin: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide navigation by default on mobile */
    .nav-right {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        padding: 80px 0 20px;
        overflow-y: auto;
    }
    
    /* Show navigation when active */
    .nav-right.active {
        right: 0;
    }
    
    /* Style navigation links for mobile */
    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1rem;
        white-space: normal;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background: #f8f9fa;
        color: #FF8C42;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.7rem 5%;
    }
    
    .logo img {
        height: 35px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Overlay for mobile menu */
@media (max-width: 768px) {
    .nav-right.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: -1;
    }
}
