/* Custom CSS for EIRA GROUP SAS */

/* Font Family */
body {
    font-family: 'Inter', sans-serif;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation classes */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out;
}

/* Navbar active state */
.nav-link.active {
    color: #2563eb;
    font-weight: 600;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom button hover effects */
.btn-primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Section spacing */
.section-padding {
    padding: 5rem 0;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

/* Loading animations */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Form styles */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-300;
}

.form-textarea {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-300 resize-none;
}

/* Progress bar */
.progress-bar {
    @apply w-full bg-gray-200 rounded-full h-2;
}

.progress-fill {
    @apply bg-gradient-to-r from-blue-600 to-purple-600 h-2 rounded-full transition-all duration-500;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}

/* Utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur-custom {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Interactive elements */
.interactive-card {
    @apply transform transition-all duration-300 cursor-pointer;
}

.interactive-card:hover {
    @apply scale-105 shadow-xl;
}

/* Status indicators */
.status-success {
    @apply bg-green-100 text-green-800 px-3 py-1 rounded-full text-sm font-medium;
}

.status-warning {
    @apply bg-yellow-100 text-yellow-800 px-3 py-1 rounded-full text-sm font-medium;
}

.status-error {
    @apply bg-red-100 text-red-800 px-3 py-1 rounded-full text-sm font-medium;
}

/* Dashboard mockup styles */
.dashboard-mockup {
    @apply bg-white rounded-lg shadow-2xl border border-gray-200 overflow-hidden;
}

.dashboard-header {
    @apply bg-gray-50 px-6 py-4 border-b border-gray-200 flex items-center justify-between;
}

.dashboard-content {
    @apply p-6;
}

/* Chart placeholder */
.chart-placeholder {
    @apply bg-gradient-to-br from-blue-50 to-purple-50 rounded-lg p-8 text-center;
}

/* Table styles */
.table-modern {
    @apply w-full border-collapse bg-white rounded-lg shadow-sm overflow-hidden;
}

.table-modern th {
    @apply bg-gray-50 px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider;
}

.table-modern td {
    @apply px-6 py-4 whitespace-nowrap text-sm text-gray-900;
}

.table-modern tr:nth-child(even) {
    @apply bg-gray-50;
}

/* Modal styles */
.modal-overlay {
    @apply fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50;
}

.modal-content {
    @apply bg-white rounded-lg shadow-xl max-w-md w-full mx-4 p-6;
}

/* Tooltip styles */
.tooltip {
    @apply absolute bg-gray-900 text-white text-sm px-3 py-2 rounded-lg opacity-0 pointer-events-none transition-opacity duration-300;
}

.tooltip.show {
    @apply opacity-100;
}

/* Loading spinner */
.spinner {
    @apply animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600;
}

/* Responsive grid utilities */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-auto-fill {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Image optimization and effects */
.image-placeholder {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
    background-size: 400% 400%;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.image-fade-in {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.image-fade-in.loaded {
    opacity: 1;
}

/* Business unit card enhancements */
.business-card {
    position: relative;
    overflow: hidden;
}

.business-card::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: left 0.5s;
}

.business-card:hover::before {
    left: 100%;
}

/* Logo container styles */
.logo-container {
    position: relative;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logo-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 500;
    pointer-events: none;
}

/* Client logo container styles */
.client-logo-container {
    position: relative;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f3f4f6;
    overflow: hidden;
    padding: 1rem;
}

.client-logo-container:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #2563eb;
}

.client-logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.client-logo-container:hover::before {
    left: 100%;
}

.client-logo {
    position: relative;
    z-index: 2;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.3s ease;
}

.client-logo-container:hover .client-logo {
    filter: grayscale(0%) brightness(1);
}

.client-logo-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
}

.client-logo-container:hover .client-logo-placeholder {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

/* Shimmer effect for client logos */
.client-logo-container.loading {
    background: linear-gradient(45deg, #f3f4f6, #e5e7eb, #f3f4f6);
    background-size: 200% 200%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Client logo states */
.client-logo-container.loaded {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.client-logo-container.error {
    border-color: #fbbf24;
    background: #fef3c7;
}

.client-logo-container.error:hover {
    border-color: #f59e0b;
    background: #fef3c7;
}

.client-logo-container.error .client-logo-placeholder {
    color: #92400e;
}

/* Enhanced client logo animations */
.client-logo {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-logo-container:hover .client-logo {
    transform: scale(1.05);
}

/* Staggered animation for client logos */
.client-logo-container:nth-child(1) { animation-delay: 0.1s; }
.client-logo-container:nth-child(2) { animation-delay: 0.2s; }
.client-logo-container:nth-child(3) { animation-delay: 0.3s; }
.client-logo-container:nth-child(4) { animation-delay: 0.4s; }

/* Color scheme updates based on logo */
:root {
    --eira-blue-dark: #1e3a8a;
    --eira-blue-medium: #1e40af;
    --eira-blue-light: #3b82f6;
    --eira-green: #059669;
    --eira-red: #dc2626;
    --eira-orange: #ea580c;
}

/* Enhanced hover effects for business units */
.eira-consulting:hover {
    border-color: var(--eira-blue-dark);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.15);
}

.eira-skillassess:hover {
    border-color: var(--eira-green);
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.15);
}

.eira-automate:hover {
    border-color: var(--eira-red);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.15);
}

.eira-analytics:hover {
    border-color: var(--eira-orange);
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.15);
}

/* Logo optimization styles */
.logo-container {
    filter: brightness(1.1) contrast(1.1);
    transition: all 0.3s ease;
}

.logo-container:hover {
    filter: brightness(1.2) contrast(1.2);
    transform: scale(1.05);
}

/* Navigation logo specific styles */
nav .logo-container {
    filter: none;
}

nav .logo-container:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Footer logo styles */
footer .logo-container {
    filter: brightness(1.2) contrast(1.1);
}

footer .logo-container:hover {
    filter: brightness(1.3) contrast(1.2);
    transform: scale(1.05);
}

/* Client Carousel Styles */
.client-carousel-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
}

.carousel-control {
    transition: all 0.3s ease;
    opacity: 0.8;
    cursor: pointer;
    z-index: 20;
}

.carousel-control:hover {
    opacity: 1;
}

.carousel-control-prev {
    left: 1rem;
}

.carousel-control-next {
    right: 1rem;
}

.carousel-control-prev:hover {
    transform: translateY(-50%) translateX(-2px);
}

.carousel-control-next:hover {
    transform: translateY(-50%) translateX(2px);
}

.carousel-dot {
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-dot:hover {
    transform: scale(1.2);
    background-color: #1e40af;
}

.carousel-dot.active {
    background-color: #1e3a8a;
    width: 2rem;
}

/* Smooth transition for carousel */
.client-carousel-container.transitioning {
    transition-duration: 0.5s;
}

/* Mobile carousel adjustments */
@media (max-width: 768px) {
    .carousel-control {
        padding: 0.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .carousel-control i {
        font-size: 1rem;
    }
    
    .carousel-dot {
        width: 0.625rem;
        height: 0.625rem;
    }
    
    .carousel-dot.active {
        width: 1.5rem;
    }
    
    .client-logo-container {
        padding: 0.5rem;
        border-width: 1px;
    }
}

/* Marquee animation for success stories */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}