.ai-section {
    position: relative;
    width: 100%;
    padding: 0 0 60px 0;
    background-color: #f5f5f5;
    overflow: hidden;
}

.ai-container {
    /* max-width: 1440px; */
    /* padding: 0 20px; */
    margin: 0 auto;
    position: relative;
}

/* Section Header */
.ai-header {
    margin-bottom: 80px;
    padding: 0 20px;
}

.ai-title {
    max-width: 1440px;

    font-size: 64px;
    font-weight: 700;
    letter-spacing: -1.28px;
    line-height: normal;
    margin: 0 auto;
}

.title-highlight {
    color: #340061;
    font-weight: 600;
}

.title-normal {
    color: transparent;
    -webkit-text-stroke: 1px #340061;
    font-weight: 600;
}

/* Content Layout */
.ai-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    /* gap: 100px; */
    /* margin-bottom: 120px; */

    /* background: linear-gradient(220deg, rgba(78, 78, 78, 1) 0%, rgba(53, 0, 98, 1) 100%); */
    background: linear-gradient(90deg, rgba(107, 0, 200, 0.5) 0%, #350062 100%);
}

/* AI Image */
.ai-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    position: relative;
    width: 700px;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(52, 0, 97, 0.15);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.image-container:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 35px 70px rgba(52, 0, 97, 0.2);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}


.image-container:hover .main-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 0, 97, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* .image-container:hover .image-overlay {
    opacity: 1;
} */

.play-button {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-button svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* CTA Content */
.cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-card {
    /* background: linear-gradient(220deg, rgba(78, 78, 78, 1) 0%, rgba(53, 0, 98, 1) 100%); */
    padding: 60px 40px;
    border-radius: 16px;
    max-width: 658px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.cta-header {
    margin-bottom: 40px;
}

.cta-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: #ffffff;
    font-size: 45px;
    letter-spacing: 0px;
    line-height: 52px;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 0px;
    line-height: 24px;
    opacity: 0.8;
}

.cta-action {
    display: flex;
    justify-content: flex-start;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 32px;
    background-color: #ffffff;
    color: #340061;
    border: none;
    border-radius: 8px;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.24px;
    line-height: 26px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 18px rgba(242, 253, 132, 0.09);
}

.cta-button:hover {
    background-color: #f8f8f8;
    transform: translateY(-3px);
    box-shadow: 0px 8px 25px rgba(242, 253, 132, 0.15);
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: rotate(45deg);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-up-delay-1 {
    animation-delay: 0.2s;
}

.fade-in-up-delay-2 {
    animation-delay: 0.4s;
}

.fade-in-up-delay-3 {
    animation-delay: 0.6s;
}

.fade-in-up-delay-4 {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .ai-title {
        font-size: 56px;
    }

    .cta-title {
        font-size: 36px;
        line-height: 44px;
    }

    .ai-content {
        gap: 80px;
    }

    .image-container {
        width: 500px;
        height: 350px;
    }
}

@media (max-width: 968px) {
    .ai-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .ai-image {
        order: -1;
    }

    .image-container {
        width: 100%;
        max-width: 600px;
        height: 400px;
        margin: 50px auto 0;
    }

    .cta-card {
        text-align: center;
        padding: 0 0 50px 0;
    }

    .cta-action {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .ai-header {
        margin-bottom: 60px;
        padding: 0 16px;
    }

    .ai-title {
        font-size: 42px;
        letter-spacing: -0.8px;
    }

    .cta-title {
        font-size: 28px;
        line-height: 36px;
    }

    .cta-card {
        padding: 40px 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .feature-title {
        font-size: 20px;
        line-height: 28px;
    }

    .feature-description {
        font-size: 16px;
        line-height: 24px;
    }

    .cta-heading {
        font-size: 42px;
        line-height: 52px;
    }

    .image-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .image-container {
        margin: 50px 10px 0;
    }

    .ai-header {
        margin-bottom: 40px;

    }

    .ai-title {
        font-size: 36px;
        letter-spacing: -0.5px;
    }

    .cta-title {
        font-size: 22px;
        line-height: 30px;
    }

    .cta-card {
        padding: 30px 20px;
    }

    .feature-card {
        padding: 25px 15px;
    }

    /* .feature-icon {
        width: 60px;
        height: 60px;
    } */

    .feature-title {
        font-size: 18px;
        line-height: 26px;
    }

    .feature-description {
        font-size: 14px;
        line-height: 22px;
    }

    .cta-heading {
        font-size: 32px;
        line-height: 40px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .feature-card,
    .image-container,
    .cta-button {
        animation: none;
        transition: none;
    }

    .feature-card:hover,
    .image-container:hover,
    .cta-button:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {

    .feature-description,
    .cta-description {
        opacity: 1;
    }

    .title-outline,
    .heading-outline {
        -webkit-text-stroke-width: 2px;
    }
}

/* Focus styles for accessibility */
.feature-card:focus,
.cta-button:focus,
.image-container:focus {
    outline: 2px solid #5e0da3;
    outline-offset: 4px;
}

/* Print styles */
@media print {
    .ai-bg {
        display: none;
    }

    .image-overlay {
        opacity: 0;
    }

    .feature-card {
        break-inside: avoid;
    }
}