/* Custom animations and styles */

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes draw-line {
    from {
        stroke-dashoffset: 100;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* Network visualization animations */
.network-node {
    animation: pulse 2s ease-in-out infinite;
}

.connection-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-line 2s ease-in-out forwards;
}

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

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Extra line height for hero heading */
.hero-heading {
    line-height: 1.3 !important;
    padding-bottom: 0.5rem !important;
}

.hero-heading span {
    display: block !important;
    padding: 0.15rem 0 !important;
    line-height: 1.3 !important;
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

/* Fade in sections on scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Responsive typography */
@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
}

/* Focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Carousel animations */
.carousel-slide {
    flex-shrink: 0;
}

#carousel-image-track,
#benefits-carousel-image-track {
    width: 100%;
}

.carousel-image-slide,
.benefits-carousel-image-slide {
    flex-shrink: 0;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-text-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.carousel-text-slide:not(.hidden) {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.carousel-indicator {
    transition: all 0.3s ease;
}

.carousel-indicator.bg-primary {
    width: 2rem;
}

/* SVG pulse animations for carousel */
@keyframes pulse-danger {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes pulse-success {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.pulse-danger {
    animation: pulse-danger 2s ease-in-out infinite;
}

.pulse-success {
    animation: pulse-success 1.5s ease-in-out infinite;
}

/* Print styles */
@media print {
    nav, footer, .no-print {
        display: none;
    }
}
