/* Contact Page Specific Styles */

/* Form field animations */
.input-field {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.input-field:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.input-field.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Submit button animation */
.submit-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.submit-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.submit-btn:hover:before {
    left: 100%;
}

/* Contact info card animations */
.contact-card {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    transition: all 0.3s ease;
    transform: scale(1);
    background-color: #dbeafe; /* bg-blue-100 base color */
}

.contact-card:hover .contact-icon {
    background-color: #3b82f6 !important;
    color: white !important;
    transform: scale(1.15);
    box-shadow: 
        0 0 25px rgba(59, 130, 246, 0.5),
        0 0 50px rgba(59, 130, 246, 0.3),
        0 8px 16px rgba(59, 130, 246, 0.4);
    border: 1px solid rgba(59, 130, 246, 0.6);
}

/* Social icons styles */
.social-icons-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.social-icon {
    color: #6B7280;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-icon:hover {
    transform: translateY(-2px);
}

.social-icon:active {
    transform: translateY(0);
}

/* Dark mode styles */
.dark .social-icon {
    color: #9CA3AF;
}

/* Individual social icon hover colors */
.social-icon.linkedin:hover {
    color: #0077b5;
}

.social-icon.twitter:hover {
    color: #1DA1F2;
}

.social-icon.facebook:hover {
    color: #1877F2;
}

.social-icon.github:hover {
    color: #333;
}

.social-icon.instagram:hover {
    color: #E4405F;
}

/* Dark mode individual hover colors */
.dark .social-icon.linkedin:hover {
    color: #0077b5;
}

.dark .social-icon.twitter:hover {
    color: #1DA1F2;
}

.dark .social-icon.facebook:hover {
    color: #1877F2;
}

.dark .social-icon.github:hover {
    color: #6e7681;
}

.dark .social-icon.instagram:hover {
    color: #E4405F;
}

.social-icon.github:hover {
    color: #333;
}

.social-icon.instagram:hover {
    color: #E1306C;
}

/* Map container styling */
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Success message animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    animation: fadeInUp 0.6s ease forwards;
}

/* Staggered animations for contact info items */
.stagger-animation > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.stagger-animation.show > *:nth-child(1) {
    transition-delay: 0ms;
}

.stagger-animation.show > *:nth-child(2) {
    transition-delay: 100ms;
}

.stagger-animation.show > *:nth-child(3) {
    transition-delay: 200ms;
}

.stagger-animation.show > *:nth-child(4) {
    transition-delay: 300ms;
}

.stagger-animation.show > * {
    opacity: 1;
    transform: translateY(0);
}

/* Form animations */
.form-group {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.form-animation.show .form-group:nth-child(1) {
    transition-delay: 100ms;
}

.form-animation.show .form-group:nth-child(2) {
    transition-delay: 200ms;
}

.form-animation.show .form-group:nth-child(3) {
    transition-delay: 300ms;
}

.form-animation.show .form-group:nth-child(4) {
    transition-delay: 400ms;
}

.form-animation.show .form-group:nth-child(5) {
    transition-delay: 500ms;
}

.form-animation.show .form-group {
    opacity: 1;
    transform: translateY(0);
}

.form-animation.show .form-button {
    transition-delay: 600ms;
}

/* Map marker animation */
@keyframes markerBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.map-marker {
    animation: markerBounce 2s ease infinite;
}
