/* --- GLOBAL BRAND VARIABLES --- */
:root {
    --primary-blue: #0066cc;
    --navy-accent: #24416b;   
    --dark-navy: #0a1929;     
    --text-main: #111111;
    --text-muted: #666666;
    --container-width: 1400px;
    --header-height: 90px;
    --top-nav-height: 40px;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- GLOBAL MARGINS (CENTERS ALL CONTENT) --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%; 
    width: 100%;
}

/* --- FIXED HEADER & NAVIGATION --- */
header {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    top: 0;
}

.top-nav { background: #003366; color: white; height: var(--top-nav-height); }
.top-nav-content {
    max-width: var(--container-width); margin: 0 auto; display: flex;
    justify-content: space-around; align-items: center; height: 100%;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px;
}
.top-nav-item { flex: 1; text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.top-nav-item:last-child { border-right: none; }

nav {
    display: flex; justify-content: space-between; align-items: center;
    max-width: var(--container-width); margin: 0 auto; height: var(--header-height); padding: 0 5%;
}

.logo { display: flex; align-items: center; gap: 1rem; }
.logo-text { font-size: 1.8rem; font-weight: bold; color: var(--primary-blue); letter-spacing: 1px; text-transform: lowercase; }
.logo-subtext { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; border-left: 2px solid var(--primary-blue); padding-left: 1rem; line-height: 1.2; }

/* NAVIGATION LINKS */
.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; height: 100%; }
.nav-item { position: static; height: 100%; display: flex; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; transition: 0.3s; position: relative; }

/* --- PAGE ACTIVE HIGHLIGHT (COLOR + UNDERLINE) --- */
.nav-links a.active {
    color: var(--primary-blue) !important;
    font-weight: 700;
}
@media (min-width: 1025px) {
    .nav-links a.active::after {
        content: ""; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px; background-color: var(--primary-blue);
    }
}

/* --- TECHNICAL OUTSOURCING BUTTON --- */
header .nav-links li a.nav-highlight {
    background-color: var(--primary-blue) !important; color: #ffffff !important;
    padding: 10px 22px !important; border-radius: 50px !important; font-weight: 700 !important;
    display: inline-flex !important; align-items: center; border: none !important;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.15);
}
header .nav-links li a.nav-highlight:hover { background-color: var(--dark-navy) !important; transform: translateY(-2px); }
.nav-links a.nav-highlight.active::after { display: none !important; }

/* --- MEGA MENU --- */
.mega-menu {
    position: absolute; top: calc(var(--header-height) + var(--top-nav-height)); left: 0; width: 100vw;
    background: white; box-shadow: 0 15px 50px rgba(0,0,0,0.15); display: none; border-top: 1px solid #eee; z-index: 1000;
}
@media (min-width: 1025px) { .nav-item:hover .mega-menu { display: block !important; } }
.mega-container { max-width: var(--container-width); margin: 0 auto; display: flex; min-height: 450px; }
.mega-menu-left { width: 350px; background: #f8f9fa; padding: 3rem 0; border-right: 1px solid #e0e0e0; }
.mega-menu-item { padding: 1.2rem 3.5rem; cursor: pointer; transition: 0.3s; border-left: 4px solid transparent; font-size: 0.9rem; font-weight: 500; color: var(--text-main); }
.mega-menu-item.active { background: white; border-left-color: var(--primary-blue); color: var(--primary-blue); }
.mega-menu-right { flex: 1; padding: 4rem 5%; display: none; }
.mega-menu-right.active { display: block; }
.mega-detail-header { display: flex; gap: 2rem; align-items: flex-start; }
.mega-detail-image { width: 300px; height: 180px; object-fit: cover; border-radius: 4px; }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1100; }
.hamburger span { width: 28px; height: 3px; background: var(--primary-blue); transition: 0.3s; }

/* --- HERO SYSTEM --- */
.hero {
    width: 100%; padding-top: calc(var(--header-height) + var(--top-nav-height));
    display: flex; align-items: center; justify-content: center; color: white;
    text-align: center; background-size: cover; background-position: center; position: relative;
}
.hero.home-hero { height: 75vh; }
.hero.page-hero { height: 400px; }
.hero h1 { font-size: 4rem; font-weight: 300; line-height: 1.1; margin: 0; }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,0.8); font-weight: 300; margin-top: 15px; }

/* --- GRID & SPACING --- */
.section-padding { padding: 100px 0; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 6rem; align-items: center; }

/* --- OUR PROJECTS (FULL-WIDTH FLOATING NAVY) --- */
.projects-gallery { padding: 100px 0; text-align: center; background: #fff; overflow: hidden; }
.projects-gallery h2 { font-size: 3.5rem; margin-bottom: 20px; font-weight: 500; letter-spacing: -1px; }
.projects-gallery .intro-p { max-width: 800px; margin: 0 auto 60px; color: var(--text-muted); font-size: 1.05rem; }
.projects-grid-wrapper { position: relative; max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.projects-grid-wrapper::before {
    content: ""; position: absolute; z-index: 0; background-color: var(--navy-accent);
    width: 100vw; left: 50%; transform: translateX(-50%); top: 12%; bottom: 12%;
}
.project-photo-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.project-photo-item { aspect-ratio: 1/1; overflow: hidden; background: #f0f0f0; box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.project-photo-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.project-photo-item:hover img { transform: scale(1.05); }

/* --- BUTTON PILLS --- */
.contact-btn-pill {
    display: inline-block; padding: 18px 65px; background-color: var(--navy-accent); color: #fff;
    text-decoration: none; border-radius: 50px; font-weight: 700; letter-spacing: 2px;
    font-size: 0.8rem; transition: 0.3s; margin-top: 40px; text-transform: uppercase; border: none;
}
.contact-btn-pill:hover { background-color: var(--primary-blue); transform: translateY(-2px); }

/* --- SERVICE COMPONENTS --- */
.service-icon-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.service-number {
    font-size: 1.1rem; font-weight: 600; color: var(--primary-blue); border: 1.5px solid var(--primary-blue);
    min-width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0;
}
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; margin-top: 2rem; list-style: none; }
.service-list li { font-size: 0.95rem; color: var(--text-muted); position: relative; padding-left: 1.2rem; }
.service-list li::before { content: "→"; position: absolute; left: 0; color: var(--primary-blue); }

/* --- FOOTER --- */
footer { background: var(--dark-navy); color: white; padding: 6rem 5% 2rem; margin-top: 50px; }
.footer-main { 
    max-width: var(--container-width); margin: 0 auto 4rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; 
    gap: 4rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 3rem; 
}
.footer-column h3 { font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--primary-blue); text-transform: uppercase; }
.footer-column ul { list-style: none; }
.footer-column ul li a { color: #aaa; text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.footer-bottom { max-width: var(--container-width); margin: 0 auto; display: flex; justify-content: space-between; font-size: 0.8rem; color: #666; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 1024px) {
    .hamburger { display: flex; }
    .nav-links { 
        position: fixed; top: calc(var(--header-height) + var(--top-nav-height)); right: -100%; 
        width: 100%; height: 100vh; background: white; flex-direction: column; 
        padding: 2rem 5%; transition: 0.4s; overflow-y: auto; 
    }
    .nav-links.active { right: 0; }
    .nav-item { width: 100%; height: auto; flex-direction: column; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid #eee; }
    header .nav-links li a.nav-highlight { margin-top: 15px; width: auto; display: inline-flex !important; }
    .mega-menu { position: static; display: none; width: 100%; box-shadow: none; border: none; }
    .nav-item.mobile-open .mega-menu { display: block; }
    .mega-menu-right { display: none !important; } 
    .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .project-photo-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid-wrapper::before { top: 8%; bottom: 8%; }
    .hero h1 { font-size: 2.8rem; }
    .service-list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .project-photo-grid { grid-template-columns: 1fr; }
    .projects-grid-wrapper::before { display: none; }
}

/* Hamburger Animation */
.hamburger.toggle span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger.toggle span:nth-child(2) { opacity: 0; }
.hamburger.toggle span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }