/* General Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
}

/* Header and Navigation */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    position: absolute;
    top: -90px;
    left: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

header .logo img {
    height: auto;
    width: 250px;
    object-fit: contain;
    transition: var(--transition);
}

header nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 2rem;
}

header nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a:focus {
    color: #007bff;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Updated Hero Section Styling */
.hero {
    background: linear-gradient(120deg, #5b5a9a, #8a6db0);
    color: #ffffff;
    padding: 6rem 2rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 450px;
    height: 450px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    z-index: 0;
}

.hero h1, .hero p {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 1rem auto;
    line-height: 1.7;
    opacity: 0.9;
}

/* Styling for Features, Services & Industries on Homepage */
.features, .services, .industries {
    background-color: #ffffff;
    padding: 4rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.features h2, .services h2, .industries h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: #343a40;
    font-weight: 600;
}

.features .row, .services .row, .industries .row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.features .col-md-4,
.services .col-md-4,
.industries .col-md-4 {
    flex: 1 1 calc(33.333% - 1.5rem);
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features .col-md-4:hover,
.services .col-md-4:hover,
.industries .col-md-4:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.features h3, .services h3, .industries h3 {
    font-size: 1.25rem;
    color: #003366;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.features h3 i, .services h3 i, .industries h3 i {
    color: #007bff;
    margin-right: 0.75rem;
    font-size: 1.5rem;
}

.features p, .services p, .industries p {
    color: #555;
    line-height: 1.6;
}

/* Updated Call to Action Section */
.call-to-action {
    background: linear-gradient(120deg, #5b5a9a, #8a6db0);
    color: #ffffff;
    padding: 5rem 2rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.call-to-action::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -150px;
    width: 400px;
    height: 400px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    z-index: 0;
}

.call-to-action .container {
    position: relative;
    z-index: 1;
}

.call-to-action h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.call-to-action p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cta-primary, .btn-cta-secondary {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-cta-primary i, .btn-cta-secondary i {
    margin-right: 0.5rem;
}

.btn-cta-primary {
    background-color: #ffffff;
    color: #5b5a9a;
}

.btn-cta-primary:hover, .btn-cta-primary:focus {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

.btn-cta-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-cta-secondary:hover, .btn-cta-secondary:focus {
    background-color: #ffffff;
    color: #5b5a9a;
    transform: translateY(-3px);
}

/* General Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: #007bff;
    color: #ffffff;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #333;
    color: #ffffff;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

footer .social-media {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

footer .social-media li {
    display: inline-block;
    margin: 0 0.5rem;
}

footer .social-media a {
    color: #ffffff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

footer .social-media a:hover,
footer .social-media a:focus {
    color: #007bff;
}

/* Accessibility */
a:focus, button:focus {
    outline: 3px solid #007bff;
    outline-offset: 3px;
}

/* ====================================================== */
/*  Styling for Services & Industries Pages               */
/* ====================================================== */

/* Hero section for internal pages */
.page-hero {
    background: linear-gradient(120deg, #5b5a9a, #8a6db0);
    color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 600;
    color: #ffffff;
}

.page-hero p {
    font-size: 1.1rem;
    color: #ffffff;
    opacity: 0.9;
    max-width: 800px;
    margin: 1rem auto 0 auto;
}

/* Main section for service/industry listings */
.services-page-section,
.industries-page-section {
    padding: 2rem 0;
}

.services-page-section h2,
.industries-page-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: #343a40;
    font-weight: 600;
}

/* Individual cards for services/industries */
.service-card,
.industry-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 0; /* Let the column handle the margin */
}

/* MODIFICATION: Added margin to columns to create vertical spacing */
.services-page-section .col-md-6,
.services-page-section .col-md-12,
.industries-page-section .col-md-6 {
    margin-bottom: 1.5rem;
}

.service-card h3,
.industry-card h3 {
    font-size: 1.4rem;
    color: #003366;
    margin-bottom: 1rem;
}

.service-card h3 i,
.industry-card h3 i {
    color: #007bff;
    margin-right: 1rem;
}

.service-card p,
.industry-card p {
    color: #555;
    margin-bottom: 1.5rem;
}

.service-card ul,
.industry-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card ul li,
.industry-card ul li {
    color: #333;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.service-card ul li strong,
.industry-card ul li strong {
    flex: 0 0 190px;
    color: #003366;
    margin-right: 0.5rem;
}

/* Section for Service Delivery and Quality Assurance */
.service-details-section {
    background-color: #f8f9fa;
    padding: 4rem 2rem;
    margin-top: 2rem;
    border-radius: 12px;
}

.service-details-section h3 {
    font-size: 1.5rem;
    color: #003366;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-details-section p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.service-details-section ul {
    list-style: none;
    padding-left: 0;
}

.service-details-section ul li {
    display: flex;
    align-items: flex-start;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.service-details-section ul li i {
    color: #28a745;
    margin-right: 0.75rem;
    margin-top: 0.2em;
}

.service-details-section ul li strong {
    flex: 0 0 170px; 
    color: #343a40;
    font-weight: 600;
    margin-right: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .services .col-md-4,
    .industries .col-md-4 {
        flex-basis: calc(50% - 1.5rem);
    }
}

@media (max-width: 768px) {
    header nav {
        flex-direction: column;
    }

    header nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    header nav ul li {
        margin: 0.5rem 0;
    }

    .features .col-md-4,
    .services .col-md-4,
    .industries .col-md-4 {
        flex-basis: 100%;
    }

    .service-card ul li,
    .industry-card ul li,
    .service-details-section ul li {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-card ul li strong,
    .industry-card ul li strong,
    .service-details-section ul li strong {
        flex-basis: auto;
        margin-bottom: 0.25rem;
    }
}

/* ====================================================== */
/*  Styling for About Us Page                             */
/* ====================================================== */

.about-content-section {
    padding: 2rem 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Values Section */
.values-section {
    background-color: #f8f9fa;
    padding: 4rem 2rem;
    border-radius: 12px;
}

.values-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: #343a40;
    font-weight: 600;
}

.value-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid #007bff;
    height: 100%;
}

.value-card i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.4rem;
    color: #003366;
    margin-bottom: 0.5rem;
}

/* Process Section */
.process-section {
    padding: 4rem 2rem;
}

.process-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    color: #343a40;
    font-weight: 600;
}

.process-section .subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    /* The vertical line for the timeline */
    border-left: 3px solid #007bff;
}

.process-step {
    padding: 1rem 0 2rem 3rem;
    position: relative;
}

.process-number {
    position: absolute;
    left: -22px; /* Position the circle on the line */
    top: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #007bff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    border: 3px solid #ffffff;
}

.process-content h3 {
    font-size: 1.5rem;
    color: #003366;
}

.process-content p {
    color: #555;
}

/* ====================================================== */
/*  Styling for Contact Page                              */
/* ====================================================== */

.contact-section {
    padding: 4rem 0;
}

.contact-details {
    background-color: #003366; /* A dark blue background */
    color: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    height: 100%;
}

.contact-details h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.contact-details p {
    color: #e9ecef;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: #007bff;
    margin-right: 1.5rem;
    width: 30px;
    text-align: center;
}

.contact-info-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: #007bff;
}

.contact-form-container {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
}

.contact-form-container h3 {
    font-size: 1.8rem;
    color: #343a40;
    margin-bottom: 2rem;
}

.form-control {
    border-radius: 5px;
    padding: 1rem;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.btn-block {
    padding: 0.8rem;
    font-size: 1.1rem;
}

.map-section {
    padding: 2rem 0;
}

.map-container {
    border-radius: 8px;
    overflow: hidden; /* Ensures the map corners are rounded */
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* ====================================================== */
/*  Styling for JavaScript Enhancements                   */
/* ====================================================== */

/* --- Navbar Scroll Effect --- */
header.scrolled {
    background-color: hsl(0 0% 100% / 0.9);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* --- Fade-in Animation --- */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transform: translateY(20px);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Scroll-to-Top Button --- */
.scroll-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.3s;
}

.scroll-to-top-btn:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

/* --- Accessible Mobile Navigation --- */
.mobile-nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    .primary-navigation {
        display: none;
        position: fixed;
        z-index: 1000;
        inset: 0 0 0 30%;
        background-color: hsl(0 0% 100% / 0.95);
        backdrop-filter: blur(1rem);
        padding: min(20vh, 10rem) 2rem;
        flex-direction: column;
    }

    .primary-navigation[data-visible] {
        display: flex;
    }

    body[data-nav-open] {
        overflow: hidden;
    }

    header nav .primary-navigation ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .mobile-nav-toggle {
        display: block;
        position: absolute;
        z-index: 2000;
        right: 2rem;
        top: 1.5rem;
        background: transparent;
        border: 0;
        width: 2rem;
        aspect-ratio: 1;
        background-repeat: no-repeat;
        background-position: center;
        cursor: pointer;
        /* Hamburger Icon SVG */
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(51, 51, 51)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .mobile-nav-toggle[aria-expanded="true"] {
        /* Close Icon SVG */
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb(51, 51, 51)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M24 6L6 24'/%3e%3c/svg%3e");
    }
}

/* --- Styling for AJAX Form Message --- */
#form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

#form-message.form-sending,
#form-message.form-success,
#form-message.form-error {
    opacity: 1;
    max-height: 100px; /* Allows the element to expand */
}

.form-sending {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #ced4da;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}