/* Custom CSS for Badenya Company Website */

/* Industrial Design Enhancements */
:root {
    --primary-orange: #ea580c;
    --primary-orange-dark: #c2410c;
    --industrial-gray: #374151;
    --industrial-dark: #1f2937;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
}

/* Enhanced Typography */
.text-industrial {
    color: var(--industrial-gray);
}

.text-industrial-dark {
    color: var(--industrial-dark);
}

/* Industrial Gradients */
.gradient-industrial {
    background: linear-gradient(135deg, var(--industrial-dark) 0%, var(--primary-orange) 100%);
}

.gradient-industrial-subtle {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Enhanced Shadows */
.shadow-industrial {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.shadow-industrial-lg {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Industrial Borders */
.border-industrial {
    border: 2px solid var(--industrial-gray);
}

.border-industrial-light {
    border: 1px solid #e5e7eb;
}

/* Custom animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

/* Enhanced Animations */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out;
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scale-in 0.6s ease-out;
}

/* Industrial Hover Effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.3);
}

/* Custom utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
    border-radius: 6px;
    border: 2px solid #f8fafc;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-orange-dark), #9a3412);
}

/* Enhanced Form Styles */
/* Form enhancements */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border-color: var(--primary-orange);
}

.form-input-industrial {
    @apply border-2 border-gray-200 rounded-xl px-4 py-3 focus:border-orange-500 focus:ring-4 focus:ring-orange-100 transition-all duration-200;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* Enhanced Button Styles */
/* Button hover effects */
.btn-primary {
    @apply bg-gradient-to-r from-orange-600 to-orange-700 text-white px-8 py-4 rounded-xl font-semibold hover:from-orange-700 hover:to-orange-800 transition-all duration-300 shadow-lg hover:shadow-xl transform hover:-translate-y-1;
}

.btn-secondary {
    @apply bg-gradient-to-r from-gray-100 to-gray-200 text-gray-800 px-8 py-4 rounded-xl font-semibold hover:from-gray-200 hover:to-gray-300 transition-all duration-300 shadow-md hover:shadow-lg transform hover:-translate-y-1;
}

.btn-industrial {
    @apply bg-gradient-to-r from-gray-800 to-gray-900 text-white px-8 py-4 rounded-xl font-semibold hover:from-gray-900 hover:to-black transition-all duration-300 shadow-lg hover:shadow-xl transform hover:-translate-y-1;
}

/* Enhanced Card Styles */
/* Card hover effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-industrial {
    @apply bg-white rounded-2xl shadow-lg border border-gray-100 overflow-hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.card-industrial:hover {
    @apply shadow-2xl border-orange-200;
    transform: translateY(-4px);
}

/* Industrial Components */
.industrial-badge {
    @apply inline-flex items-center px-3 py-1 rounded-full text-sm font-medium;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
    color: white;
}

.industrial-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-orange), transparent);
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid var(--primary-orange);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom gradient backgrounds */
.gradient-orange {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
}

.gradient-gray {
    background: linear-gradient(135deg, var(--industrial-gray) 0%, var(--industrial-dark) 100%);
}

.gradient-industrial-hero {
    background: linear-gradient(135deg, var(--industrial-dark) 0%, var(--primary-orange) 50%, var(--industrial-dark) 100%);
}

/* Enhanced Image Effects */
/* Image overlay effects */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 1;
}

.image-industrial {
    @apply rounded-2xl overflow-hidden;
    filter: contrast(1.1) saturate(1.1);
}

.image-industrial:hover {
    filter: contrast(1.2) saturate(1.2);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Typography enhancements */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

.text-industrial-heading {
    @apply text-4xl md:text-5xl font-bold text-gray-900;
    background: linear-gradient(135deg, var(--industrial-dark), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Borders */
/* Custom borders */
.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark)) border-box;
}

.border-industrial-accent {
    border-left: 4px solid var(--primary-orange);
    background: linear-gradient(90deg, rgba(234, 88, 12, 0.05), transparent);
}

/* Enhanced Responsive Design */
/* Responsive utilities */
@media (max-width: 640px) {
    .mobile-hidden {
        display: none;
    }
    
    .mobile-stack {
        @apply flex-col space-y-4;
    }
    
    .mobile-full {
        @apply w-full;
    }
}

@media (min-width: 1024px) {
    .desktop-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
.focus-visible:focus {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(234, 88, 12, 0.2);
}

/* Enhanced Tables */
/* Custom table styles */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.table-striped tbody tr:nth-child(odd) {
    background: linear-gradient(90deg, rgba(249, 250, 251, 0.8), rgba(243, 244, 246, 0.4));
}

.table-industrial {
    @apply w-full border-collapse;
}

.table-industrial th {
    @apply bg-gray-50 px-6 py-4 text-left text-xs font-medium text-gray-500 uppercase tracking-wider border-b border-gray-200;
}

.table-industrial td {
    @apply px-6 py-4 whitespace-nowrap text-sm text-gray-900 border-b border-gray-100;
}

/* Enhanced Status Badges */
/* Status badges */
.badge-success {
    @apply bg-gradient-to-r from-green-100 to-green-200 text-green-800 px-3 py-1 rounded-full text-xs font-semibold shadow-sm;
}

.badge-warning {
    @apply bg-gradient-to-r from-yellow-100 to-yellow-200 text-yellow-800 px-3 py-1 rounded-full text-xs font-semibold shadow-sm;
}

.badge-error {
    @apply bg-gradient-to-r from-red-100 to-red-200 text-red-800 px-3 py-1 rounded-full text-xs font-semibold shadow-sm;
}

.badge-info {
    @apply bg-gradient-to-r from-blue-100 to-blue-200 text-blue-800 px-3 py-1 rounded-full text-xs font-semibold shadow-sm;
}

/* Enhanced Dropdowns */
/* Custom dropdown styles */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    @apply bg-white rounded-xl shadow-xl border border-gray-100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    @apply px-4 py-3 text-sm text-gray-700 hover:bg-orange-50 hover:text-orange-600 transition-colors duration-200;
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Modal Styles */
/* Custom modal styles */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.modal-content {
    @apply bg-white rounded-2xl shadow-2xl border border-gray-100 max-w-2xl w-full mx-4;
    animation: scale-in 0.3s ease-out;
}

/* Enhanced Notification Styles */
/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    @apply bg-gradient-to-r from-green-50 to-green-100 border-l-4 border-green-500 text-green-800;
}

.notification-error {
    @apply bg-gradient-to-r from-red-50 to-red-100 border-l-4 border-red-500 text-red-800;
}

.notification-warning {
    @apply bg-gradient-to-r from-yellow-50 to-yellow-100 border-l-4 border-yellow-500 text-yellow-800;
}

.notification-info {
    @apply bg-gradient-to-r from-blue-50 to-blue-100 border-l-4 border-blue-500 text-blue-800;
}

/* Enhanced Form Styles */
/* Custom form styles */
.form-group {
    @apply mb-4;
}

.form-label {
    @apply block text-sm font-semibold text-gray-700 mb-3;
}

.form-input {
    @apply w-full px-4 py-3 border-2 border-gray-200 rounded-xl focus:ring-4 focus:ring-orange-100 focus:border-orange-500 transition-all duration-200;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.form-textarea {
    @apply w-full px-4 py-3 border-2 border-gray-200 rounded-xl focus:ring-4 focus:ring-orange-100 focus:border-orange-500 transition-all duration-200 resize-vertical;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.form-select {
    @apply w-full px-4 py-3 border-2 border-gray-200 rounded-xl focus:ring-4 focus:ring-orange-100 focus:border-orange-500 transition-all duration-200;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.form-error {
    @apply text-red-600 text-sm mt-2 font-medium;
}

/* Enhanced Pagination */
/* Custom pagination */
.pagination {
    @apply flex items-center justify-center space-x-3;
}

.pagination-item {
    @apply px-4 py-3 text-sm font-semibold text-gray-500 bg-white border-2 border-gray-200 rounded-xl hover:bg-orange-50 hover:text-orange-600 hover:border-orange-200 transition-all duration-200;
}

.pagination-item.active {
    @apply bg-gradient-to-r from-orange-600 to-orange-700 text-white border-orange-600 shadow-lg;
}

.pagination-item.disabled {
    @apply opacity-40 cursor-not-allowed;
}

/* Enhanced Breadcrumb */
/* Custom breadcrumb */
.breadcrumb {
    @apply flex items-center space-x-3 text-sm text-gray-500;
}

.breadcrumb-item {
    @apply hover:text-orange-600 transition-colors duration-200 font-medium;
}

.breadcrumb-separator {
    @apply text-gray-400 mx-2;
}

/* Enhanced Progress Bar */
/* Custom progress bar */
.progress {
    @apply w-full bg-gray-200 rounded-full h-3 overflow-hidden;
}

.progress-bar {
    @apply bg-gradient-to-r from-orange-600 to-orange-700 h-3 rounded-full transition-all duration-500 shadow-sm;
}

/* Enhanced Tooltip */
/* Custom tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--industrial-dark), var(--industrial-gray));
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

/* Enhanced Dark Mode */
/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        background: linear-gradient(135deg, #111827, #1f2937);
        color: #f9fafb;
    }
    
    .dark-mode .bg-white {
        background: linear-gradient(135deg, #374151, #4b5563);
    }
    
    .dark-mode .text-gray-900 {
        color: #f9fafb;
    }
    
    .dark-mode .text-gray-600 {
        color: #d1d5db;
    }
    
    .dark-mode .border-gray-300 {
        border-color: #6b7280;
    }
}

/* Industrial Specific Components */
.industrial-hero {
    background: linear-gradient(135deg, var(--industrial-dark) 0%, var(--primary-orange) 50%, var(--industrial-dark) 100%);
    position: relative;
    overflow: hidden;
}

.industrial-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.industrial-card {
    @apply bg-white rounded-2xl shadow-lg border border-gray-100 overflow-hidden transition-all duration-300;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.industrial-card:hover {
    @apply shadow-2xl border-orange-200;
    transform: translateY(-4px);
}

.industrial-icon {
    @apply w-16 h-16 rounded-2xl flex items-center justify-center;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
}

.industrial-section {
    @apply py-20;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

/* Accessibility Enhancements */
.focus-ring {
    @apply focus:outline-none focus:ring-4 focus:ring-orange-100 focus:border-orange-500;
}

.screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-primary {
        @apply border-2 border-orange-800;
    }
    
    .card-industrial {
        @apply border-2 border-gray-400;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    }
}