/* Keyframe Animations */
@keyframes fadeInSlow {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUpDelay {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientRotate {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes letterSlideIn {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        filter: blur(0px);
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

@keyframes rotate {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}

@keyframes drawPath {
    0% {
        stroke-dasharray: 0 1000;
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dasharray: 1000 0;
        stroke-dashoffset: 0;
    }
}

/* Individual path glow pulse animations */
@keyframes glowPulse1 {
    0%, 100% { 
        filter: drop-shadow(0 0 4px #FFB7C5) drop-shadow(0 0 8px #FFB7C5);
    }
    50% { 
        filter: drop-shadow(0 0 6px #FFB7C5) drop-shadow(0 0 12px #FFB7C5) drop-shadow(0 0 18px #FFB7C5);
    }
}

@keyframes glowPulse2 {
    0%, 100% { 
        filter: drop-shadow(0 0 4px #FFDDB7) drop-shadow(0 0 8px #FFDDB7);
    }
    50% { 
        filter: drop-shadow(0 0 6px #FFDDB7) drop-shadow(0 0 12px #FFDDB7) drop-shadow(0 0 18px #FFDDB7);
    }
}

@keyframes glowPulse3 {
    0%, 100% { 
        filter: drop-shadow(0 0 4px #B1C5FF) drop-shadow(0 0 8px #B1C5FF);
    }
    50% { 
        filter: drop-shadow(0 0 6px #B1C5FF) drop-shadow(0 0 12px #B1C5FF) drop-shadow(0 0 18px #B1C5FF);
    }
}

@keyframes glowPulse4 {
    0%, 100% { 
        filter: drop-shadow(0 0 4px #4FABFF) drop-shadow(0 0 8px #4FABFF);
    }
    50% { 
        filter: drop-shadow(0 0 6px #4FABFF) drop-shadow(0 0 12px #4FABFF) drop-shadow(0 0 18px #4FABFF);
    }
}

@keyframes glowPulse5 {
    0%, 100% { 
        filter: drop-shadow(0 0 4px #076EFF) drop-shadow(0 0 8px #076EFF);
    }
    50% { 
        filter: drop-shadow(0 0 6px #076EFF) drop-shadow(0 0 12px #076EFF) drop-shadow(0 0 18px #076EFF);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-30px);
    }
    70% {
        transform: translateY(-15px);
    }
    90% {
        transform: translateY(-4px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(214, 230, 63, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(214, 230, 63, 0.8), 0 0 30px rgba(214, 230, 63, 0.6);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes waves {
    0% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-5px);
    }
    50% {
        transform: translateY(0px);
    }
    75% {
        transform: translateY(5px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Utility Animation Classes */
.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slideIn {
    animation: slideIn 0.5s ease-out forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.5s ease-out forwards;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-gradient {
    animation: gradient 3s ease infinite;
}

.animate-waves {
    animation: waves 4s ease-in-out infinite;
}

/* Stagger animations for multiple elements */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.stagger-6 {
    animation-delay: 0.6s;
}

/* Hover animations */
.hover-scale {
    transition: transform 0.3s ease-in-out;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-lift {
    transition: transform 0.3s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-glow {
    transition: all 0.3s ease-in-out;
}

.hover-glow:hover {
    text-shadow: 0 0 10px rgba(214, 230, 63, 0.8);
    color: #d6e63f;
}

/* Loading animations */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(214, 230, 63, 0.3);
    border-top: 4px solid #d6e63f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.loading-dots::before,
.loading-dots::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d6e63f;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-dots::before {
    animation-delay: 0s;
}

.loading-dots::after {
    animation-delay: 0.5s;
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-in-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-in-out;
}

.scroll-reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-in-out;
}

.scroll-reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Transition utilities */
.transition-all {
    transition: all 0.3s ease-in-out;
}

.transition-colors {
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.transition-transform {
    transition: transform 0.3s ease-in-out;
}

.transition-opacity {
    transition: opacity 0.3s ease-in-out;
}

.duration-150 {
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.duration-700 {
    transition-duration: 700ms;
}

.duration-1000 {
    transition-duration: 1000ms;
}

.ease-in {
    transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.ease-out {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient Animation */
.animate-gradient-rotate {
    animation: gradientRotate 6s ease-in-out infinite;
}

/* Geometric Network Graphic Animations */
@keyframes nodeGlow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes pathPulse {
    0%, 100% {
        stroke-opacity: 0.2;
    }
    50% {
        stroke-opacity: 0.6;
    }
}

@keyframes dataFlow {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes floatNetwork {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-10px) translateX(5px);
    }
    50% {
        transform: translateY(-5px) translateX(-5px);
    }
    75% {
        transform: translateY(5px) translateX(3px);
    }
}

/* Geometric Network Container */
.geometric-network {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    opacity: 0.6;
    z-index: 2;
    animation: floatNetwork 20s ease-in-out infinite;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .geometric-network {
        opacity: 0.3;
        right: -150px;
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .geometric-network {
        display: none;
    }
}

.network-node {
    animation: nodeGlow 3s ease-in-out infinite;
}

.network-path {
    animation: pathPulse 4s ease-in-out infinite;
}

.data-flow-line {
    stroke-dasharray: 10 5;
    animation: dataFlow 2s linear infinite;
} 