/* =====================================================
   छत्रपती शिवाजी महाराज चषक - Animated Section Dividers
   ===================================================== */

/* Section Divider Animation */
.section-divider {
    width: 100%;
    height: 3px;
    background: transparent;
    position: absolute;
    bottom: 0;
    left: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    z-index: 10;
    pointer-events: none;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--primary-color) 20%,
        var(--secondary-color) 50%,
        var(--primary-color) 80%,
        transparent 100%);
    animation: slideLineLeftToRight 2s ease-in-out infinite;
}

@keyframes slideLineLeftToRight {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Variant: Thicker divider */
.section-divider.thick {
    height: 5px;
}

/* Variant: Slower animation */
.section-divider.slow {
    &::before {
        animation-duration: 3s;
    }
}

/* Variant: Faster animation */
.section-divider.fast {
    &::before {
        animation-duration: 1.5s;
    }
}

/* Variant: With gradient background */
.section-divider.gradient-bg {
    background: linear-gradient(90deg, 
        var(--bg-primary) 0%,
        var(--bg-secondary) 50%,
        var(--bg-primary) 100%);
}

/* Ensure sections have relative positioning for absolute dividers */
section {
    position: relative;
}

/* Footer divider (inside footer, not at section end) */
.footer .section-divider {
    position: relative; /* Not absolute */
    margin: 2rem 0; /* Add spacing above and below */
    bottom: auto; /* Override bottom: 0 */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .section-divider {
        height: 2px;
    }
}

