/* ============================================
   PREMIUM SLIDESHOW STYLES
   ============================================ */

/* Slideshow Container */
.slideshow {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 800px;
    z-index: 1;
}

/* Individual Slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Fallback: Show first slide if JS fails */
.slideshow-container .slide:first-child {
    opacity: 1;
    visibility: visible;
}

/* Slide Background with Animated Gradients */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.15) 0%, rgba(19, 34, 56, 0.1) 100%);
    z-index: 2;
}

/* Animated background patterns */
.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 168, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(0, 195, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(0, 136, 204, 0.1) 0%, transparent 30%);
    z-index: 1;
}

/* Grid overlay */
.slide-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 168, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 168, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 2;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 80px); }
}

/* Floating particles */
.slide-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 168, 255, 0.6);
    border-radius: 50%;
    animation: floatParticle 15s infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 60%; animation-delay: 2s; }
.particle:nth-child(3) { left: 35%; top: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 50%; top: 70%; animation-delay: 1s; }
.particle:nth-child(5) { left: 65%; top: 40%; animation-delay: 3s; }
.particle:nth-child(6) { left: 80%; top: 25%; animation-delay: 5s; }
.particle:nth-child(7) { left: 90%; top: 55%; animation-delay: 2.5s; }
.particle:nth-child(8) { left: 15%; top: 80%; animation-delay: 3.5s; }

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Slide content container */
.slide .container {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

/* Slide Content Animation */
.slide.active .hero-content > * {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide.active .hero-badge {
    animation-delay: 0.2s;
    opacity: 0;
}

.slide.active h1 {
    animation-delay: 0.4s;
    opacity: 0;
}

.slide.active .hero-subtitle {
    animation-delay: 0.6s;
    opacity: 0;
}

.slide.active .hero-buttons {
    animation-delay: 0.8s;
    opacity: 0;
}

.slide.active .hero-stats {
    animation-delay: 1s;
    opacity: 0;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Content Styling */
.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 168, 255, 0.15);
    border: 1px solid rgba(0, 168, 255, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    color: var(--electric-blue);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.hero-badge::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--electric-blue);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
    box-shadow: 0 0 10px var(--electric-blue);
}

.hero h1 {
    color: var(--white);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Slideshow Navigation Dots */
.slideshow-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.slide-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    position: relative;
}

.slide-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.slide-dot:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: var(--electric-blue);
    transform: scale(1.2);
}

.slide-dot.active {
    background: var(--electric-blue);
    border-color: var(--electric-blue);
    width: 40px;
    border-radius: 7px;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
}

.slide-dot.active::before {
    opacity: 1;
}

/* Slideshow Arrows */
.slideshow-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 100;
    pointer-events: none;
}

.slide-arrow {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    opacity: 0.7;
}

.slide-arrow:hover {
    background: var(--electric-blue);
    border-color: var(--electric-blue);
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.4);
}

.slide-arrow svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

/* Hero Stats */
.slideshow .hero-stats {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: 100%;
    max-width: 1200px;
    margin: 0;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 60px;
}

.hero-stat {
    text-align: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    min-width: 160px;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--electric-blue);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
}

.hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Progress Bar */
.slideshow-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.slideshow-progress-bar {
    height: 100%;
    background: var(--gradient-electric);
    width: 0%;
    transition: width 0.3s linear;
}

/* Responsive */
@media (max-width: 1200px) {
    .slideshow-container {
        min-height: 700px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
}

@media (max-width: 992px) {
    .slideshow-arrows {
        display: none;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .hero-stat {
        flex: 1 1 40%;
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .slideshow-container {
        min-height: 600px;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-stat {
        flex: 1 1 100%;
    }
    
    .slideshow-nav {
        bottom: 20px;
    }
    
    .slide-dot {
        width: 10px;
        height: 10px;
    }
    
    .slide-dot.active {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.85rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
}
