/* Contact Animation - Paper Airplanes */
/* Professional, interactive canvas-based animation */

.contact-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.contact-animation-container.interactive {
    pointer-events: auto;
}

#contactCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Section needs relative positioning for canvas */
#contact {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* Ensure content stays above animation */
#contact .container {
    position: relative;
    z-index: 1;
}

/* Debug: make sure canvas is visible */
#contactCanvas {
    background: transparent;
}

/* Subtle gradient overlay for depth */
.contact-animation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(255,255,255,0.1) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Interaction hint */
.contact-interaction-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(0, 102, 204, 0.6);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-interaction-hint svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}

#contact:hover .contact-interaction-hint {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-interaction-hint {
        display: none;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .contact-animation-container {
        display: none;
    }
}

