/* =====================
   AI VARIABLES
===================== */
:root {
    --ai-dark: #0A2540;
    --ai-dark-2: #102A44;
    --ai-cyan: #00E5FF;
    --ai-blue: #4FC3F7;
    --ai-grey: #6B7280;
    --ai-white: #FFFFFF;
}

/* =====================
   WRAPPER
===================== */
.AI-service-wrapper {
    max-width: 93%;
    margin: 0 auto;
}

/* =====================
   BANNER
===================== */
.ai-banner {
    display: flex;
    align-items: center;
    height: 180px; /* thoda increase */
    background: var(--ai-white);
    margin: 40px auto;
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(10, 37, 64, 0.25);
    overflow: hidden;
    font-family: "Segoe UI", Arial, sans-serif;
    animation: aiSlideUp 0.9s ease forwards;
    opacity: 0;
}

@keyframes aiSlideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =====================
   LEFT SECTION
===================== */
.ai-left {
    position: relative;
    width: 38%;
    height: 100%;
    background: linear-gradient(135deg, var(--ai-dark), var(--ai-dark-2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    color: var(--ai-white);
}

/* Chevron */
.ai-left::after {
    content: "";
    position: absolute;
    right: -70px;
    top: 0;
    border-top: 90px solid transparent;
    border-bottom: 90px solid transparent;
    border-left: 70px solid var(--ai-dark-2);
}

/* =====================
   TITLE
===================== */
.ai-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 1.6px;
    line-height: 1.1;
    animation: zigZag 2.8s ease-in-out infinite;
}

.ai-text {
    color: var(--ai-cyan);
}

.ai-sub {
    font-size: 20px;
    font-weight: 500;
    color: var(--ai-blue);
}

/* Zig-zag animation */
@keyframes zigZag {
    0%   { transform: translate(0, 0); }
    20%  { transform: translate(-4px, -3px); }
    40%  { transform: translate(4px, 3px); }
    60%  { transform: translate(-3px, 2px); }
    80%  { transform: translate(3px, -2px); }
    100% { transform: translate(0, 0); }
}

/* =====================
   AI IMAGE (GIF)
===================== */
.ai-image img {
    width: 130px;        /* 🔥 MAIN CONTROL */
    height: auto;        /* ratio safe */
    max-height: 150;   /* banner ke andar fit */
    filter: drop-shadow(0 6px 14px rgba(0, 229, 255, 0.45));
    animation: aiPulse 3s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

/* =====================
   CONTENT
===================== */
.ai-content {
    width: 62%;
    padding: 40px 6rem;
}

.ai-content h3 {
    margin: 0;
    font-size: 28px;
    color: var(--ai-dark);
}

.ai-content p {
    margin-top: 12px;
    font-size: 15.5px;
    color: var(--ai-grey);
    line-height: 1.75;
}

/* =====================
   HOVER
===================== */
.ai-banner:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(0, 229, 255, 0.35);
    transition: all 0.35s ease;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 780px) {
    .ai-banner {
        flex-direction: column;
        height: auto;
    }

    .ai-left {
        width: 100%;
        padding: 30px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .ai-left::after {
        display: none;
    }

    .ai-image img {
        width: 120px;
        max-height: 130px;
    }

    .ai-content {
        width: 100%;
        padding: 25px;
        text-align: center;
    }
}
