/* Custom Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Standard spin animation needed for reference by spin-slow if not built-in */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Typewriter Cursor */
.cursor {
    display: inline-block;
    width: 3px;
    background-color: #0EA5E9;
    animation: blink 1s step-end infinite;
}

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

/* Timeline Connector */
.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        rgba(226, 232, 240, 0) 0%,
        #E2E8F0 10%,
        #E2E8F0 90%,
        rgba(226, 232, 240, 0) 100%
    );
}

@media (min-width: 768px) {
    .timeline-line {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Timeline node pulse animation */
@keyframes node-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(26, 54, 93, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(26, 54, 93, 0);
    }
}

.timeline-node {
    animation: node-pulse 3s ease-in-out infinite;
}

/* Stagger reveal animations for timeline items */
.reveal-on-scroll.delay-200 {
    transition-delay: 0.2s;
}

.reveal-on-scroll.delay-400 {
    transition-delay: 0.4s;
}

.reveal-on-scroll.delay-600 {
    transition-delay: 0.6s;
}

/* Custom utility for manual delays where tailwind plugin might not catch specific values */
.animation-delay-2000 {
    animation-delay: 2s;
}
.animation-delay-4000 {
    animation-delay: 4s;
}
.animation-delay-1000 {
    animation-delay: 1s;
}
.animation-delay-3000 {
    animation-delay: 3s;
}

/* Blob animation for background elements */
@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(30px, 10px) scale(1.02);
    }
}

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

/* Float animation for dots */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

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

/* Floating animations for mentor/AI cards */
@keyframes float-slow {
    0%, 100% {
        transform: translateY(-50%) translateY(0px);
    }
    50% {
        transform: translateY(-50%) translateY(-8px);
    }
}

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

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

.animate-float-delayed {
    animation: float-delayed 4.5s ease-in-out infinite 0.5s;
}

/* Energy flow on connection line */
@keyframes energy-flow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.energy-line {
    background: linear-gradient(
        90deg,
        rgba(148, 163, 184, 0.3) 0%,
        rgba(168, 85, 247, 0.8) 25%,
        rgba(168, 85, 247, 1) 50%,
        rgba(168, 85, 247, 0.8) 75%,
        rgba(148, 163, 184, 0.3) 100%
    );
    background-size: 200% 100%;
    animation: energy-flow 3s linear infinite;
}

/* Outcome cards staggered animation */
.outcome-card {
    animation: outcome-slide-in 0.6s ease-out backwards;
}

.outcome-card:nth-child(1) { animation-delay: 0.1s; }
.outcome-card:nth-child(2) { animation-delay: 0.2s; }
.outcome-card:nth-child(3) { animation-delay: 0.3s; }
.outcome-card:nth-child(4) { animation-delay: 0.4s; }
.outcome-card:nth-child(5) { animation-delay: 0.5s; }
.outcome-card:nth-child(6) { animation-delay: 0.6s; }

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