/* ExtraBusiness - Custom CSS */

/* 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);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-pulse-custom {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Custom gradients */
.bg-gradient-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-card {
    background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Custom shadows */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.shadow-custom-lg {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Hero section background */
.hero-bg {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #0ea5e9 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Button styles */
.btn-primary {
    @apply bg-blue-600 hover:bg-blue-700 text-white font-semibold py-3 px-6 rounded-lg transition-all duration-300 transform hover:scale-105 active:scale-95;
}

.btn-secondary {
    @apply bg-gray-200 hover:bg-gray-300 text-gray-800 font-semibold py-3 px-6 rounded-lg transition-all duration-300 transform hover:scale-105 active:scale-95;
}

.btn-outline {
    @apply border-2 border-blue-600 text-blue-600 hover:bg-blue-600 hover:text-white font-semibold py-3 px-6 rounded-lg transition-all duration-300 transform hover:scale-105 active:scale-95;
}

/* Form styles */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200;
}

.form-textarea {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200 resize-none;
}

/* Enhanced Form Styles for Modern UI */
.form-input-modern {
    @apply w-full px-6 py-4 border-2 border-gray-200 rounded-xl focus:outline-none focus:border-primary-500 focus:ring-4 focus:ring-primary-100 transition-all duration-300 bg-white hover:border-gray-300;
}

.form-textarea-modern {
    @apply w-full px-6 py-4 border-2 border-gray-200 rounded-xl focus:outline-none focus:border-primary-500 focus:ring-4 focus:ring-primary-100 transition-all duration-300 bg-white hover:border-gray-300 resize-none;
}

/* Modern Button Styles */
.btn-modern-primary {
    @apply bg-gradient-to-r from-primary-600 to-secondary-600 text-white font-bold py-4 px-8 rounded-xl hover:from-primary-700 hover:to-secondary-700 transition-all duration-300 transform hover:scale-105 active:scale-95 shadow-lg hover:shadow-xl;
}

.btn-modern-secondary {
    @apply bg-gradient-to-r from-gray-600 to-gray-700 text-white font-bold py-4 px-8 rounded-xl hover:from-gray-700 hover:to-gray-800 transition-all duration-300 transform hover:scale-105 active:scale-95 shadow-lg hover:shadow-xl;
}

/* Card Hover Effects */
.card-hover-modern {
    @apply bg-gradient-to-br from-gray-50 to-white rounded-2xl hover:shadow-lg transition-all duration-300 transform hover:-translate-y-1 border border-gray-100;
}

.card-hover-modern:hover {
    @apply shadow-xl;
}

/* Icon Container Styles */
.icon-container-primary {
    @apply w-12 h-12 bg-gradient-to-br from-primary-500 to-primary-600 rounded-xl flex items-center justify-center flex-shrink-0 group-hover:scale-110 transition-transform duration-300;
}

.icon-container-green {
    @apply w-12 h-12 bg-gradient-to-br from-green-500 to-emerald-600 rounded-xl flex items-center justify-center flex-shrink-0 group-hover:scale-110 transition-transform duration-300;
}

.icon-container-blue {
    @apply w-12 h-12 bg-gradient-to-br from-blue-500 to-indigo-600 rounded-xl flex items-center justify-center flex-shrink-0 group-hover:scale-110 transition-transform duration-300;
}

.icon-container-orange {
    @apply w-12 h-12 bg-gradient-to-br from-orange-500 to-amber-600 rounded-xl flex items-center justify-center flex-shrink-0 group-hover:scale-110 transition-transform duration-300;
}

/* Social Media Button Styles */
.social-btn-modern {
    @apply w-12 h-12 bg-gradient-to-br text-white rounded-xl flex items-center justify-center hover:scale-110 transition-all duration-300 shadow-lg hover:shadow-xl;
}

.social-btn-facebook {
    @apply bg-gradient-to-br from-blue-600 to-blue-700;
}

.social-btn-twitter {
    @apply bg-gradient-to-br from-sky-500 to-sky-600;
}

.social-btn-linkedin {
    @apply bg-gradient-to-br from-blue-700 to-blue-800;
}

.social-btn-instagram {
    @apply bg-gradient-to-br from-pink-600 to-pink-700;
}

/* Enhanced Shadow Styles */
.shadow-modern {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.shadow-modern-lg {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

/* Gradient Backgrounds */
.bg-gradient-contact {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.bg-gradient-form {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

/* Form Focus States */
.form-focus-ring {
    @apply focus:ring-4 focus:ring-primary-100 focus:border-primary-500;
}

/* Input Placeholder Styles */
.form-input::placeholder,
.form-textarea::placeholder {
    @apply text-gray-400;
}

.form-input-modern::placeholder,
.form-textarea-modern::placeholder {
    @apply text-gray-400 font-medium;
}

/* Contact Form Specific Styles */
.contact-form-input {
    @apply w-full px-6 py-4 pl-12 border-2 border-gray-200 rounded-xl focus:outline-none focus:border-primary-500 focus:ring-4 focus:ring-primary-100 transition-all duration-300 bg-white hover:border-gray-300;
}

.contact-form-textarea {
    @apply w-full px-6 py-4 pl-12 border-2 border-gray-200 rounded-xl focus:outline-none focus:border-primary-500 focus:ring-4 focus:ring-primary-100 transition-all duration-300 bg-white hover:border-gray-300 resize-none;
}

.contact-form-icon {
    @apply absolute inset-y-0 left-4 flex items-center pointer-events-none;
}

.contact-form-icon svg,
.contact-form-icon i {
    @apply w-5 h-5 text-gray-400;
}

/* Ensure form fields are properly styled */
input[type="text"],
input[type="email"],
textarea {
    @apply appearance-none;
}

/* Fix for icon positioning in form fields */
.relative .absolute.inset-y-0.left-4 {
    top: 50%;
    transform: translateY(-50%);
    left: 1rem;
}

/* Ensure proper spacing for form elements */
.form-group {
    @apply mb-6;
}

.form-label {
    @apply block text-sm font-semibold text-gray-700 mb-3;
}

/* Enhanced focus states */
.contact-form-input:focus,
.contact-form-textarea:focus {
    @apply border-primary-500 ring-4 ring-primary-100;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Hover effects for form fields */
.contact-form-input:hover,
.contact-form-textarea:hover {
    @apply border-gray-300;
}

/* Ensure Lucide icons are visible */
[data-lucide] {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

/* Specific icon positioning for form fields */
.contact-form-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

.contact-form-icon i[data-lucide] {
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
}

/* Ensure form inputs have proper left padding for icons */
.contact-form-input,
.contact-form-textarea {
    padding-left: 3rem !important;
}

/* Focus state improvements */
.contact-form-input:focus,
.contact-form-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Hover state improvements */
.contact-form-input:hover,
.contact-form-textarea:hover {
    border-color: #d1d5db;
}

/* Ensure proper spacing between form elements */
.form-group + .form-group {
    margin-top: 1.5rem;
}

/* Label styling */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

/* Button styling */
.btn-submit {
    width: 100%;
    background: linear-gradient(to right, #2563eb, #0ea5e9);
    color: white;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-submit:hover {
    background: linear-gradient(to right, #1d4ed8, #0284c7);
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.btn-submit:active {
    transform: scale(0.95);
}

/* Google Maps Section Styles */
.map-container {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.map-overlay {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.map-overlay:hover {
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.location-info-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.location-info-card:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Map iframe enhancements */
.map-iframe {
    border: none;
    transition: all 0.3s ease;
}

.map-iframe:hover {
    transform: scale(1.02);
}

/* Responsive map adjustments */
@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }
    
    .map-overlay {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 1rem;
    }
}

/* Navigation active states */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Section spacing */
.section-padding {
    @apply py-16 lg:py-24;
}

/* Container max-width */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsive text */
.text-responsive-xl {
    @apply text-2xl md:text-3xl lg:text-4xl xl:text-5xl;
}

.text-responsive-lg {
    @apply text-xl md:text-2xl lg:text-3xl;
}

.text-responsive-md {
    @apply text-lg md:text-xl lg:text-2xl;
}

/* Statistics counter */
.stat-counter {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

/* Image hover effects */
.image-hover {
    transition: all 0.3s ease;
    overflow: hidden;
}

.image-hover img {
    transition: transform 0.3s ease;
}

.image-hover:hover img {
    transform: scale(1.1);
}

/* Modal backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* RTL specific styles */
[dir="rtl"] .hero-bg::before {
    transform: scaleX(-1);
}

[dir="rtl"] .nav-link::after {
    right: 0;
    left: auto;
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .dark-mode-support {
        background-color: #1f2937;
        color: #f9fafb;
    }
}

/* Accessibility improvements */
.focus-visible:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.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;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid;
    }
    
    .card-hover {
        border: 1px solid #000;
    }
}

/* Enhanced Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 30px rgba(59, 130, 246, 0.6);
    }
}

/* Modern UI Enhancements */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.animate-slide-in-down {
    animation: slideInDown 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

.animate-gradient {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

/* Modern Form Styling */
.modern-input {
    position: relative;
    overflow: hidden;
}

.modern-input input,
.modern-input textarea {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.modern-input input:focus,
.modern-input textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.modern-input label {
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

.modern-input input:focus + label,
.modern-input input:not(:placeholder-shown) + label {
    top: -8px;
    left: 8px;
    font-size: 0.75rem;
    color: #3b82f6;
    background: white;
    padding: 0 4px;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Interactive Elements */
.interactive-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.interactive-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Progress Indicators */
.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

/* Notification Styles */
.notification {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.success {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.notification.error {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-fade-in-up,
    .animate-fade-in-left,
    .animate-fade-in-right,
    .animate-pulse-custom,
    .animate-float,
    .animate-slide-in-down,
    .animate-scale-in,
    .animate-bounce,
    .animate-shimmer,
    .animate-gradient,
    .animate-glow {
        animation: none;
    }
} 