/* Neural Animation Effects */
.neural-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 255, 65, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 70% 60%, rgba(0, 255, 65, 0.1) 0%, transparent 20%);
    animation: neuralScan 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes neuralScan {
    0%, 100% {
        opacity: 0.2;
        background-position: 0% 0%, 100% 100%;
    }
    25% {
        opacity: 0.8;
        background-position: 100% 0%, 0% 100%;
    }
    50% {
        opacity: 0.2;
        background-position: 100% 100%, 0% 0%;
    }
    75% {
        opacity: 0.8;
        background-position: 0% 100%, 100% 0%;
    }
}

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

@keyframes iconPulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px var(--glow-color);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 20px var(--glow-color), 0 0 30px var(--glow-color);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 10px var(--glow-color);
    }
}

.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-load.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

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

.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

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

/* Enhanced testimonial transitions */
.testimonial-slide {
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.testimonial-slide.sliding-out {
    transform: translateX(-80px);
    opacity: 0;
}

/* Enhanced form submission animations */
.submit-btn.submitting {
    background-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.6);
}

.submit-btn.success {
    background-color: #00cc66;
    box-shadow: 0 0 15px rgba(0, 204, 102, 0.6);
}

/* Quick links cards with 3D hover effect */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.quick-link-card {
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
}

.quick-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 255, 65, 0.2);
    border-color: var(--primary-color);
}

.card-inner {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
}

.card-inner:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1) 0%, rgba(0, 0, 0, 0) 75%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.quick-link-card:hover .card-inner:before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.quick-link-card:hover .card-icon {
    transform: scale(1.1) translateY(-5px);
    text-shadow: 0 0 20px var(--glow-color);
}

.card-inner h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card-inner p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: auto;
}

.card-arrow {
    margin-top: 1.5rem;
    align-self: flex-end;
    color: var(--primary-color);
    font-size: 1.2rem;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.quick-link-card:hover .card-arrow {
    transform: translateX(5px);
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--panel-bg);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.view-all-btn:hover {
    background-color: rgba(0, 255, 65, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(0, 255, 65, 0.2);
}

.view-all-btn i {
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(5px);
}

.view-all-container {
    text-align: center;
    margin-top: 2rem;
}