/* ========== GLOBAL STYLES & VARIABLES ========== */
:root {
    --primary-color: #1a2a4d; /* Dark Blue from your design */
    --secondary-color: #4a5568; /* Grey text */
    --accent-color: #3b82f6; /* A modern, professional blue for links/hovers */
    --light-color: #f8f9fa; /* Off-white for backgrounds */
    --white-color: #ffffff;
    --dark-grey: #2d3748;
    --font-header: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--secondary-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-header);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--accent-color);
}

/* ========== HEADER & NAVIGATION ========== */
header {
    background: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--primary-color);
    font-weight: 600;
    font-family: var(--font-header);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* ========== HERO SECTION ========== */
.hero {
    /* Adds a dark blue overlay and then loads the background image */
    background-image: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), url('assets/hero-background.jpg');
    
    /* Ensures the image covers the entire area without distortion */
    background-size: cover;
    
    /* Centers the image */
    background-position: center;
    
    /* Sets the section height to the full viewport height */
    height: 100vh;
    
    /* Aligns the text content in the center */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white-color);
    margin-bottom: 1rem;
}

.hero-content .tagline {
    font-size: 1.5rem;
    font-family: var(--font-header);
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.cta-button {
    background: var(--accent-color);
    color: var(--white-color);
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-weight: 600;
    font-family: var(--font-header);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #2563eb; /* Darker blue */
    transform: translateY(-3px);
}

/* ========== ABOUT US SECTION ========== */
#about {
    background-color: var(--light-color);
}
.about-content h3 { font-size: 1.8rem; margin-top: 2rem; }
.about-content h4 { font-size: 1.3rem; }

.vision-mission {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}
.vision, .mission {
    flex: 1;
    background: var(--white-color);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.value-card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.value-card h5 {
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* ========== SERVICES SECTION ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--light-color);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.service-card h4 {
    font-size: 1.4rem;
    min-height: 50px; /* Aligns titles */
}

.service-card ul {
    margin-top: 1rem;
}

.service-card ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}
.service-card ul li::before {
    content: '✔';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* ========== INDUSTRIES SECTION ========== */
#industries {
    background-color: var(--light-color);
}

.industries-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.industries-list {
    flex: 1;
}
.industries-list ul {
    margin-top: 1rem;
}
.industries-list ul li {
    background: var(--white-color);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    font-weight: 500;
}

.industries-diagram {
    flex: 1;
}

.industries-diagram img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ========== CONTACT SECTION ========== */
#contact {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 6rem 0 0 0;
}
#contact h2 {
    color: var(--white-color);
    text-align: left;
}
#contact h2::after {
    left: 0;
    transform: none;
}
.contact-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.contact-info {
    flex: 1.2;
}
.contact-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #cbd5e0;
}
.contact-details {
    font-size: 1.1rem;
}
.contact-details li {
    margin-bottom: 1rem;
}
.contact-details a {
    color: var(--white-color);
    font-weight: 600;
    transition: color 0.3s ease;
}
.contact-details a:hover {
    color: var(--accent-color);
}
.contact-image {
    flex: 1;
    text-align: right;
}
.contact-image img {
    max-width: 100%;
    height: auto;
    border-top-left-radius: 8px;
}

/* ========== FOOTER ========== */
footer {
    background-color: var(--dark-grey);
    color: var(--light-color);
    text-align: center;
    padding: 2rem 0;
}

.footer-logo {
    height: 35px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

/* ========== ANIMATION STYLES ========== */
.hamburger.toggle .line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger.toggle .line:nth-child(2) {
    opacity: 0;
}
.hamburger.toggle .line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.value-card, .service-card, .industries-list, .industries-diagram, .contact-info {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.show-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE DESIGN (MEDIA QUERIES) ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .tagline {
        font-size: 1.2rem;
    }

    h2 { 
        font-size: 2rem; 
    }

    section { 
        padding: 4rem 0; 
    }
    
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 60%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links a {
        color: var(--white-color);
        font-size: 1.2rem;
    }
    
    .nav-links li {
        opacity: 0;
    }
    .nav-links.nav-active li {
        opacity: 1;
    }

    .hamburger {
        display: block;
    }

    .vision-mission, .industries-content, .contact-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    #contact { 
        padding-top: 4rem; 
    }

    .contact-image { 
        display: none;
    }

    #contact h2 { 
        text-align: center; 
    }

    #contact h2::after { 
        left: 50%; 
        transform: translateX(-50%); 
    }
}