/* ===== CRITICAL LCP OPTIMIZATION ===== */
/* Make first slide visible immediately with NO delay */
.slide:first-child {
    opacity: 1 !important;
    z-index: 1 !important;
}

.slide:first-child .slide-title,
.slide:first-child .slide-description,
.slide:first-child .slide-button {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}
/* ===== END CRITICAL SECTION ===== */

.animated-pro-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-height: 600px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.text-content {
    text-align: center;
    color: white;
    z-index: 10;
    max-width: 800px;
}

.slide-title {
    font-size: 64px;
    font-weight: 900;
    margin: 0 0 20px 0;
    line-height: 1.2;
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.slide-description {
    font-size: 24px;
    margin: 0 0 30px 0;
    font-weight: 400;
    color: #ffffff !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.slide-button {
    display: inline-block;
    padding: 16px 40px;
    background: rgb(15, 79, 218);
    color: #f9f5f5;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

/* Only hide content for NON-active slides (slides 2 and 3) */
.slide:not(.active) .slide-title,
.slide:not(.active) .slide-description,
.slide:not(.active) .slide-button {
    opacity: 0;
    transform: translateY(30px);
}

.slide-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Shape Animations */
.shape {
    position: absolute;
    opacity: 0.15;
    animation-duration: 20s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.shape-circle {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation-name: float;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid white;
    top: 60%;
    right: 15%;
    animation-name: rotate;
}

.shape-square {
    width: 150px;
    height: 150px;
    background: white;
    top: 70%;
    left: 20%;
    animation-name: pulse;
    transform: rotate(45deg);
}

.shape-hexagon {
    width: 100px;
    height: 173px;
    background: white;
    position: relative;
    top: 20%;
    right: 10%;
    animation-name: float;
}

.shape-pentagon {
    width: 120px;
    height: 120px;
    background: white;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    bottom: 20%;
    right: 20%;
    animation-name: rotate;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-30px) translateX(20px); }
    50% { transform: translateY(-60px) translateX(0); }
    75% { transform: translateY(-30px) translateX(-20px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(45deg); }
    50% { transform: scale(1.1) rotate(45deg); }
}

/* Text Animations - Only for slides 2 and 3 */
.slide:not(:first-child).active [data-animation="fadeInUp"] {
    animation: fadeInUp 0.8s ease forwards;
}

.slide:not(:first-child).active [data-animation="slideInLeft"] {
    animation: slideInLeft 0.8s ease forwards;
}

.slide:not(:first-child).active [data-animation="zoomIn"] {
    animation: zoomIn 0.8s ease forwards;
}

.slide:not(:first-child).active [data-delay="200"] {
    animation-delay: 0.2s;
}

.slide:not(:first-child).active [data-delay="400"] {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* Pagination */
.slider-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .animated-pro-slider {
        height: 500px;
    }
    
    .slide-title {
        font-size: 48px;
    }
    
    .slide-description {
        font-size: 20px;
    }
    
    .shape {
        opacity: 0.1;
    }
}

@media (max-width: 768px) {
    .animated-pro-slider {
        height: 400px;  
    }

    .slide-content {
        padding: 0 20px;
    }
    
    .slide-title {
        font-size: 36px;
        color: #ffffff !important;
    }
    
    .slide-description {
        font-size: 16px;
        color: #ffffff !important;
    }
    
    .slide-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }
    
    .shape-circle {
        width: 100px;
        height: 100px;
    }
    
    .shape-triangle {
        border-left: 50px solid transparent;
        border-right: 50px solid transparent;
        border-bottom: 87px solid white;
    }
    
    .shape-square {
        width: 80px;
        height: 80px;
    }

}

@media (max-width: 480px) {
    .animated-pro-slider {
        height: 350px; 
    }
    
    .slide-title {
        font-size: 28px;
        color: #ffffff !important;
    }
    
    .slide-description {
        font-size: 14px;
        color: #ffffff !important;
    }
    
    .slide-button {
        padding: 10px 24px;
        font-size: 14px;
    }
}

