/* =============================================
   Advanced Hero Slider - Mathematics Theme
   ============================================= */

.hero-slider {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.85);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4) 0%, rgba(30, 64, 175, 0.3) 100%);
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    color: white;
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.95), rgba(16, 185, 129, 0.95));
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.6);
}

.slide-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 2px 10px rgba(0, 0, 0, 0.9);
}

.slide-title .highlight {
    color: #22D3EE;
    display: block;
    text-shadow: 0 0 30px rgba(34, 211, 238, 1), 0 4px 15px rgba(0, 0, 0, 0.8);
}

.slide-description {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 700px;
    color: white;
    opacity: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.slide-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.slide-btn {
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    text-decoration: none;
}

.slide-btn-primary {
    background: linear-gradient(135deg, #06B6D4, #10B981);
    color: white;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.6);
}

.slide-btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.7);
    filter: brightness(1.15);
}

.slide-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.slide-btn-secondary:hover {
    background: white;
    color: #3B82F6;
    transform: translateY(-5px);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dot.active {
    background: white;
    width: 40px;
    border-radius: 10px;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    right: 30px;
}

.slider-arrow.next {
    left: 30px;
}

.slider-arrow i {
    color: white;
    font-size: 1.5rem;
}

/* Math Formulas Decoration */
.math-decoration {
    position: absolute;
    font-size: 10rem;
    font-weight: 900;
    color: rgba(34, 211, 238, 0.25);
    z-index: 1;
    font-family: 'Times New Roman', serif;
    pointer-events: none;
    text-shadow: 0 0 40px rgba(34, 211, 238, 0.6), 0 0 80px rgba(6, 182, 212, 0.4);
    animation: mathFloat 6s ease-in-out infinite;
}

@keyframes mathFloat {
    0%, 100% {
        transform: translateY(0) rotate(-15deg) scale(1);
        opacity: 0.25;
    }
    25% {
        transform: translateY(-20px) rotate(-10deg) scale(1.05);
        opacity: 0.35;
    }
    50% {
        transform: translateY(-30px) rotate(-15deg) scale(1.1);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-20px) rotate(-20deg) scale(1.05);
        opacity: 0.35;
    }
}

@keyframes mathFloatReverse {
    0%, 100% {
        transform: translateY(0) rotate(15deg) scale(1);
        opacity: 0.25;
    }
    25% {
        transform: translateY(20px) rotate(20deg) scale(1.05);
        opacity: 0.35;
    }
    50% {
        transform: translateY(30px) rotate(15deg) scale(1.1);
        opacity: 0.4;
    }
    75% {
        transform: translateY(20px) rotate(10deg) scale(1.05);
        opacity: 0.35;
    }
}

.math-decoration.top-right {
    top: 50px;
    left: 80%;
    animation: mathFloat 6s ease-in-out infinite;
}

.math-decoration.bottom-left {
    bottom: 80px;
    right: 75%;
    animation: mathFloatReverse 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-slider {
        height: 550px;
    }
    
    .slide-title {
        font-size: 3rem;
    }
    
    .slide-description {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 500px;
    }
    
    .slide-content {
        padding: 0 20px;
    }
    
    .slide-title {
        font-size: 2.2rem;
    }
    
    .slide-description {
        font-size: 1.1rem;
    }
    
    .slide-buttons {
        flex-direction: column;
    }
    
    .slide-btn {
        width: 100%;
        justify-content: center;
    }
    
    .slider-arrow {
        width: 45px;
        height: 45px;
    }
    
    .slider-arrow.prev {
        right: 15px;
    }
    
    .slider-arrow.next {
        left: 15px;
    }
    
    .math-decoration {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 450px;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
}

