/* Global Styles */
:root {
    --primary-blue: #1a75bb;
    --primary-green: #2b9348;
    --dark-blue: #155082;
    --light-blue: #d4e6f1;
    --dark-green: #1e6b35;
    --light-green: #d8f3dc;
    --light-gray: #f8f9fa;
    --dark-gray: #495057;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh; /* Ensure the body takes at least the full viewport height */
}

main {
    position: relative;
    z-index: 1; /* Ensure main content is above potentially negative z-index elements */
    min-height: 100vh; /* Ensure the main content area has sufficient height */
    padding-bottom: 50px; /* Add padding to prevent content from being cut off by footer */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
    position: relative; /* Ensure each section has a positioning context */
    z-index: 1; /* Give all sections a basic z-index */
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--dark-gray);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-green);
}

.btn-secondary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--dark-blue);
}

/* Header Styles */
.header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000; /* High z-index to ensure it's above all content */
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
}

.logo h1 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: var(--primary-green);
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    margin-right: 20px;
}

.nav-item {
    margin-left: 30px;
    position: relative;
}

.nav-link {
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-blue);
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-gray);
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('images/hero-bg.jpg') center/cover no-repeat;
    position: relative;
    z-index: 2; /* Ensure hero is above other content */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 2.8rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

/* Services Overview */
.services-overview {
    background-color: var(--light-gray);
    position: relative;
    z-index: 2;
}

.services-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding: 30px;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.service-title {
    font-size: 1.3rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.service-description {
    color: var(--dark-gray);
    margin-bottom: 20px;
}

/* Industries Section */
.industries {
    background-color: var(--white);
    position: relative;
    z-index: 2;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.industry-card {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    transition: var(--transition);
    background-color: var(--light-blue);
}

.industry-card:hover {
    background-color: var(--light-green);
}

.industry-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.industry-title {
    font-size: 1.1rem;
    color: var(--dark-blue);
}

.industry-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Contact Section */
.contact-teaser {
    background-color: var(--light-green);
    position: relative;
    z-index: 2;
}

.contact-simple {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Services Page */
.detailed-services {
    background-color: var(--white);
    position: relative;
    z-index: 2;
}

.service-detail {
    display: flex;
    flex-direction: column;
    margin-bottom: 60px;
    padding: 30px;
    border-radius: 8px;
    background-color: var(--light-gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-detail:last-child {
    margin-bottom: 0;
}

.service-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.service-header i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-right: 20px;
}

.service-detail-title {
    font-size: 1.8rem;
    color: var(--dark-blue);
}

.service-problem,
.service-benefits,
.service-delivery {
    margin-bottom: 20px;
}

.service-section-title {
    font-size: 1.3rem;
    color: var(--dark-green);
    margin-bottom: 10px;
}

.service-list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.service-list li {
    margin-bottom: 8px;
}

/* Process Section */
.process {
    background-color: var(--light-blue);
    position: relative;
    z-index: 2;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
    z-index: 1;
}

.process-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 15px;
    margin-bottom: 30px;
}

.step-number {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: var(--primary-green);
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 auto 20px;
}

.step-title {
    font-size: 1.3rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.step-description {
    color: var(--dark-gray);
}

/* About Page */
.about {
    background-color: var(--white);
    position: relative;
    z-index: 2;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.founder-info {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--light-blue);
    border-radius: 8px;
}

.founder-name {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.founder-bio {
    margin-bottom: 20px;
}

.founder-credentials {
    list-style: none;
}

.founder-credentials li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.founder-credentials li i {
    color: var(--primary-green);
    margin-right: 10px;
}

/* Contact Page */
.contact-page {
    background-color: var(--light-gray);
    position: relative;
    z-index: 2;
}

.contact-info {
    margin-bottom: 30px;
    text-align: center;
}

.contact-info-item {
    display: inline-flex;
    align-items: center;
    margin: 0 20px 20px 0;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-right: 10px;
}

.contact-card {
    background-color: var(--light-blue);
    padding: 30px;
    border-radius: 8px;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 50px 0 20px;
    position: relative; /* Changed from fixed to prevent overlay issues */
    width: 100%;
    z-index: 1; /* Lower z-index than content sections */
    bottom: 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info {
    flex: 2;
    min-width: 300px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-logo span {
    color: var(--light-green);
}

.footer-description {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-cta .btn {
    background-color: var(--primary-green);
}

.footer-nav {
    flex: 1;
    min-width: 200px;
}

.footer-nav-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-nav-list .nav-item {
    margin-left: 0;
    margin-bottom: 10px;
}

.footer-nav-list .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav-list .nav-link:hover {
    color: var(--light-green);
}

.footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-contact-list {
    list-style: none;
}

.footer-contact-item {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact-item i {
    color: var(--light-green);
    margin-right: 10px;
    font-size: 1.2rem;
    margin-top: 5px;
}

.footer-contact-text {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Error Pages */
.error-page {
    padding: 150px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.error-code {
    font-size: 8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.error-title {
    font-size: 2rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.error-message {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 992px) {
    .section {
        padding: 60px 0;
    }

    .hero {
        padding-top: 130px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        z-index: 1001; /* Ensure dropdown is above other content */
    }

    .nav-list.active {
        display: flex;
    }

    .nav-item {
        margin: 10px 0;
    }

    .mobile-menu {
        display: block;
    }

    .process-steps::before {
        display: none;
    }

    .process-step {
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 40px 0;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .service-card,
    .contact-simple {
        padding: 20px;
    }
}