/* RTL Support */
html[dir="rtl"] .md\:col-span-2.text-right {
    text-align: left; 
}

html[dir="rtl"] .md\:col-span-2 .inline-flex.items-center .fa-paper-plane {
    margin-left: 0; 
    margin-right: 0.75rem; 
}

/* Phone number direction fix */
.phone-number-ltr {
    direction: ltr;
    unicode-bidi: isolate; 
}

/* Optimized Contact Card Styles */
.contact-card a, 
.contact-card .phone-number-ltr {
    word-break: break-word;
    line-height: 1.4;
}

.contact-card a:hover {
    text-decoration: none;
}

/* Simplified Contact Card - Removed heavy animations */
.contact-card {
    position: relative;
    overflow: hidden;
    will-change: transform;
}

/* Removed complex ::before animation that was causing lag */

/* Simplified Icon Container */
.contact-card .w-16 {
    position: relative;
    will-change: transform;
}

/* Removed heavy ::after pseudo-element animation */

/* Simplified Label Styling */
.contact-card .bg-gray-700\/50 {
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.contact-card:hover .bg-gray-700\/50 {
    background: rgba(75, 85, 99, 0.8);
}

/* Simplified Map Placeholder */
#map-placeholder {
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Removed heavy filter effects */

/* Removed complex keyframe animations */

/* Simplified iframe transition */
#map-iframe {
    transition: opacity 0.5s ease-in-out;
}

/* Simplified glass effect */
.glass {
    background: rgba(75, 85, 99, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Simplified Message Display */
.message-display {
    animation: slideInDown 0.4s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Removed decorative elements animation */

/* Simplified Section Background */
.contact-section {
    background: rgba(17, 24, 39, 0.95);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-card .w-16 {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .contact-card .text-2xl {
        font-size: 1.25rem;
    }
}

/* Simplified Hover Effects */
.contact-card a {
    position: relative;
    transition: color 0.3s ease;
}

/* Removed complex ::after underline animation */

/* Simplified Map Container */
.map-container {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Map Responsive Width */
@media (min-width: 1024px) {
    .lg\:w-\[95\%\] {
        width: 95%;
    }
}

/* Performance optimizations */
.contact-card,
.contact-card *,
#map-placeholder,
#map-iframe {
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Reduced animation complexity */
.hover\:scale-102:hover {
    transform: scale(1.02);
}

/* Simplified transitions */
.transition-all {
    transition: all 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.transition-colors {
    transition: color 0.3s ease, background-color 0.3s ease;
}