/* Contact Page - Connection Theme Animations */

/* Ripple wave background effect */
.contact-hero {
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background:
        radial-gradient(circle at center, rgba(0, 201, 167, 0.15) 0%, transparent 30%),
        radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 20%, transparent 50%);
    animation: rippleWave 15s ease-in-out infinite;
    transform-origin: center;
}

.contact-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, transparent 40%, rgba(0, 201, 167, 0.08) 60%, transparent 80%);
    animation: rippleWave 12s ease-in-out infinite reverse;
    transform-origin: center;
    animation-delay: 2s;
}

@keyframes rippleWave {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

/* Animated title with pulse */
.contact-hero h1 {
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, white 0%, var(--accent-teal) 50%, white 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    background-size: 200% 200% !important;
    animation: contactTitleFlow 5s ease infinite !important;
}

@keyframes contactTitleFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.contact-hero-content {
    position: relative;
    z-index: 10;
}

/* Pulsing contact icons */
.contact-icon {
    animation: iconPulse 2s ease-in-out infinite !important;
    box-shadow: 0 0 20px rgba(0, 201, 167, 0.3);
}

.contact-method:nth-child(1) .contact-icon { animation-delay: 0s !important; }
.contact-method:nth-child(2) .contact-icon { animation-delay: 0.3s !important; }
.contact-method:nth-child(3) .contact-icon { animation-delay: 0.6s !important; }

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 201, 167, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(0, 201, 167, 0.6);
    }
}

/* Form field focus effects */
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--accent-teal) !important;
    box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.1), 0 0 20px rgba(0, 201, 167, 0.2) !important;
    animation: fieldGlow 0.3s ease forwards !important;
}

@keyframes fieldGlow {
    from { box-shadow: 0 0 0 0 rgba(0, 201, 167, 0); }
    to { box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.1), 0 0 20px rgba(0, 201, 167, 0.2); }
}

/* Floating connection dots */
.contact-content::before,
.contact-content::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: floatDot 10s ease-in-out infinite;
}

.contact-content::before {
    background: rgba(0, 201, 167, 0.4);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.contact-content::after {
    background: rgba(255, 215, 0, 0.3);
    bottom: 15%;
    right: -5%;
    animation-delay: 5s;
}

.contact-content {
    position: relative;
}

@keyframes floatDot {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Info cards slide in effect */
.contact-info,
.contact-form {
    opacity: 0;
    animation: slideInUp 0.8s ease forwards;
}

.contact-info { animation-delay: 0.2s; }
.contact-form { animation-delay: 0.4s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button hover wave effect */
.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

/* Animated signal lines */
.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: -30px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--accent-teal), transparent);
    animation: signalPulse 3s ease-in-out infinite;
}

.contact-info {
    position: relative;
    overflow: visible;
}

@keyframes signalPulse {
    0%, 100% { opacity: 0; transform: translateY(-20px); }
    50% { opacity: 0.5; transform: translateY(20px); }
}
