/* Custom Styles */

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

/* Global Styles */
body {
    scroll-behavior: smooth;
}

/* Fade-in animation for sections */
.section-animate {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* AI Chat Styles */
#chat-messages {
    scroll-behavior: smooth;
}

.chat-bubble-user {
    animation: fadeIn 0.3s ease forwards;
}

.chat-bubble-bot {
    animation: fadeIn 0.3s ease forwards;
    animation-delay: 0.1s;
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) rotate(45deg);
    transition: all 0.6s ease;
}

.btn-primary:hover::after {
    width: 200%;
    height: 200%;
    opacity: 0;
}

/* Card hover effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Case study image hover zoom */
.case-image-container {
    overflow: hidden;
}

.case-image {
    transition: transform 0.5s ease;
}

.case-card:hover .case-image {
    transform: scale(1.05);
}

/* FAQ accordion styles */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 200px;
}

/* Form input focus effects */
.form-input:focus {
    border-color: #165DFF;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

/* Back to top button */
#back-to-top {
    z-index: 50;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content {
        padding-top: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

/* Loading spinner for AI responses */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #165DFF;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0e42d2;
}

/* Animation delays for staggered effects */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }