/**
 * Hero Variants Component CSS
 * Styles for 3 homepage hero variants:
 * 1. Full Image Slider
 * 2. Animated Text Slider
 * 3. Particles.js Slider
 */

/* ==========================================================================
   Common Hero Styles
   ========================================================================== */

.hero-slider-section {
    margin-bottom: 0;
}

.slider-title {
    text-align: center;
    padding: 2rem 0;
    background: rgba(72, 65, 105, 0.05);
}

.slider-title h2 {
    font-size: 1.8rem;
    color: var(--primary-color, #484169);
    margin-bottom: 0.5rem;
}

.slider-title p {
    color: var(--text-muted, #6c757d);
}

/* ==========================================================================
   Hero Variant 1: Full Image Slider
   ========================================================================== */

.full-image-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(72, 65, 105, 0.85), rgba(52, 46, 77, 0.85));
}

.slider-slide.active {
    opacity: 1;
}

.slide-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    z-index: 1;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: slideInDown 0.8s ease-out;
    color: white;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 700px;
    animation: slideInUp 1s ease-out;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 1.2s ease-out;
}

/* Navigation Controls */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

/* ==========================================================================
   Hero Variant 2: Animated Text Slider
   ========================================================================== */

.text-slider {
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color, #484169), var(--secondary-color, #342e4d));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.text-slider::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: moveGrid 20s linear infinite;
}

.text-slider-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

.text-slider-content .prefix {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.rotating-text-wrapper {
    height: 120px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.rotating-text {
    animation: rotateText 12s infinite;
}

.rotating-text span {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    height: 120px;
    line-height: 120px;
}

.text-slider-content .description {
    font-size: 1.2rem;
    opacity: 0.95;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.text-slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    width: 100%;
}

.text-slider-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: white;
    animation: progress 12s linear infinite;
}

/* ==========================================================================
   Hero Variant 3: Particles.js Slider
   ========================================================================== */

.particles-slider {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, var(--primary-color, #484169), var(--secondary-color, #342e4d));
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particles-content-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.particles-slide-content {
    position: absolute;
    left: 50%;
    /* transform: translateX(-50%); */
    text-align: center;
    color: white;
    padding: 0 20px;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    width: 100%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.particles-slide-content.active {
    opacity: 1;
}

.slide-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
}

.particles-slide-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.particles-slide-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.particles-slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.particles-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.particles-slider-dot.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

.particles-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.particles-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.particles-slider-arrow.prev {
    left: 30px;
}

.particles-slider-arrow.next {
    right: 30px;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateText {
    0%, 33% { transform: translateY(0); }
    35%, 66% { transform: translateY(-120px); }
    68%, 100% { transform: translateY(-240px); }
}

@keyframes progress {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 968px) {
    .full-image-slider,
    .particles-slider {
        height: 500px;
    }

    .slide-content h1,
    .particles-slide-content h1 {
        font-size: 2.5rem;
    }

    .slide-content p,
    .particles-slide-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .full-image-slider,
    .text-slider,
    .particles-slider {
        height: 400px;
    }

    .slide-content h1,
    .particles-slide-content h1 {
        font-size: 2rem;
    }

    .rotating-text span {
        font-size: 2.5rem;
        height: 80px;
        line-height: 80px;
    }

    .rotating-text-wrapper {
        height: 80px;
    }

    .slider-arrow,
    .particles-slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .slider-arrow.prev,
    .particles-slider-arrow.prev {
        left: 15px;
    }

    .slider-arrow.next,
    .particles-slider-arrow.next {
        right: 15px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
    }
}
