.slideshow-container {
    width: 100vw;
    height: 56.25vw; /* 16:9 ratio at very wide screens */
    max-height: 85vh; /* Prevent cutting off CTA on wide-but-short screens */
    margin: 50px auto;
    overflow: hidden; 
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border: 0px solid #333;
    background: transparent;
}

.slideshow-cta-button {
    display: inline-block;
    background: white;
    color: #22c55e;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
 
.slideshow-cta-button:hover {
    background: #22c55e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
 
.slideshow-cta-button span {
    color: inherit;
}
 

/* Make slideshow progressively TALLER as width decreases, starting from very wide screens */
@media (max-width: 2400px) {
    .slideshow-container {
        height: 65vw;
    }
}

@media (max-width: 2200px) {
    .slideshow-container {
        height: 75vw;
    }
}

@media (max-width: 2000px) {
    .slideshow-container {
        height: 85vw;
    }
}

@media (max-width: 1800px) {
    .slideshow-container {
        height: 95vw;
    }
}

@media (max-width: 1600px) {
    .slideshow-container {
        height: 110vw;
    }
}

@media (max-width: 1400px) {
    .slideshow-container {
        height: 130vw;
    }
}

@media (max-width: 1200px) {
    .slideshow-container {
        height: 150vw;
    }
}

/* Call-to-Action Banner */
.cta-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95) 0%, rgba(59, 130, 246, 0.95) 100%);
    border-radius: 20px;
    padding: 90px 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: left;
    max-width: 90%;
    width: 1229px;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
}

.cta-banner::before {
    content: '';
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 900px;
    height: 675px;
    background-image: url('../../images/SuriTechLaptop.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    z-index: 1;
}

.cta-banner > * {
    position: relative;
    z-index: 2;
}

.cta-banner:hover {
    transform: translate(-50%, -50%) scale(1.03);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

.cta-banner h2 {
    color: white;
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 900;
    margin: 0 0 30px 0;
    text-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.8),
        -1px -1px 0px rgba(0, 0, 0, 0.8),
        1px -1px 0px rgba(0, 0, 0, 0.8),
        -1px 1px 0px rgba(0, 0, 0, 0.8),
        0px 4px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    letter-spacing: -1px;
}

.cta-services {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
}

.cta-service-item {
    color: white;
    font-size: clamp(20px, 2.5vw, 32px);
    font-weight: 700;
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.9),
        -1px -1px 0px rgba(0, 0, 0, 0.9),
        1px -1px 0px rgba(0, 0, 0, 0.9),
        -1px 1px 0px rgba(0, 0, 0, 0.9),
        0px 3px 6px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
}

.cta-service-item::before {
    content: '⚡';
    font-size: 1.2em;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: #22c55e;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
}

.cta-button:hover {
    background-color: #22c55e;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: left 1s linear;
    will-change: left;
}

.slide.next-slide {
    left: 100%;
}

.slide.active-slide-out {
    left: -100%;
}


.kenburns-img {
    display: block;
    width: 120%; /* The zoom factor */
    height: 120%;
    /* object-fit: cover ensures the image always fills the 120% area */
    object-fit: cover; 
    transform: translate(0, 0); 
}

/* -------------------
   1. KEN BURNS EFFECT 
   ------------------- */
@keyframes pan-in-slowly {
    /* Starts slightly offset and fully zoomed */
    from {
        transform: translate(0, 0) scale(1.0);
    }
    /* Ends at the opposite offset, creating the pan effect */
    to {
        transform: translate(-20%, -20%) scale(1.0);
    }
}

/* Class applied to the image to start the pan animation */
.panning-in {
    animation: pan-in-slowly 12s linear forwards; /* 12s for a slow pan */
}

/* -------------------
   2. SLIDE-OUT TRANSITION
   ------------------- */
.animate-out {
    /* Moves the entire slide container out of view to the left */
    transform: translateX(-100%); 
}


@media (max-width: 1024px) {
    .slideshow-container {
        /* Width covers the entire screen */
        width: 100vw;
        /* Height is set taller (e.g., 75% of the screen height) */
        height: 85vh; 
        
        margin: 68px 0 0 0; /* Remove side margins on mobile */
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
        border: none; 
    }

    .kenburns-img {
        /*
        To achieve cropping on the left/right for a tall strip:
        1. Set the image height to be 100% of the container (plus zoom).
        2. Let the width overflow (be greater than 100%).
        3. The parent's 'overflow: hidden' will crop the sides.
        */
        width: 250%; /* Image is much wider than the container */
        height: 120%; /* Height is only slightly zoomed */
        
        /* Adjust the pan keyframes or set a new one for a vertical-only pan */
    }
    
    /* Optional: Create new keyframes for a simple center pan on mobile */
    @keyframes pan-in-mobile {
        from { transform: translate(-30%, 0) scale(1.0); }
        to { transform: translate(-70%, 0) scale(1.0); }
    }
    
    /* Apply the new mobile animation */
    .panning-in {
        animation: pan-in-mobile 12s linear forwards; 
    }

    .cta-banner {
        padding: 40px 25px 300px 25px;
        width: 71%;
        min-height: 600px;
        text-align: center;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        z-index: 5;
    }

    .cta-banner::before {
        right: 50%;
        top: auto;
        bottom: 30px;
        transform: translateX(50%);
        width: 550px;
        height: 415px;
        opacity: 1;
    }

    .cta-banner h2 {
        font-size: 64px !important;
        margin-bottom: 20px;
    }

    .cta-services {
        gap: 10px;
        margin-bottom: 25px;
    }

    .cta-service-item {
        font-size: 37px !important;
        justify-content: center;
    }

    .cta-button {
        padding: 14px 35px;
        font-size: 40px !important;
        align-self: center;
    }
}