/* Button Contact Animation Styles */

/* Base styles for button-contact */
.button-contact {
    position: relative;
    overflow: hidden;
    will-change: transform, opacity, box-shadow;
    transition: background-color 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Initial hidden state */
.button-contact {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

/* Ripple effect on click */
.button-contact::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.3s ease, height 0.3s ease;
    pointer-events: none;
}

.button-contact:active::before {
    width: 300px;
    height: 300px;
}

/* Hover state enhancements */
.button-contact:hover {
    box-shadow: 0 8px 15px rgba(243, 152, 0, 0.3);
}

/* Focus state for accessibility */
.button-contact:focus {
    outline: 3px solid rgba(243, 152, 0, 0.5);
    outline-offset: 2px;
}

/* Active state */
.button-contact:active {
    transform: scale(0.95);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .button-contact {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .button-contact:hover {
        box-shadow: 0 6px 12px rgba(243, 152, 0, 0.25);
    }
}

@media (max-width: 640px) {
    .button-contact {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .button-contact:hover {
        box-shadow: 0 4px 8px rgba(243, 152, 0, 0.2);
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .button-contact {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    .button-contact::before {
        display: none;
    }
    
    .button-contact:hover {
        transform: none !important;
    }
    
    .button-contact:active {
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .button-contact {
        border: 2px solid currentColor;
        background: transparent !important;
        color: #f39800 !important;
    }
    
    .button-contact:hover {
        background: #f39800 !important;
        color: white !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .button-contact {
        background: #f39800 !important;
        color: #1a1a1a !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    
    .button-contact:hover {
        background: #e08700 !important;
        box-shadow: 0 8px 15px rgba(243, 152, 0, 0.4);
    }
}

/* Print styles */
@media print {
    .button-contact {
        transform: none !important;
        opacity: 1 !important;
        box-shadow: none !important;
        background: #f39800 !important;
        color: white !important;
        border: 1px solid #f39800 !important;
    }
    
    .button-contact::before {
        display: none !important;
    }
}

/* Loading state */
.button-contact.loading {
    pointer-events: none;
    opacity: 0.7;
}

.button-contact.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Pulse animation enhancement */
.button-contact.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(243, 152, 0, 0.4);
    }
}

/* Gradient background animation */
.button-contact {
    background: linear-gradient(45deg, #f39800, #e08700);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Text animation on hover */
.button-contact span {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.button-contact:hover span {
    transform: translateY(-1px);
}

/* Icon animation if present */
.button-contact i,
.button-contact .icon {
    transition: transform 0.3s ease;
}

.button-contact:hover i,
.button-contact:hover .icon {
    transform: scale(1.1) rotate(5deg);
} 