/* ============================================
   AUTOMATION ENHANCED STYLES
   For Construction, Film, Technology & NGO Company
   ============================================ */

/* Counter Statistics Section */
.counter-box {
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.counter-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.counter-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.counter-box:hover::before {
    transform: scaleX(1);
}

.counter-box h2 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Auto-typing Text Styling */
[data-auto-type] {
    display: inline-block;
    min-width: 300px;
    border-right: 3px solid rgba(255, 255, 255, 0.8);
    animation: blink 0.7s step-end infinite;
    color: #ffffff;
    font-weight: 700;
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: rgba(255, 255, 255, 0.8); }
}

/* Animated Progress Bars */
.progress-bar-animated {
    height: 8px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-bar-animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Service Card Enhanced Animations */
.service-card-animated {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-card-animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 10px;
    pointer-events: none;
}

.service-card-animated:hover::after {
    opacity: 1;
}

/* Icon Pulse Animation */
.service-icon-animated {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.service-card-animated:hover .service-icon-animated {
    animation: iconRotate 0.6s ease-in-out;
}

@keyframes iconRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Auto-fade Elements */
.auto-fade {
    animation: autoFadeIn 1s ease-out forwards;
}

@keyframes autoFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Animation for Icons */
.float-animation {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Ripple Effect on Click */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple-effect:active::before {
    width: 300px;
    height: 300px;
}

/* Loading Spinner Enhanced */
.loader-animated {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.loader-animated .spinner-border {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    animation: spin 1s linear infinite;
}

/* Smooth Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Auto-carousel Indicators */
.carousel-indicators-animated {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.carousel-indicators-animated .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-indicators-animated .indicator.active {
    width: 30px;
    border-radius: 6px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* Form Input Auto-fill Animation */
input.filled,
textarea.filled {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Alert Auto-hide Animation */
.alert {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sector-specific Animations */

/* Construction Theme */
.construction-pulse {
    animation: constructionPulse 2s ease-in-out infinite;
}

@keyframes constructionPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(102, 126, 234, 0);
    }
}

/* Film/Media Theme */
.film-reel {
    animation: filmReel 20s linear infinite;
}

@keyframes filmReel {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Technology Theme */
.tech-glow {
    animation: techGlow 2s ease-in-out infinite alternate;
}

@keyframes techGlow {
    from {
        box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(118, 75, 162, 0.8);
    }
}

/* NGO/Foundation Theme */
.foundation-heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    [data-auto-type] {
        min-width: 200px;
        font-size: 0.9em;
    }
    
    .counter-box {
        padding: 20px 15px;
    }
    
    .counter-box h2 {
        font-size: 2rem;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Made with Bob */
