/* Company Contact Section Animation Styles */
/* Friendly and comfortable animations for company information */

/* Base styles for company contact section */
.company-contact {
    position: relative;
    will-change: transform, opacity;
    overflow: hidden;
}

/* Section title initial states */
.company-contact .text-center h2 {
    opacity: 0;
    transform: translateY(80px) scale(0.85);
    will-change: transform, opacity;
    transform-origin: center center;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
}

/* Section subtitle initial states */
.company-contact .text-center p {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    will-change: transform, opacity;
    color: #4b5563;
    transition: color 0.3s ease;
}

/* Info cards initial states */
.company-contact .bg-gray-50.border-2.border-gray-200 {
    opacity: 0;
    transform: translateY(100px) scale(0.9) rotate(1deg);
    will-change: transform, opacity, box-shadow;
    transform-origin: center center;
    transition: all 0.5s ease;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    position: relative;
    overflow: hidden;
}

/* Info items initial states */
.company-contact .flex.items-start {
    opacity: 0;
    transform: translateX(-50px) scale(0.95);
    will-change: transform, opacity;
    transition: all 0.3s ease;
}

/* Icons initial states */
.company-contact .lucide,
.company-contact .w-6.h-6.bg-red-600 {
    opacity: 0;
    transform: scale(0.3) rotate(-90deg);
    will-change: transform, opacity;
    transition: all 0.3s ease;
    color: #dc2626;
    filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.2));
}

/* Access info initial states */
.company-contact .bg-red-600.text-white {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    will-change: transform, opacity;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    position: relative;
    overflow: hidden;
}

/* Map container initial states */
.company-contact .bg-white\/10.backdrop-blur-sm {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    will-change: transform, opacity;
    transition: all 0.3s ease;
}

/* Map iframe initial states */
.company-contact iframe {
    opacity: 0;
    transform: scale(0.95);
    will-change: transform, opacity;
    transition: all 0.3s ease;
}

/* Enhanced hover effects for info cards */
.company-contact .bg-gray-50.border-2.border-gray-200:hover {
    transform: translateY(-15px) scale(1.03) rotate(0.5deg);
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.12);
    background: linear-gradient(135deg, #ffffff, #f9fafb);
    border-color: rgba(220, 38, 38, 0.3);
}

/* Card shimmer effect */
.company-contact .bg-gray-50.border-2.border-gray-200::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.06), transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

.company-contact .bg-gray-50.border-2.border-gray-200:hover::before {
    left: 100%;
}

/* Ensure content stays above shimmer */
.company-contact .bg-gray-50.border-2.border-gray-200 > * {
    position: relative;
    z-index: 2;
}

/* Icon hover effects */
.company-contact .lucide:hover,
.company-contact .w-6.h-6.bg-red-600:hover {
    transform: scale(1.3) rotate(15deg);
    color: #ef4444;
    filter: drop-shadow(0 4px 8px rgba(239, 68, 68, 0.3));
}

/* Red circle icon hover */
.company-contact .w-6.h-6.bg-red-600:hover {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

/* Enhanced icon animations */
.company-contact .lucide.pulsing,
.company-contact .w-6.h-6.bg-red-600.pulsing {
    animation: iconPulse 2.8s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Floating animation for info cards */
.company-contact .bg-gray-50.border-2.border-gray-200.floating {
    animation: cardFloat 3.5s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Word reveal animation */
.company-contact .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    will-change: transform, opacity;
    transition: all 0.3s ease;
}

.company-contact .word.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced card styling */
.company-contact .bg-gray-50.border-2.border-gray-200 {
    box-shadow: 0 8px 16px rgba(220, 38, 38, 0.08), 0 4px 8px rgba(220, 38, 38, 0.04);
    border-radius: 16px;
    border: 2px solid rgba(220, 38, 38, 0.1);
    background: linear-gradient(135deg, #f9fafb, #f3f4f6, #fef2f2);
}

.company-contact .bg-gray-50.border-2.border-gray-200:hover {
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.12), 0 12px 24px rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.3);
}

/* Access info styling enhancements */
.company-contact .bg-red-600.text-white {
    box-shadow: 0 8px 16px rgba(220, 38, 38, 0.25);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.company-contact .bg-red-600.text-white:hover {
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.3);
    transform: translateY(-5px) scale(1.02);
}

/* Access info shimmer effect */
.company-contact .bg-red-600.text-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

.company-contact .bg-red-600.text-white:hover::before {
    left: 100%;
}

/* Ensure access info content stays above shimmer */
.company-contact .bg-red-600.text-white > * {
    position: relative;
    z-index: 2;
}

/* Map container styling */
.company-contact .bg-white\/10.backdrop-blur-sm {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.company-contact .bg-white\/10.backdrop-blur-sm:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px) scale(1.02);
}

/* Enhanced typography */
.company-contact .text-center h2 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.company-contact .text-center p {
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 600;
}

.company-contact h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #dc2626;
}

.company-contact .font-bold {
    font-weight: 700;
    color: #dc2626;
}

/* Interactive feedback enhancements */
.company-contact .bg-gray-50.border-2.border-gray-200:active {
    transform: translateY(-12px) scale(0.99);
    transition: transform 0.1s ease;
}

/* Text hover effects */
.company-contact .flex.items-start:hover p {
    color: #1f2937;
    transform: translateX(5px);
}

.company-contact .flex.items-start:hover .font-bold {
    color: #ef4444;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .company-contact .bg-gray-50.border-2.border-gray-200:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 20px 40px rgba(220, 38, 38, 0.1);
    }
    
    .company-contact .text-center h2 {
        font-size: 2.25rem;
    }
    
    .company-contact .text-center p {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .company-contact .bg-gray-50.border-2.border-gray-200:hover {
        transform: translateY(-10px) scale(1.015);
        box-shadow: 0 15px 30px rgba(220, 38, 38, 0.08);
    }
    
    .company-contact .text-center h2 {
        font-size: 2rem;
    }
    
    .company-contact .text-center p {
        font-size: 1rem;
    }
    
    .company-contact h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 640px) {
    .company-contact .bg-gray-50.border-2.border-gray-200:hover {
        transform: translateY(-8px) scale(1.01);
        box-shadow: 0 12px 24px rgba(220, 38, 38, 0.06);
    }
    
    .company-contact .text-center h2 {
        font-size: 1.75rem;
    }
    
    .company-contact .text-center p {
        font-size: 0.875rem;
    }
    
    .company-contact h3 {
        font-size: 1.125rem;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .company-contact .text-center h2,
    .company-contact .text-center p,
    .company-contact .bg-gray-50.border-2.border-gray-200,
    .company-contact .flex.items-start,
    .company-contact .lucide,
    .company-contact .w-6.h-6.bg-red-600,
    .company-contact .bg-red-600.text-white,
    .company-contact .bg-white\/10.backdrop-blur-sm,
    .company-contact iframe {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    .company-contact .bg-gray-50.border-2.border-gray-200:hover,
    .company-contact .lucide:hover,
    .company-contact .w-6.h-6.bg-red-600:hover,
    .company-contact .bg-red-600.text-white:hover,
    .company-contact .bg-white\/10.backdrop-blur-sm:hover {
        transform: none !important;
    }
    
    .company-contact .pulsing,
    .company-contact .floating {
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .company-contact .bg-gray-50.border-2.border-gray-200 {
        border: 3px solid #000000;
        background: #ffffff;
    }
    
    .company-contact .bg-red-600.text-white {
        background: #000000;
        color: #ffffff;
    }
    
    .company-contact .text-center h2 {
        color: #000000;
        -webkit-text-fill-color: #000000;
    }
    
    .company-contact .text-center p {
        color: #000000;
    }
    
    .company-contact .lucide,
    .company-contact .w-6.h-6.bg-red-600 {
        color: #000000;
    }
    
    .company-contact .font-bold {
        color: #000000;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .company-contact {
        background-color: #111827;
    }
    
    .company-contact .text-center h2 {
        color: #ffffff;
        -webkit-text-fill-color: #ffffff;
    }
    
    .company-contact .text-center p {
        color: #e5e7eb;
    }
    
    .company-contact .bg-gray-50.border-2.border-gray-200 {
        background: linear-gradient(135deg, #1f2937, #374151);
        border-color: #4b5563;
    }
    
    .company-contact .bg-gray-50.border-2.border-gray-200:hover {
        background: linear-gradient(135deg, #374151, #4b5563);
        border-color: #dc2626;
    }
    
    .company-contact h3 {
        color: #ffffff;
    }
    
    .company-contact .font-bold {
        color: #dc2626;
    }
    
    .company-contact .flex.items-start p {
        color: #d1d5db;
    }
    
    .company-contact .bg-red-600.text-white {
        background: linear-gradient(135deg, #dc2626, #ef4444);
    }
}

/* Print styles */
@media print {
    .company-contact .text-center h2,
    .company-contact .text-center p,
    .company-contact .bg-gray-50.border-2.border-gray-200,
    .company-contact .flex.items-start,
    .company-contact .lucide,
    .company-contact .w-6.h-6.bg-red-600,
    .company-contact .bg-red-600.text-white,
    .company-contact .bg-white\/10.backdrop-blur-sm,
    .company-contact iframe {
        transform: none !important;
        opacity: 1 !important;
        box-shadow: none !important;
    }
    
    .company-contact .bg-gray-50.border-2.border-gray-200 {
        background: #ffffff !important;
        border: 2px solid #dc2626 !important;
    }
    
    .company-contact .bg-red-600.text-white {
        background: #dc2626 !important;
        color: #ffffff !important;
    }
    
    .company-contact .text-center h2 {
        color: #000000 !important;
        -webkit-text-fill-color: #000000 !important;
    }
    
    .company-contact .text-center p {
        color: #000000 !important;
    }
    
    .company-contact .lucide,
    .company-contact .w-6.h-6.bg-red-600 {
        color: #dc2626 !important;
    }
    
    .company-contact .font-bold {
        color: #dc2626 !important;
    }
}

/* Loading states */
.company-contact.loading {
    opacity: 0.7;
    pointer-events: none;
}

.company-contact.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(220, 38, 38, 0.3);
    border-top: 4px solid #dc2626;
    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); }
}

/* Focus states for accessibility */
.company-contact .bg-gray-50.border-2.border-gray-200:focus {
    outline: 4px solid #dc2626;
    outline-offset: 2px;
}

.company-contact .lucide:focus,
.company-contact .w-6.h-6.bg-red-600:focus {
    outline: 3px solid #dc2626;
    outline-offset: 2px;
}

.company-contact .bg-red-600.text-white:focus {
    outline: 4px solid #ffffff;
    outline-offset: 2px;
}

/* Performance optimizations */
.company-contact * {
    will-change: auto;
}

.company-contact .bg-gray-50.border-2.border-gray-200 {
    contain: layout style paint;
}

/* Smooth scrolling enhancement */
.company-contact {
    scroll-behavior: smooth;
}

/* Enhanced gradient backgrounds */
.company-contact .bg-gray-50.border-2.border-gray-200 {
    background: linear-gradient(135deg, #f9fafb, #f3f4f6, #fef2f2);
}

.company-contact .bg-gray-50.border-2.border-gray-200:hover {
    background: linear-gradient(135deg, #ffffff, #f9fafb, #fee2e2);
}

/* Enhanced shadow system */
.company-contact .bg-gray-50.border-2.border-gray-200 {
    box-shadow: 
        0 8px 16px rgba(220, 38, 38, 0.08),
        0 4px 8px rgba(220, 38, 38, 0.04),
        0 0 0 1px rgba(220, 38, 38, 0.05);
}

.company-contact .bg-gray-50.border-2.border-gray-200:hover {
    box-shadow: 
        0 25px 50px rgba(220, 38, 38, 0.12),
        0 12px 24px rgba(220, 38, 38, 0.08),
        0 0 0 1px rgba(220, 38, 38, 0.1);
}

/* Icon glow effects */
.company-contact .lucide,
.company-contact .w-6.h-6.bg-red-600 {
    filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.2));
}

.company-contact .lucide:hover,
.company-contact .w-6.h-6.bg-red-600:hover {
    filter: drop-shadow(0 4px 8px rgba(239, 68, 68, 0.3));
}

/* Text content styling */
.company-contact .flex.items-start p {
    transition: all 0.3s ease;
}

.company-contact .flex.items-start:hover p {
    color: #1f2937;
    transform: translateX(5px);
}

/* Map iframe styling */
.company-contact iframe {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.company-contact iframe:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
} 