/* Company Small Info Section Animation Styles */

/* Base styles for company small info section */
.company-small-info {
    position: relative;
    will-change: transform, opacity;
    overflow: hidden;
}

/* Initial hidden states for main elements */
.company-small-info .text-center h2 {
    opacity: 0;
    transform: translateY(100px) scale(0.8) rotateX(20deg);
    will-change: transform, opacity;
    perspective: 1000px;
}

.company-small-info .text-center p {
    opacity: 0;
    transform: translateY(80px) scale(0.85) rotateX(15deg);
    will-change: transform, opacity;
    perspective: 1000px;
}

/* Main grid initial state */
.company-small-info .grid.grid-cols-1.lg\:grid-cols-2 {
    opacity: 0;
    transform: translateY(150px) scale(0.9);
    will-change: transform, opacity;
}

/* Company info cards initial states */
.company-small-info .bg-gray-50.border-2.border-gray-200 {
    opacity: 0;
    will-change: transform, opacity, box-shadow;
    transition: all 0.4s ease;
    backface-visibility: hidden;
    perspective: 1000px;
    position: relative;
}

.company-small-info .bg-gray-50.border-2.border-gray-200:first-of-type {
    transform: translateX(-120px) scale(0.8) rotateY(-15deg);
}

.company-small-info .bg-gray-50.border-2.border-gray-200:last-of-type {
    transform: translateX(120px) scale(0.8) rotateY(15deg);
}

/* Company info items initial states */
.company-small-info .flex.items-start {
    opacity: 0;
    transform: translateX(-60px) translateY(40px) scale(0.9);
    will-change: transform, opacity;
    transition: all 0.3s ease;
}

/* Company info icons initial states */
.company-small-info .w-6.h-6.bg-red-600.rounded-full,
.company-small-info .lucide-map-pin,
.company-small-info .lucide-phone,
.company-small-info .lucide-fan,
.company-small-info .lucide-clock {
    opacity: 0;
    transform: scale(0.5) rotate(-180deg);
    will-change: transform, opacity;
    transition: all 0.3s ease;
}

/* Company info texts initial states */
.company-small-info .ml-4 {
    opacity: 0;
    transform: translateX(30px) translateY(20px);
    will-change: transform, opacity;
    transition: all 0.3s ease;
}

/* Map container initial state */
.company-small-info .bg-white\/10.backdrop-blur-sm {
    opacity: 0;
    transform: scale(0.85) translateY(80px) rotateX(10deg);
    will-change: transform, opacity;
    perspective: 1000px;
}

/* Iframe initial state */
.company-small-info iframe {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(10px);
    will-change: transform, opacity, filter;
    transition: all 0.8s ease;
}

/* Access info card initial state */
.company-small-info .bg-red-600.text-white {
    opacity: 0;
    transform: translateY(60px) scale(0.9) rotateX(10deg);
    will-change: transform, opacity;
    perspective: 1000px;
}

/* Enhanced hover effects for company info cards */
.company-small-info .bg-gray-50.border-2.border-gray-200:hover {
    transform: scale(1.02) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* Icon hover effects */
.company-small-info .w-6.h-6.bg-red-600.rounded-full:hover,
.company-small-info .lucide-map-pin:hover,
.company-small-info .lucide-phone:hover,
.company-small-info .lucide-fan:hover,
.company-small-info .lucide-clock:hover {
    transform: scale(1.2) rotate(360deg);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Text hover effects */
.company-small-info .ml-4:hover {
    transform: translateX(5px);
    color: #dc2626;
    transition: all 0.3s ease;
}

/* Company info item hover effects */
.company-small-info .flex.items-start:hover {
    transform: translateX(10px) scale(1.02);
    transition: all 0.3s ease;
}

/* Enhanced visual feedback with gradients */
.company-small-info .bg-gray-50.border-2.border-gray-200::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(239, 68, 68, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.company-small-info .bg-gray-50.border-2.border-gray-200:hover::before {
    opacity: 1;
}

/* Ensure content stays above overlay */
.company-small-info .bg-gray-50.border-2.border-gray-200 > * {
    position: relative;
    z-index: 2;
}

/* Title floating animation */
.company-small-info .text-center h2.floating {
    animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Icon pulse animation */
.company-small-info .w-6.h-6.bg-red-600.rounded-full.pulse,
.company-small-info .lucide-map-pin.pulse,
.company-small-info .lucide-phone.pulse,
.company-small-info .lucide-fan.pulse,
.company-small-info .lucide-clock.pulse {
    animation: iconPulse 1.5s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Card entrance animations */
.company-small-info .bg-gray-50.border-2.border-gray-200.animate-in {
    animation: cardSlideIn 1.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateX(-120px) scale(0.8) rotateY(-15deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1) rotateY(0);
    }
}

/* Map container animations */
.company-small-info .bg-white\/10.backdrop-blur-sm.animate-in {
    animation: mapSlideIn 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes mapSlideIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(80px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0);
    }
}

/* Iframe blur animation */
.company-small-info iframe.animate-in {
    animation: iframeBlurIn 1.5s ease-out forwards;
}

@keyframes iframeBlurIn {
    from {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
}

/* Access info card animation */
.company-small-info .bg-red-600.text-white.animate-in {
    animation: accessCardSlideIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes accessCardSlideIn {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0);
    }
}

/* Enhanced red accent colors */
.company-small-info .text-red-600 {
    color: #dc2626;
    transition: color 0.3s ease;
}

.company-small-info .text-red-600:hover {
    color: #b91c1c;
}

.company-small-info .bg-red-600 {
    background-color: #dc2626;
    transition: background-color 0.3s ease;
}

.company-small-info .bg-red-600:hover {
    background-color: #b91c1c;
}

/* Phone number emphasis */
.company-small-info .text-lg.font-bold {
    position: relative;
    transition: all 0.3s ease;
}

.company-small-info .text-lg.font-bold:hover {
    transform: scale(1.05);
    color: #dc2626;
}

/* Map iframe enhancements */
.company-small-info iframe {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.company-small-info iframe:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .company-small-info .bg-gray-50.border-2.border-gray-200:hover {
        transform: scale(1.01) translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    }
    
    .company-small-info .flex.items-start:hover {
        transform: translateX(8px) scale(1.01);
    }
}

@media (max-width: 768px) {
    .company-small-info .bg-gray-50.border-2.border-gray-200:hover {
        transform: scale(1.005) translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .company-small-info .flex.items-start:hover {
        transform: translateX(5px) scale(1.005);
    }
    
    .company-small-info .w-6.h-6.bg-red-600.rounded-full:hover,
    .company-small-info .lucide-map-pin:hover,
    .company-small-info .lucide-phone:hover,
    .company-small-info .lucide-fan:hover,
    .company-small-info .lucide-clock:hover {
        transform: scale(1.15) rotate(180deg);
    }
}

@media (max-width: 640px) {
    .company-small-info .bg-gray-50.border-2.border-gray-200:hover {
        transform: scale(1.002) translateY(-3px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    }
    
    .company-small-info .flex.items-start:hover {
        transform: translateX(3px) scale(1.002);
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .company-small-info .text-center h2,
    .company-small-info .text-center p,
    .company-small-info .grid.grid-cols-1.lg\:grid-cols-2,
    .company-small-info .bg-gray-50.border-2.border-gray-200,
    .company-small-info .flex.items-start,
    .company-small-info .w-6.h-6.bg-red-600.rounded-full,
    .company-small-info .lucide-map-pin,
    .company-small-info .lucide-phone,
    .company-small-info .lucide-fan,
    .company-small-info .lucide-clock,
    .company-small-info .ml-4,
    .company-small-info .bg-white\/10.backdrop-blur-sm,
    .company-small-info iframe,
    .company-small-info .bg-red-600.text-white {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    .company-small-info .bg-gray-50.border-2.border-gray-200:hover,
    .company-small-info .flex.items-start:hover,
    .company-small-info .w-6.h-6.bg-red-600.rounded-full:hover,
    .company-small-info .lucide-map-pin:hover,
    .company-small-info .lucide-phone:hover,
    .company-small-info .lucide-fan:hover,
    .company-small-info .lucide-clock:hover,
    .company-small-info .ml-4:hover {
        transform: none !important;
    }
    
    .company-small-info .floating,
    .company-small-info .pulse {
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .company-small-info .bg-gray-50.border-2.border-gray-200 {
        border: 3px solid currentColor;
    }
    
    .company-small-info .bg-gray-50.border-2.border-gray-200:hover {
        border-color: #dc2626;
        background-color: #fef2f2;
    }
    
    .company-small-info .w-6.h-6.bg-red-600.rounded-full,
    .company-small-info .lucide-map-pin,
    .company-small-info .lucide-phone,
    .company-small-info .lucide-fan,
    .company-small-info .lucide-clock {
        stroke-width: 3;
    }
    
    .company-small-info .text-gray-900 {
        color: #000000;
    }
    
    .company-small-info .text-gray-600 {
        color: #333333;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .company-small-info {
        color: #ffffff;
    }
    
    .company-small-info .text-center h2 {
        color: #ffffff;
    }
    
    .company-small-info .text-center p {
        color: #d1d5db;
    }
    
    .company-small-info .bg-gray-50.border-2.border-gray-200 {
        background-color: #374151 !important;
        color: #ffffff;
        border-color: #4b5563;
    }
    
    .company-small-info .bg-gray-50.border-2.border-gray-200:hover {
        background-color: #4b5563 !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
    
    .company-small-info .text-gray-900 {
        color: #ffffff !important;
    }
    
    .company-small-info .text-gray-600 {
        color: #d1d5db !important;
    }
    
    .company-small-info .bg-white\/10.backdrop-blur-sm {
        background-color: rgba(55, 65, 81, 0.1) !important;
        border-color: rgba(75, 85, 99, 0.2);
    }
}

/* Print styles */
@media print {
    .company-small-info .text-center h2,
    .company-small-info .text-center p,
    .company-small-info .grid.grid-cols-1.lg\:grid-cols-2,
    .company-small-info .bg-gray-50.border-2.border-gray-200,
    .company-small-info .flex.items-start,
    .company-small-info .w-6.h-6.bg-red-600.rounded-full,
    .company-small-info .lucide-map-pin,
    .company-small-info .lucide-phone,
    .company-small-info .lucide-fan,
    .company-small-info .lucide-clock,
    .company-small-info .ml-4,
    .company-small-info .bg-white\/10.backdrop-blur-sm,
    .company-small-info iframe,
    .company-small-info .bg-red-600.text-white {
        transform: none !important;
        opacity: 1 !important;
        box-shadow: none !important;
    }
    
    .company-small-info .bg-gray-50.border-2.border-gray-200 {
        border: 2px solid #000 !important;
        background: #fff !important;
        color: #000 !important;
    }
    
    .company-small-info .text-gray-900 {
        color: #000 !important;
    }
    
    .company-small-info .text-gray-600 {
        color: #333 !important;
    }
    
    .company-small-info .bg-red-600 {
        background: #dc2626 !important;
        color: #fff !important;
    }
}

/* Loading states */
.company-small-info.loading {
    opacity: 0.7;
    pointer-events: none;
}

.company-small-info.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(220, 38, 38, 0.3);
    border-top: 3px 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); }
}

/* Shimmer effect for loading cards */
.company-small-info .bg-gray-50.border-2.border-gray-200.loading {
    position: relative;
    overflow: hidden;
}

.company-small-info .bg-gray-50.border-2.border-gray-200.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Focus states for accessibility */
.company-small-info .bg-gray-50.border-2.border-gray-200:focus {
    outline: 3px solid #dc2626;
    outline-offset: 2px;
}

.company-small-info .w-6.h-6.bg-red-600.rounded-full:focus,
.company-small-info .lucide-map-pin:focus,
.company-small-info .lucide-phone:focus,
.company-small-info .lucide-fan:focus,
.company-small-info .lucide-clock:focus {
    outline: 2px solid #dc2626;
    outline-offset: 1px;
    border-radius: 2px;
}

/* Performance optimizations */
.company-small-info * {
    will-change: auto;
}

.company-small-info .bg-gray-50.border-2.border-gray-200 {
    contain: layout style paint;
}

.company-small-info .w-6.h-6.bg-red-600.rounded-full,
.company-small-info .lucide-map-pin,
.company-small-info .lucide-phone,
.company-small-info .lucide-fan,
.company-small-info .lucide-clock {
    contain: layout style;
}

/* Smooth scrolling enhancement */
.company-small-info {
    scroll-behavior: smooth;
}

/* Enhanced title styling */
.company-small-info .text-center h2 {
    background: linear-gradient(135deg, #111827, #374151);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced subtitle styling */
.company-small-info .text-center p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Card shadow enhancements */
.company-small-info .bg-gray-50.border-2.border-gray-200 {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Map container enhancements */
.company-small-info .bg-white\/10.backdrop-blur-sm {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Access info card enhancements */
.company-small-info .bg-red-600.text-white {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
} 