/* Custom Styles for A2Z Global */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Tech Visual - Abstract CSS Shapes */
.tech-visual {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 176, 220, 0.1) 0%, rgba(3, 0, 124, 0.1) 100%);
    border-radius: 20px;
    overflow: hidden;
}

.tech-visual::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 60px;
    height: 60px;
    background: #1AB0DC;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

.tech-visual::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: #03007C;
    border-radius: 50%;
    opacity: 0.2;
    animation: float 4s ease-in-out infinite reverse;
}

/* Animated Grid Background */
.tech-visual {
    background-image: 
        linear-gradient(rgba(26, 176, 220, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 176, 220, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

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

/* Hero: Animated Architecture Lines */
.hero-flow-line {
    stroke-dasharray: 8 10;
    stroke-dashoffset: 0;
    animation: heroFlowDash 2.8s linear infinite;
}

.hero-flow-line:nth-child(2) { animation-delay: 0.2s; opacity: 0.85; }
.hero-flow-line:nth-child(3) { animation-delay: 0.4s; opacity: 0.85; }
.hero-flow-line:nth-child(4) { animation-delay: 0.6s; opacity: 0.7; }
.hero-flow-line:nth-child(5) { animation-delay: 0.8s; opacity: 0.7; }

@keyframes heroFlowDash {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -120; }
}

/* Tech Stack: Active Card */
.tech-card.is-active {
    border-color: #1AB0DC !important;
    box-shadow: 0 18px 40px rgba(26, 176, 220, 0.18) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

/* Tech Stack: Card Transitions */
.tech-card {
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

/* Tech Stack: Search Input Focus */
#tech-search:focus {
    outline: none !important;
    border-color: #1AB0DC !important;
    box-shadow: 0 0 0 3px rgba(26, 176, 220, 0.1) !important;
}

/* Tech Stack: Filter Buttons */
.tech-filter-btn {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.tech-filter-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.tech-filter-btn:active {
    transform: translateY(0) scale(1);
}

.tech-filter-btn.active {
    background: linear-gradient(135deg, #1AB0DC 0%, rgba(59, 130, 246, 0.9) 100%) !important;
    border-color: #1AB0DC !important;
    color: #EFF0F0 !important;
    box-shadow: 0 4px 12px rgba(26, 176, 220, 0.3) !important;
    transform: scale(1.05);
}

/* Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Partner Logo Animation */
.partner-logo {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.partner-logo.visible {
    opacity: 1;
    transform: scale(1);
}

/* Trusted By: Logo Marquee */
.logo-marquee {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(26, 176, 220, 0.15);
}

.logo-marquee::before,
.logo-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 72px;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.logo-marquee::after {
    right: 0;
    background: linear-gradient(270deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.logo-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: logoMarquee 28s linear infinite;
    padding: 0 18px;
}

.logo-marquee:hover .logo-track {
    animation-play-state: paused;
}

.logo-item {
    flex: 0 0 auto;
}

.logo-card {
    min-width: 140px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 14px;
    border: 2px solid rgba(3, 0, 124, 0.12);
    background: rgba(255, 255, 255, 0.95);
    color: rgba(3, 0, 124, 0.7);
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.logo-card:hover {
    transform: translateY(-2px);
    border-color: rgba(26, 176, 220, 0.55);
    color: rgba(3, 0, 124, 0.9);
    box-shadow: 0 18px 40px rgba(26, 176, 220, 0.18);
}

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

/* Header Shrink on Scroll */
header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled nav .container > div {
    height: 4rem;
}

/* Mobile Menu Overlay */
#mobile-menu {
    z-index: 99998;
}

#mobile-menu.active {
    transform: translateX(0);
}

#mobile-menu-btn {
    z-index: 99999;
    position: relative;
    cursor: pointer;
    pointer-events: auto !important;
}

/* Back to Top Button */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Active Nav Link */
.nav-link.active,
.mobile-nav-link.active {
    color: #1AB0DC;
    position: relative;
}

.nav-link.active::after,
.mobile-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #1AB0DC;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .tech-visual {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .tech-visual {
        height: 250px;
    }
}

/* Service Card Hover Effects */
.service-card {
    transform: translateY(0);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 176, 220, 0.15);
}

.service-card:hover::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, #1AB0DC, rgba(26, 176, 220, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    z-index: -1;
}

/* Service Modal */
#service-modal {
    backdrop-filter: blur(4px);
    display: none;
}

#service-modal.active {
    display: flex;
}

.modal-content {
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-content.active {
    transform: scale(1);
    opacity: 1;
}

/* Modal Badge Styles */
.tech-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: #f3f4f6;
    color: #374151;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0.25rem;
}

/* Industry Pills Hover Effect */
.industry-pill:hover {
    background-color: #1AB0DC;
    border-color: #1AB0DC;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 176, 220, 0.3);
}

/* Portfolio Items */
.portfolio-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

/* Portfolio Filter Active State */
.portfolio-filter.active {
    background-color: #1AB0DC;
    color: white;
    border-color: #1AB0DC;
}

/* Case Study Modal */
#case-study-modal {
    backdrop-filter: blur(4px);
    display: none;
}

#case-study-modal.active {
    display: flex;
}

/* FAQ Accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.faq-answer:not(.hidden) {
    max-height: 1000px;
    opacity: 1;
}

.faq-answer.hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.faq-icon {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Testimonials Slider */
.testimonials-container {
    position: relative;
}

.testimonial-slide {
    transition: opacity 0.5s ease;
    display: none;
}

.testimonial-slide:first-child {
    display: block;
}

/* Contact Form */
input:focus, textarea:focus, select:focus {
    outline: none;
}

input.error, textarea.error {
    border-color: #ef4444 !important;
}

/* Toast Notification */
#toast-notification {
    transition: transform 0.3s ease-in-out;
}

#toast-notification.translate-x-0 {
    transform: translateX(0);
}

#toast-notification.translate-x-full {
    transform: translateX(100%);
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Animations for Improved Home Page */
@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

/* Hero Section Unique Animations */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.typing-cursor {
    display: inline-block;
    animation: blink 1s infinite;
    margin-left: 2px;
}

.typing-animation {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
}

/* Hero Badge Animation */
.hero-badge {
    animation: slideInDown 0.8s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Description Animation */
.hero-description {
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero CTA Buttons */
.hero-cta-primary,
.hero-cta-secondary {
    position: relative;
    overflow: hidden;
}

.hero-cta-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-cta-primary:hover::before {
    width: 300px;
    height: 300px;
}

.hero-cta-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.hero-cta-secondary:hover::after {
    left: 100%;
}

/* Trust Indicators */
.trust-indicators .trust-item {
    animation: fadeInScale 0.6s ease-out both;
}

.trust-indicators .trust-item:nth-child(1) {
    animation-delay: 0.1s;
}

.trust-indicators .trust-item:nth-child(2) {
    animation-delay: 0.2s;
}

.trust-indicators .trust-item:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero 3D Card */
.hero-3d-card {
    transition: transform 0.3s ease-out;
    transform-style: preserve-3d;
}

.hero-visual-container {
    perspective: 1000px;
}

/* Floating Icons */
.hero-float-icon {
    transition: transform 0.3s ease-out;
    animation: float 3s ease-in-out infinite;
}

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

/* Hero Orb Animation */
.hero-orb {
    animation: orbFloat 8s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -20px) scale(1.1);
    }
    50% {
        transform: translate(-10px, 10px) scale(0.9);
    }
    75% {
        transform: translate(15px, 15px) scale(1.05);
    }
}

/* Stat Cards Enhanced */
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover .stat-icon {
    transform: rotate(360deg) scale(1.1);
    transition: transform 0.6s ease;
}

.stat-icon {
    transition: transform 0.3s ease;
}

/* Particle Canvas */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Highlight Text Effect */
.highlight-text {
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.highlight-text:hover {
    color: #1AB0DC !important;
    text-shadow: 0 0 10px rgba(26, 176, 220, 0.3);
}

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

/* Tech Stack Item Hover */
.tech-stack-item {
    transition: all 0.3s ease;
}

.tech-stack-item:hover {
    transform: translateY(-8px) scale(1.05);
}

/* Enhanced Gradient Text */
.bg-gradient-to-r {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Success Story Cards */
.bg-gradient-to-br {
    position: relative;
    overflow: hidden;
}

.bg-gradient-to-br::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

/* Enhanced Stats Cards */
.transform.hover\:scale-105 {
    transition: transform 0.3s ease;
}

/* Improved Button Animations */
.transform {
    transition: transform 0.3s ease;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Gradient Animation for Hero Text */
@keyframes animate-gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient {
    animation: animate-gradient 3s ease infinite;
}

/* Enhanced Fade In Up Animation with Delay Support */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpEnhanced 0.8s ease-out forwards;
}

@keyframes fadeInUpEnhanced {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Support for animation-delay inline style */
[style*="animation-delay"] {
    animation-delay: var(--animation-delay, 0s);
}

/* Cookie Consent Popup Styles */
.cookie-consent-popup {
    z-index: 99999 !important;
    display: none;
}

.cookie-consent-popup.show {
    transform: translateY(0) !important;
    display: block !important;
}

.cookie-settings-modal {
    display: none;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-modal.show .cookie-settings-content {
    transform: scale(1);
}

/* Cookie Popup Animation */
@keyframes slideUpCookie {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent-popup.show {
    animation: slideUpCookie 0.5s ease-out;
}

/* Hero Section Enhanced Animations */
@keyframes animate-gradient-bg {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient-bg {
    animation: animate-gradient-bg 15s ease infinite;
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.15;
        transform: scale(1);
    }
    50% {
        opacity: 0.25;
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-40px) translateX(-5px);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-20px) translateX(-10px);
        opacity: 0.5;
    }
}

.animate-float {
    animation: float 8s ease-in-out infinite;
}

/* Tech Pulse Animation for Dots */
@keyframes pulse-tech {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
    }
    25% {
        opacity: 0.9;
        transform: scale(1.2);
        box-shadow: 0 0 12px rgba(59, 130, 246, 0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.4);
        box-shadow: 0 0 18px rgba(59, 130, 246, 1.1);
    }
    75% {
        opacity: 0.9;
        transform: scale(1.2);
        box-shadow: 0 0 12px rgba(59, 130, 246, 0.9);
    }
}

.animate-pulse-tech {
    animation: pulse-tech 3s ease-in-out infinite;
}

/* Typing Animation for Code */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.animate-blink {
    animation: blink 1s infinite;
}

/* ============================================
   A2Z.AI CHATBOT STYLES
   ============================================ */

/* Chatbot Widget Animations */
#chatbot-widget {
    animation: fadeInUp 0.5s ease-out;
    pointer-events: auto !important;
    z-index: 99999 !important;
    position: fixed !important;
}

#chatbot-widget * {
    pointer-events: auto !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Window Animation */
#chatbot-window {
    animation: slideUpFade 0.3s ease-out;
    pointer-events: auto !important;
    z-index: 10001 !important;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Chat Button Pulse Animation */
#chatbot-toggle {
    animation: pulse-glow 2s ease-in-out infinite;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 100000 !important;
    border: none !important;
    outline: none !important;
}

#chatbot-toggle:active {
    transform: scale(0.95) !important;
}

#chatbot-toggle:hover {
    transform: scale(1.1) !important;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(26, 176, 220, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(26, 176, 220, 0);
    }
}

/* Chat Messages Scrollbar */
#chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

#chatbot-messages::-webkit-scrollbar-track {
    background: rgba(26, 176, 220, 0.1);
    border-radius: 10px;
}

#chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(26, 176, 220, 0.5);
    border-radius: 10px;
}

#chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 176, 220, 0.7);
}

/* Quick Suggestion Hover Effect */
.quick-suggestion:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(26, 176, 220, 0.3);
}

/* Typing Indicator Animation */
#chatbot-typing .animate-bounce {
    animation: bounce 1.4s ease-in-out infinite;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Chat Input Focus Effect */
#chatbot-input:focus {
    background: rgba(239, 240, 240, 0.15) !important;
    border-color: rgba(26, 176, 220, 0.5) !important;
}

/* Message Animation */
#chatbot-messages > div {
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   PRELOADER STYLES - ENHANCED & SMOOTH
   ============================================ */

.preloader-container {
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: preloaderFadeIn 0.5s ease-out;
}

.preloader-container.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

/* Preloader Content Animation */
.preloader-content {
    animation: contentFadeIn 0.6s ease-out 0.2s both;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo/Text Animation */
.preloader-logo {
    animation: logoPulse 2s ease-in-out infinite;
}

.preloader-text {
    animation: textGlow 2s ease-in-out infinite;
}

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

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 30px rgba(26, 176, 220, 0.6), 0 0 60px rgba(26, 176, 220, 0.3);
    }
    50% {
        text-shadow: 0 0 40px rgba(26, 176, 220, 0.8), 0 0 80px rgba(26, 176, 220, 0.5), 0 0 120px rgba(26, 176, 220, 0.2);
    }
}

/* Animated Line */
.preloader-line {
    animation: lineShimmer 2s ease-in-out infinite;
}

@keyframes lineShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Spinner Animations */
.spinner-ring-1 {
    animation: spinSmooth 1s linear infinite;
}

.spinner-ring-2 {
    animation: spinSmooth 1.5s linear infinite reverse;
}

.spinner-ring-3 {
    animation: spinSmooth 0.8s linear infinite;
}

@keyframes spinSmooth {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Loading Text Animation */
.preloader-text-anim {
    animation: textFade 1.5s ease-in-out infinite;
}

.loading-dots::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

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

@keyframes textFade {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Progress Bar Container */
.preloader-progress-container {
    animation: progressContainerFade 0.8s ease-out 0.4s both;
}

@keyframes progressContainerFade {
    from {
        opacity: 0;
        transform: scaleX(0.8);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Progress Bar Animation */
.preloader-progress-bar {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: progressShimmer 2s linear infinite;
}

@keyframes progressShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Smooth Progress Load */
#preloader-progress {
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Chatbot */
@media (max-width: 640px) {
    #chatbot-widget {
        bottom: 4rem;
        right: 1rem;
    }
    
    #chatbot-window {
        width: calc(100vw - 2rem);
        max-width: 400px;
        height: calc(100vh - 8rem);
        max-height: 600px;
    }
    
    #chatbot-toggle {
        width: 3.5rem;
        height: 3.5rem;
    }
}

/* Chatbot Button Shadow on Hover */
#chatbot-toggle:hover {
    box-shadow: 0 10px 30px rgba(26, 176, 220, 0.5);
}

