/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    margin-top: 65px;
}

/* Wave Bottom Edge */
.hero-slider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: var(--bg);
    clip-path: ellipse(75% 100% at 50% 100%);
    z-index: 5;
}

/* Decorative floating shapes */
.hero-slider::before {
    content: '';
    position: absolute;
    bottom: 60px;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.7) 50%, rgba(14,165,233,0.3) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 24px;
    max-width: 800px;
}


.slide-content .subtitle {
    font-size: 16px;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s ease forwards;
    animation-delay: 0.1s;
}

.slide-content .subtitle::before {
    content: '';
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.slide-content h1 {
    font-size: 52px;
    line-height: 1.1;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.slide-content h1 span {
    color: var(--primary-light);
}

.slide-content > p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 550px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.3s;
}

.slide-content .hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
    animation-delay: 0.4s;
}

.slide-content .hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
}

.slide-content .btn-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.slide-content .btn-secondary {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

.slide:not(.active) .slide-content .subtitle,
.slide:not(.active) .slide-content h1,
.slide:not(.active) .slide-content > p,
.slide:not(.active) .slide-content .hero-buttons {
    animation: none;
    opacity: 0;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
}

.dot.active {
    background: var(--primary);
    width: 36px;
    border-radius: 6px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* Mobile */
@media (max-width: 768px) {
    .hero-slider {
        margin-top: 60px;
        min-height: 350px;
        max-height: 450px;
        height: 50vh;
    }
    
    .hero-slider::after {
        height: 60px;
        clip-path: ellipse(80% 100% at 50% 100%);
    }
    
    .hero-slider::before {
        display: none;
    }
    
    .slide-content {
        text-align: center;
        align-items: center;
        padding: 30px 20px;
    }
    
    .slide-content .subtitle::before { display: none; }
    .slide-content h1 { font-size: 22px; margin-bottom: 10px; }
    .slide-content > p { font-size: 14px; margin-bottom: 0; }
}
