/* --- Global Styles & Body --- */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* --- Navigation Bar --- */
.navbar {
    padding-top: 0.4rem;
    padding-bottom: 0.5rem;
    background-color: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    -moz-backdrop-filter: blur(4px);
    -ms-backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar-brand {
    font-weight: 700;
    color: #0d6efd !important; /* Bootstrap primary blue */
}

.nav-link {
    font-weight: 500;
    color: #555 !important;
    margin-left: 1rem;
    margin-right: 1rem;
    border-bottom: 2px solid transparent; /* Add transparent border for consistent height */
    padding-bottom: 0.25rem; /* Adjust padding slightly */
    transition: border-color 0.2s ease-in-out; /* Smooth transition for border */
}

    .nav-link:hover {
        color: #0d6efd !important;
    }
    /* Active link style (applied by JS) */
    .nav-link.active {
        color: #0d6efd !important;
        font-weight: 600;
        border-bottom-color: #0d6efd; /* Show border only when active */
    }

.navbar-toggler {
    border: none;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

.btn-contact-nav {
    margin-left: 1rem;
}

/* --- Hero Section (Homepage) --- */
.hero-section {
    background: url('../img/inverted-doftware-hero.webp') no-repeat center center; /* Replace with actual hero image */
    background-size: cover;
    color: white;
    padding: 10rem 0;
    text-align: center;
    position: relative;
}

    .hero-section::before { /* Overlay */
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 50, 0.5); /* Dark blueish overlay */
        z-index: 1;
    }

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-section p.lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-section .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

/* --- General Section Styling --- */
.section-padding {
    padding: 5rem 0; /* Standard padding for homepage sections */
}

.section-padding-inner {
    padding: 4rem 0; /* Slightly less padding for internal page main content */
}

.section-padding-sm {
    padding: 2rem 0; /* Smaller padding for sub-sections within pages */
}

.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

    .section-heading h2 {
        font-size: 2.5rem;
        font-weight: 700;
        color: #222;
        margin-bottom: 0.5rem;
    }

    .section-heading p.lead {
        font-size: 1.1rem;
        color: #555;
        max-width: 800px;
        margin: 1rem auto 0 auto;
    }

/* --- Page Header (Internal Pages) --- */
.page-header {
    background-color: #f8f9fa;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 4rem;
}

    .page-header h1 {
        font-size: 3rem;
        font-weight: 700;
        color: #222;
    }

    .page-header p.lead { /* Style for lead paragraph in page headers */
        font-size: 1.1rem;
        color: #555;
        max-width: 700px;
        margin: 1rem auto 0 auto;
    }

/* --- Feature Section (Homepage Intros) --- */
.feature-section {
    background-color: #f8f9fa;
}

    .feature-section .icon-box {
        font-size: 2.5rem;
        color: #0d6efd;
        margin-bottom: 1rem;
        display: inline-block;
    }

    .feature-section h3 {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .feature-section p {
        color: #555;
        margin-bottom: 1.5rem;
    }

    .feature-section .btn {
        border-radius: 0.5rem;
    }

/* --- Service Card Styling (Original Style from Single Page) --- */
/* Keep if you plan to reuse this exact card style anywhere */
.service-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

.service-icon { /* Example icon style if using text/emoji */
    font-size: 3rem;
    color: #0d6efd;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: #555;
    flex-grow: 1;
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 0.95rem;
}

.service-card .btn {
    border-radius: 0.5rem;
    margin-top: auto;
}

/* --- Feature Item Styling (About Page - Why Us) --- */
.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    text-align: left;
}

.feature-icon { /* Example icon style if using text/emoji */
    font-size: 1.5rem;
    color: #0d6efd;
    margin-right: 1rem;
    margin-top: 0.25rem;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #555;
    font-size: 0.95rem;
}

/* --- Client Logos Section --- */
.client-logos-section {
    background-color: #ffffff;
}

.client-logos-container {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

    .client-logos-container:hover {
        filter: grayscale(0%);
        opacity: 1;
    }

.client-logo img {
    max-height: 50px;
    width: auto;
}

/* --- Process Page Styling --- */
.process-step {
    margin-bottom: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid #eee;
}

    .process-step:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .process-step .step-number {
        font-size: 3rem;
        font-weight: 700;
        color: #0d6efd;
        display: block;
        margin-bottom: 0.5rem;
        line-height: 1;
    }

    .process-step h2 {
        font-size: 1.8rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: #333;
    }

    .process-step p {
        color: #555;
    }

    .process-step ul {
        list-style: disc;
        margin-left: 1.5rem;
        margin-bottom: 1rem;
        color: #555;
    }

    .process-step li {
        margin-bottom: 0.5rem;
    }

/* --- Policy Page Styling (Privacy, Terms) --- */
.policy-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #0d6efd;
}

.policy-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.policy-content p, .policy-content li {
    color: #555;
    margin-bottom: 1rem;
}

.policy-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* --- Contact Page Styling --- */
.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

    .contact-info-item i { /* Style assumes Bootstrap Icons */
        font-size: 1.5rem;
        color: #0d6efd;
        margin-right: 1rem;
        width: 30px;
        text-align: center;
    }

    .contact-info-item a {
        color: #333;
        text-decoration: none;
    }

        .contact-info-item a:hover {
            color: #0d6efd;
            text-decoration: underline;
        }

.contact-form {
    background-color: #f8f9fa;
    padding: 3rem;
    border-radius: 0.75rem;
}

.form-control, .form-select {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem; /* Ensure spacing between form elements */
}

    .form-control:focus, .form-select:focus {
        border-color: #86b7fe;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

.contact-form .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    width: 100%; /* Full width button */
}

.map-placeholder {
    background-color: #e9ecef;
    border-radius: 0.75rem;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.2rem;
    margin-top: 2rem;
}

/* --- Industries Page Styling --- */
.industry-section {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid #eee;
}

    .industry-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .industry-section h2 {
        font-size: 2.2rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
        color: #0d6efd;
    }

    .industry-section p {
        color: #555;
        margin-bottom: 1rem;
    }

    .industry-section ul {
        list-style: disc;
        margin-left: 1.5rem;
        margin-bottom: 1.5rem;
        color: #555;
    }

    .industry-section li {
        margin-bottom: 0.5rem;
    }

/* --- Team Section Styling (About Page) --- */
.team-member {
    text-align: center;
    margin-bottom: 2rem;
}

    .team-member img {
        max-width: 150px;
        border-radius: 50%;
        margin-bottom: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .team-member h5 {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

    .team-member span {
        font-size: 0.9rem;
        color: #777;
        display: block;
    }

h2.section-title { /* Used on About page */
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

h3.sub-section-title { /* Used on About page */
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #0d6efd;
}


/* --- Call to Action (CTA) Section --- */
.cta-section {
    background-color: #0d6efd;
    color: white;
    text-align: center;
    padding: 5rem 0; /* Consistent padding */
}

    .cta-section h2 {
        color: white;
        font-weight: 700;
    }

    .cta-section p.lead {
        color: rgba(255, 255, 255, 0.9);
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-section .btn-light {
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 0.5rem;
    }

/* --- Footer --- */
.footer {
    background-color: #343a40;
    color: #adb5bd;
    padding: 3rem 0 1rem;
    margin-top: 4rem; /* Ensure space before footer */
}

    .footer h5 {
        color: #ffffff;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .footer ul {
        list-style: none;
        padding-left: 0;
    }

        .footer ul li a {
            color: #adb5bd;
            text-decoration: none;
            transition: color 0.3s ease;
        }

            .footer ul li a:hover {
                color: #ffffff;
                text-decoration: underline;
            }

    .footer .social-icons a {
        color: #adb5bd;
        font-size: 1.5rem; /* Adjust if using icon fonts */
        margin-right: 1rem;
        transition: color 0.3s ease;
        text-decoration: none; /* Remove underline from icons */
    }

        .footer .social-icons a:hover {
            color: #ffffff;
        }

    .footer .bottom-text {
        border-top: 1px solid #495057;
        padding-top: 1rem;
        margin-top: 2rem;
        font-size: 0.9rem;
        text-align: center;
    }

        .footer .bottom-text a { /* Style links in bottom text */
            color: #adb5bd;
            text-decoration: underline;
        }

            .footer .bottom-text a:hover {
                color: #ffffff;
            }

/* --- Utility Classes --- */
.img-fluid-rounded {
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 1rem; /* Consistent bottom margin */
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 6rem 0;
    }

        .hero-section h1 {
            font-size: 2.8rem;
        }

        .hero-section p.lead {
            font-size: 1.1rem;
        }

    .section-padding, .section-padding-inner {
        padding: 3rem 0;
    }
    /* Adjust padding */
    .section-heading h2 {
        font-size: 2rem;
    }

    .section-heading p.lead {
        font-size: 1rem;
    }

    .page-header {
        padding: 3rem 0;
    }

        .page-header h1 {
            font-size: 2.5rem;
        }

    .nav-link.active {
        border-bottom: none;
    }
    /* Remove active border on smaller screens */
    .feature-section .text-center {
        margin-bottom: 2rem;
    }

    .process-step h2 {
        font-size: 1.6rem;
    }

    .process-step .step-number {
        font-size: 2.5rem;
    }

    .policy-content h2 {
        font-size: 1.6rem;
    }

    .policy-content h3 {
        font-size: 1.3rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .industry-section h2 {
        font-size: 2rem;
    }

    h2.section-title {
        font-size: 2rem;
    }

    h3.sub-section-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 767.98px) {
    .navbar-nav {
        margin-top: 1rem;
    }

    .nav-link {
        margin-left: 0;
        margin-right: 0;
        padding: 0.5rem 0;
    }

    .btn-contact-nav {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }

    .hero-section {
        padding: 5rem 0;
    }

        .hero-section h1 {
            font-size: 2.2rem;
        }

        .hero-section p.lead {
            font-size: 1rem;
        }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p.lead {
        font-size: 1rem;
    }

    .client-logos-container {
        gap: 2rem;
    }

    .client-logo img {
        max-height: 40px;
    }

    .footer .text-center-sm-down {
        text-align: center !important;
        margin-bottom: 1.5rem;
    }

    .footer .social-icons {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .feature-section .text-center {
        margin-bottom: 2.5rem;
    }

    .service-card p {
        text-align: center;
    }
    /* Center text in cards on small screens */
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .feature-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .process-step {
        text-align: center;
    }

        .process-step .row > div {
            margin-bottom: 1.5rem;
        }

    .contact-info {
        margin-bottom: 2rem;
        text-align: center;
    }

    .contact-info-item {
        justify-content: center;
    }

    .industry-section .row > div {
        margin-bottom: 1.5rem;
    }
}
