/* 🎨 ROBOBOT ANIMATION STYLES */

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Fade in animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 193, 7, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 193, 7, 0.8), 0 0 30px rgba(255, 193, 7, 0.6); }
}

/* Page load animations */
.hero-section {
    animation: fadeIn 1s ease-out;
}

.hero-section h1 {
    animation: slideInLeft 1s ease-out 0.2s both;
}

.hero-section p {
    animation: slideInLeft 1s ease-out 0.4s both;
}

.hero-section .btn {
    animation: slideInLeft 1s ease-out 0.6s both;
}

.hero-section .col-lg-6:last-child {
    animation: slideInRight 1s ease-out 0.3s both;
}

/* Feature cards hover effects */
.card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.card .fa-brain,
.card .fa-video,
.card .fa-music,
.card .fa-shield-alt,
.card .fa-image,
.card .fa-chart-line {
    transition: all 0.3s ease;
}

.card:hover .fa-brain,
.card:hover .fa-video,
.card:hover .fa-music,
.card:hover .fa-shield-alt,
.card:hover .fa-image,
.card:hover .fa-chart-line {
    transform: scale(1.2);
    animation: pulse 2s infinite;
}

/* Button animations */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-warning:hover {
    animation: glow 2s infinite;
}

/* Pricing cards */
.pricing-card, 
.h-100 {
    transition: all 0.4s ease;
}

.pricing-card:hover,
.h-100:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* Robot icon animation */
.fa-robot {
    animation: float 3s ease-in-out infinite;
}

/* Loading animation for status indicators */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Demo chat animation */
.demo-chat-container {
    animation: fadeInUp 1s ease-out 0.8s both;
}

.demo-chat-container .bg-light,
.demo-chat-container .bg-primary,
.demo-chat-container .bg-success {
    animation: slideInRight 0.5s ease-out both;
}

.demo-chat-container .bg-light {
    animation-delay: 1s;
}

.demo-chat-container .bg-primary {
    animation-delay: 1.3s;
}

.demo-chat-container .bg-success {
    animation-delay: 1.6s;
}

/* Navbar animation */
.navbar {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #ffc107;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Feature section stagger animation */
.features-section .col-md-6:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.2s both; }
.features-section .col-md-6:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.4s both; }
.features-section .col-md-6:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.6s both; }
.features-section .col-md-6:nth-child(4) { animation: fadeInUp 0.6s ease-out 0.8s both; }
.features-section .col-md-6:nth-child(5) { animation: fadeInUp 0.6s ease-out 1.0s both; }
.features-section .col-md-6:nth-child(6) { animation: fadeInUp 0.6s ease-out 1.2s both; }

/* Pricing section animations */
.pricing-section .col-lg-3:nth-child(1) { animation: slideInLeft 0.6s ease-out 0.2s both; }
.pricing-section .col-lg-3:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.4s both; }
.pricing-section .col-lg-3:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.6s both; }
.pricing-section .col-lg-3:nth-child(4) { animation: slideInRight 0.6s ease-out 0.8s both; }

/* Special effects for popular badges */
.badge {
    transition: all 0.3s ease;
}

.border-warning .badge {
    animation: pulse 2s infinite;
}

/* Success message animations */
.alert {
    animation: slideInRight 0.5s ease-out;
}

/* Dashboard elements */
.dashboard-card {
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Mobile responsiveness for animations */
@media (max-width: 768px) {
    .card:hover {
        transform: translateY(-5px);
    }
    
    .pricing-card:hover,
    .h-100:hover {
        transform: translateY(-8px) scale(1.01);
    }
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Fun loading states */
.loading-dots::after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}