/* GSAP Hero Text Slider - No Overlap Fix */

.gsap-hero-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gsap-hero-slider {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slides-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CRITICAL: Prevent overlap with absolute positioning */
.hero-slide {
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 1;
}

/* Active slide gets higher z-index and relative positioning */
.hero-slide.active {
    position: relative !important;
    top: auto;
    left: auto;
    transform: none;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 10;
}

.slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.slide-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.slide-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.slide-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.slide-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.slide-cta:hover::before {
    opacity: 1;
}

/* Navigation */
.slider-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
    z-index: 100;
}

.slider-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.slider-nav:active {
    transform: scale(0.95);
}

.slider-nav svg {
    width: 24px;
    height: 24px;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.slider-dot.active {
    background: #ffffff;
    width: 32px;
    border-radius: 6px;
}

/* Animation elements */
.slide-title,
.slide-description,
.slide-cta {
    will-change: transform, opacity;
    padding-bottom: 0px;
    margin-bottom: 0px;
}

/* Responsive */
@media (max-width: 1024px) {
    .slide-title {
        font-size: 2.5rem;
    }
    .slide-description {
        font-size: 1.1rem;
    }
    .slide-cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .gsap-hero-slider {
        min-height: 60vh;
    }
    .slide-title {
        font-size: 3rem !important;
    }
    .slide-description {
        font-size: 1rem;
        max-width: 100%;
    }
    .slide-cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    .slider-navigation {
        padding: 0 1rem;
    }
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    .slider-nav svg {
        width: 20px;
        height: 20px;
    }
    .slider-dots {
        bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gsap-hero-slider {
        min-height: 50vh;
    }
    .slide-title {
        font-size: 1.75rem;
    }
    .slide-description {
        font-size: 0.95rem;
    }
    .slides-container {
        padding: 0 15px;
    }
}

/* Accessibility */
.slider-nav:focus,
.slider-dot:focus {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

/* Prevent text selection during animation */
.gsap-hero-slider-wrapper.animating {
    user-select: none;
}

.gsap-hero-slider-wrapper.animating * {
    pointer-events: none;
}