.project-title-header {
    text-align: left;
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 32px;
    color: #000;
    font-family: 'Space Grotesk', sans-serif;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .project-title-header {
        text-align: left;
        font-size: 28px;
        margin-bottom: 24px;
    }
}


.ai-features-subtitle {
    text-align: center;
    max-width: 800px;
    margin: -40px auto 60px;
    font-size: 18px;
    line-height: 1.5;
    color: #333;
    font-family: 'Space Grotesk', sans-serif;
}

/* Update margin for the title to reduce space between title and subtitle */
.ai-features-title {
    margin-bottom: 24px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ai-features-subtitle {
        margin: -30px auto 40px;
        font-size: 16px;
    }
}




/* Simple AI Features Styles */
.ai-features {
    max-width: 1600px;
    margin: 80px auto;
    padding: 0 24px;
}

.ai-features-title {
    text-align: center;
    font-size: 30px;
    font-weight: 500;
    margin-top: 100px; /* Consistent top spacing for all section titles */
    margin-bottom: 40px;
}

/* Style for all feature section subtitles */
.ai-features-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px; /* Remove negative margins, consistent bottom spacing */
    font-size: 18px;
    line-height: 1.5;
    color: #333;
    font-family: 'Space Grotesk', sans-serif;
}



.ai-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
    align-items: center;
}

.ai-feature-text {
    padding-right: 20px;
    max-width: 600px; /* Add a max-width to constrain the text */
    padding-left: 20px; /* Padding on left now */
}

.ai-feature-text h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 16px 0;
    color: #000;
}

.ai-feature-text p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #313131;
}

.ai-feature-image-container {
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;

}

.ai-feature-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 20px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .ai-feature-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ai-feature-text {
        order: 2; /* Text below image on mobile */
        padding-right: 0;
        max-width: 100%; /* Full width on mobile */
    }
    
    .ai-feature-image-container {
        order: 1; /* Image above text on mobile */
        height: 300px;
    }
}


/* Add space before contact section */
#contact {
    margin-top: 120px !important;
}

/* Add this to your style section */

/* Add more space after the last feature row */
.ai-feature-row:last-of-type {
    margin-bottom: 120px; /* Increased from 80px */
}

/* Add space around the conclusion section */
.ai-features-title + .ai-features-subtitle {
    margin-bottom: 80px; /* More space after the conclusion text */
}

/* Conclusion heading needs more space above it */
.ai-features-title:nth-of-type(2) {
    margin-top: 120px; /* Add space above the conclusion heading */
    margin-bottom: 40px; /* Slightly less space below the heading */
}

/* Add more space before the contact section */
.contact-section-wrapper {
    margin-top: 160px !important; /* Increased from normal margin */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ai-feature-row:last-of-type {
        margin-bottom: 80px; /* Slightly less on mobile */
    }
    
    .ai-features-title:nth-of-type(2) {
        margin-top: 80px; /* Less space on mobile */
    }
    
    .contact-section-wrapper {
        margin-top: 120px !important; /* Less on mobile but still spacious */
    }
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .ai-features-title {
        margin-top: 80px;
        margin-bottom: 30px;
        font-size: 28px;
    }
    
    .ai-features-subtitle {
        margin-bottom: 60px;
        font-size: 16px;
    }
    
    .ai-feature-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 60px;
    }
    
    #contact {
        margin-top: 80px !important;
    }
}

/* First section title needs different spacing (no top margin needed) */
.ai-features-title:first-of-type {
    margin-top: 0;
}

/* Remove any existing negative margins that might be causing issues */
.ai-features {
    max-width: 1600px;
    margin: 80px auto;
    padding: 0 24px;
    overflow: visible; /* Ensure no margin collapse issues */
}