/* Interactive Elements Styles */

/* Animation classes for scroll animations */
.feature-card, .stat-card, .platform-content, .testimonial-card, .about-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.feature-card.animate, .stat-card.animate, .platform-content.animate, .testimonial-card.animate, .about-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for feature cards */
.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }

/* Staggered animations for service boxes removed */

/* Staggered animations for stat cards */
.stat-card:nth-child(1) { transition-delay: 0.1s; }
.stat-card:nth-child(2) { transition-delay: 0.2s; }
.stat-card:nth-child(3) { transition-delay: 0.3s; }
.stat-card:nth-child(4) { transition-delay: 0.4s; }

/* Testimonial hover effect */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card.hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* FAQ accordion styles */
.faq-question {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question.active {
    color: var(--primary-color);
}

.faq-question.active .faq-toggle {
    background-color: var(--primary-color);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* Form validation styles */
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(6, 43, 78, 0.1);
}

.success-message {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}

/* Back to top button hover effect */
.back-to-top {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Parallax effect */
.hero {
    background-attachment: fixed;
}

/* Pulse animation for CTA buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(190, 5, 3, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(190, 5, 3, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(190, 5, 3, 0);
    }
}

.cta-section .btn-primary {
    animation: pulse 2s infinite;
}

/* Interactive navigation highlight */
nav ul li a {
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Underline animation for nav items */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    transform: scaleX(1);
}

/* Mobile-specific animations */
@media (max-width: 992px) {
    .hamburger-menu {
        transition: transform 0.3s ease;
    }
    
    .hamburger-menu:hover {
        transform: scale(1.1);
    }
    
    .mobile-nav ul li a {
        transform: translateX(20px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    .mobile-nav.active ul li a {
        transform: translateX(0);
        opacity: 1;
    }
    
    .mobile-nav.active ul li:nth-child(1) a { transition-delay: 0.1s; }
    .mobile-nav.active ul li:nth-child(2) a { transition-delay: 0.2s; }
    .mobile-nav.active ul li:nth-child(3) a { transition-delay: 0.3s; }
    .mobile-nav.active ul li:nth-child(4) a { transition-delay: 0.4s; }
    .mobile-nav.active ul li:nth-child(5) a { transition-delay: 0.5s; }
    .mobile-nav.active ul li:nth-child(6) a { transition-delay: 0.6s; }
}
